]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-hda-dsp: add initial kcontrol values
authorLibin Yang <libin.yang@intel.com>
Thu, 21 May 2020 07:45:16 +0000 (03:45 -0400)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Jun 2020 15:20:36 +0000 (17:20 +0200)
This patch adds the initial values of sof-hda-dsp card.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-hda-dsp/sof-hda-dsp.conf

index af966ef83011fe03cbfa0f72b79422e6c567d5be..24d0359f304f489b3033d65951268948287a1445 100644 (file)
@@ -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"
+               ]
+       }
+}