diff options
author | Kai Vehmanen <kai.vehmanen@linux.intel.com> | 2020-06-10 17:14:16 +0300 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2020-06-11 16:42:28 +0200 |
commit | 4c1189fdcb4819df6c36cf490d17f532f82c8bbe (patch) | |
tree | 8662bf2ec4cc67fcc04c2ac90adbc909a7026824 /ucm2 | |
parent | 2ac33b010c7c493066592a093d422a67e8df0bf6 (diff) |
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 <kai.vehmanen@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'ucm2')
-rw-r--r-- | ucm2/sof-hda-dsp/HiFi.conf | 14 |
1 files changed, 11 insertions, 3 deletions
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" { |