]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-hda-dsp: Set Capture Switch on in the BootSequence
authorHui Wang <hui.wang@canonical.com>
Fri, 23 Jul 2021 03:20:50 +0000 (11:20 +0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 Aug 2021 14:23:14 +0000 (16:23 +0200)
We found an issue that the PA source of Mic2/Headset and Mic2 is
muted by default after newly install an OS, the root cause is the
'Capture Switch' is set to off in the kernel.

Without ucm, the /usr/share/alsa/init/default will set the 'Capture
Switch' to on, similarly we set it to on in the BootSequence of ucm.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-hda-dsp/sof-hda-dsp.conf

index 79b54a9c61d6290589f86f29dd01805709593483..ca3473a614ec0456a8b412d975ac844104240510 100644 (file)
@@ -57,3 +57,14 @@ If.Dmic0 {
                cset "name='Dmic0 Capture Volume' 70%"
        ]
 }
+
+If.Capture {
+       Condition {
+               Type ControlExists
+               Control "name='Capture Switch'"
+       }
+       True.BootSequence [
+               cset "name='Capture Volume' 60%"
+               cset "name='Capture Switch' on"
+       ]
+}