Skip to content

Commit

Permalink
sof-hda-dsp: don't fail if Auto-Mute control is not present
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kv2019i authored and perexg committed Jun 11, 2020
1 parent 2ac33b0 commit 4c1189f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ucm2/sof-hda-dsp/HiFi.conf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down

0 comments on commit 4c1189f

Please sign in to comment.