]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-hda-dsp: don't fail if Auto-Mute control is not present
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Wed, 10 Jun 2020 14:14:16 +0000 (17:14 +0300)
committerJaroslav Kysela <perex@perex.cz>
Thu, 11 Jun 2020 14:42:28 +0000 (16:42 +0200)
The "Auto-Mute Mode" control is not present in all HDA codecs.
The generic SOF HDA UCM file should be robust enough to handle
these cases as well.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-hda-dsp/HiFi.conf

index 9a8293077e3e315f7047450e8d1bae9f60ad52ce..eea6ed9c6ccc212f66b18153340ef76c21d86cb0 100644 (file)
@@ -1,9 +1,17 @@
 # Use case Configuration for sof-hda-dsp
 
 SectionVerb {
-       EnableSequence [
-               cset "name='Auto-Mute Mode' 'Disabled'"
-       ]
+       If.automute {
+               Condition {
+                       Type ControlExists
+                       Control "name='Auto-Mute Mode'"
+               }
+               True {
+                       EnableSequence [
+                               cset "name='Auto-Mute Mode' 'Disabled'"
+                       ]
+               }
+       }
 }
 
 SectionDevice."Headphones" {