From 450bebd628975ffab153978b80f1493100910e53 Mon Sep 17 00:00:00 2001 From: Libin Yang Date: Thu, 21 May 2020 03:45:16 -0400 Subject: [PATCH] sof-hda-dsp: add initial kcontrol values This patch adds the initial values of sof-hda-dsp card. Signed-off-by: Libin Yang Signed-off-by: Jaroslav Kysela --- ucm2/sof-hda-dsp/sof-hda-dsp.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ucm2/sof-hda-dsp/sof-hda-dsp.conf b/ucm2/sof-hda-dsp/sof-hda-dsp.conf index af966ef..24d0359 100644 --- a/ucm2/sof-hda-dsp/sof-hda-dsp.conf +++ b/ucm2/sof-hda-dsp/sof-hda-dsp.conf @@ -4,3 +4,24 @@ SectionUseCase."HiFi" { File "HiFi.conf" Comment "Play HiFi quality Music" } + +# the kcontrols initial values, which will be set by `alsactl init` + +BootSequence [ + cset "name='Master Playback Volume' 80" + cset "name='Headphone Playback Volume' 80" + cset "name='Speaker Playback Volume' 80" + cset "name='Auto-Mute Mode' off" +] + +If.Dmic0 { + Condition { + Type ControlExists + Control "name='Dmic0 Capture Volume'" + } + True { + BootSequence [ + cset "name='Dmic0 Capture Volume' 70" + ] + } +} -- 2.47.1