]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
chtrt5645: Restore stereo sound output when switching from MonoSpeaker to Headphones
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Jun 2020 17:44:21 +0000 (19:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 28 Jun 2020 20:02:39 +0000 (22:02 +0200)
Commit fe3b0bdc2f43 ("chtrt5645: merge all possible configurations to
HiFi.conf") missed the part of the removed HiFi-mono-speaker-analog-mic.conf
file which restores stereo mixing (instead of mixing left + right to the
left DAC mixer output) when switching from the mono speaker setup to the
headphones output.

This was causing both left and right channels to only be played on the
left ear of the headphones. This commit fixes this.

Fixes: fe3b0bdc2f43 ("chtrt5645: merge all possible configurations to HiFi.conf")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/chtrt5645/HiFi.conf

index 5d0e3bf42f406ded2cedbf4f6d87cf0c3e6dc8ed..10b0a1c22f970db341f94f32cf963d86dc3b314f 100644 (file)
@@ -93,6 +93,11 @@ SectionDevice."Speaker" {
                                cset "name='Stereo DAC MIXL DAC R1 Switch' 1"
                                cset "name='Stereo DAC MIXR DAC R1 Switch' 0"
                        ]
+                       DisableSequence [
+                               # Undo monospeaker mixing
+                               cset "name='Stereo DAC MIXL DAC R1 Switch' 0"
+                               cset "name='Stereo DAC MIXR DAC R1 Switch' 1"
+                       ]
                }
        }