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>
# 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" {