From: Kai Vehmanen Date: Wed, 10 Jun 2020 14:14:16 +0000 (+0300) Subject: sof-hda-dsp: don't fail if Auto-Mute control is not present X-Git-Tag: v1.2.4~53 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=4c1189fdcb4819df6c36cf490d17f532f82c8bbe;p=alsa-ucm-conf.git sof-hda-dsp: don't fail if Auto-Mute control is not present 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 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/sof-hda-dsp/HiFi.conf b/ucm2/sof-hda-dsp/HiFi.conf index 9a82930..eea6ed9 100644 --- a/ucm2/sof-hda-dsp/HiFi.conf +++ b/ucm2/sof-hda-dsp/HiFi.conf @@ -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" {