OSDN Git Service

codecs/es8316: Fix 'HP Mixer Volume' setting
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 Mar 2021 20:03:07 +0000 (21:03 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 10 Mar 2021 09:55:32 +0000 (10:55 +0100)
The 'HP Mixer Volume' control is interesting in that it has a hole
in its range which should not be used (described in the tlv table),
valid values are 0-4 and 8-11

I assume that the "Set HP mixer vol to -6 dB (4/7) louder does not work"
comment which this patch changes comes from attempts to use values in
that hole in the range (also notice the wrong max value in the comment).

Setting the HP mixer to -6 dB causes the sound to be significantly
softer then under Windows. This commit fixes this by initializing the
HP mixer control to 11 / 0 dB.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/es8316/EnableSeq.conf

index 272ef1a..b6c81d8 100644 (file)
@@ -7,8 +7,8 @@ EnableSequence [
 
        # Set HP vol to 0 dB (3/3)
        cset "name='Headphone Playback Volume' 3"
-       # Set HP mixer vol to -6 dB (4/7) louder does not work
-       cset "name='Headphone Mixer Volume' 4"
+       # Set HP mixer vol to 0 dB
+       cset "name='Headphone Mixer Volume' 11"
        # Set DAC vol to 0 dB (192/192)
        cset "name='DAC Playback Volume' 192"