From: Hui Wang Date: Fri, 23 Jul 2021 03:20:50 +0000 (+0800) Subject: sof-hda-dsp: Set Capture Switch on in the BootSequence X-Git-Tag: v1.2.6~47 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d73a015f25f133879f2106eb8ce2e523043a84ea;p=alsa-ucm-conf.git sof-hda-dsp: Set Capture Switch on in the BootSequence 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 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/sof-hda-dsp/sof-hda-dsp.conf b/ucm2/sof-hda-dsp/sof-hda-dsp.conf index 79b54a9..ca3473a 100644 --- a/ucm2/sof-hda-dsp/sof-hda-dsp.conf +++ b/ucm2/sof-hda-dsp/sof-hda-dsp.conf @@ -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" + ] +}