From d73a015f25f133879f2106eb8ce2e523043a84ea Mon Sep 17 00:00:00 2001 From: Hui Wang Date: Fri, 23 Jul 2021 11:20:50 +0800 Subject: [PATCH] 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 --- ucm2/sof-hda-dsp/sof-hda-dsp.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) 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" + ] +} -- 2.47.1