UCM2: Intel: sof-hda-dsp: HiFi: Fix handling of mono DMICs
When a single DMIC is present in the system we need to set the CaptureChannels to 1 since the PCM device only supports mono, PA/PW will reject the profile since it cannot open the DMIC PCM device. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/579 Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
a98b122209
commit
56cbdfd043
1 changed files with 10 additions and 0 deletions
|
|
@ -34,6 +34,16 @@ If.dmic {
|
|||
True {
|
||||
CaptureChannels 4
|
||||
}
|
||||
False.If.mono {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "cfg-dmics:[1]"
|
||||
String "${CardComponents}"
|
||||
}
|
||||
True {
|
||||
CaptureChannels 1
|
||||
}
|
||||
}
|
||||
}
|
||||
If.vol {
|
||||
Condition {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue