aboutsummaryrefslogtreecommitdiff
path: root/ucm2
diff options
context:
space:
mode:
authorHui Wang <hui.wang@canonical.com>2020-08-20 11:25:24 +0800
committerJaroslav Kysela <perex@perex.cz>2020-09-07 13:05:49 +0200
commit4c703a5504deb1772cadfdc783257d9a927b422b (patch)
treece4c20dc9466081e60c12195f44ffb18063aad33 /ucm2
parent3320b1ac804595d6c145c1ad7af85917182a3c98 (diff)
HDA-Intel: only add the acp dmic to the sound card with analog codec
Without this change, the acp dmic will be added to both Intel sound card (with analog codec) and Nvidia Hdmi audio sound card. Signed-off-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'ucm2')
-rw-r--r--ucm2/HDA-Intel/HiFi.conf31
1 files changed, 16 insertions, 15 deletions
diff --git a/ucm2/HDA-Intel/HiFi.conf b/ucm2/HDA-Intel/HiFi.conf
index 2d18c9e..f09ce1c 100644
--- a/ucm2/HDA-Intel/HiFi.conf
+++ b/ucm2/HDA-Intel/HiFi.conf
@@ -9,24 +9,25 @@ If.analog {
Type ControlExists
Control "name='Master Playback Switch'"
}
- True.Include.analog.File "/HDA-Intel/HiFi-analog.conf"
+ True {
+ Include.analog.File "/HDA-Intel/HiFi-analog.conf"
+ If.acp {
+ Condition {
+ Type String
+ Empty "${var:AcpCardId}"
+ }
+ True {
+ RenameDevice."Mic1" "Mic"
+ }
+ False.Include.acp {
+ Before.SectionDevice "Mic1"
+ File "/HDA-Intel/HiFi-acp.conf"
+ }
+ }
+ }
}
If.hdmi {
Condition { Type String Empty "" }
True.Include.hdmi.File "/HDA-Intel/Hdmi.conf"
}
-
-If.acp {
- Condition {
- Type String
- Empty "${var:AcpCardId}"
- }
- True {
- RenameDevice."Mic1" "Mic"
- }
- False.Include.acp {
- Before.SectionDevice "Mic1"
- File "/HDA-Intel/HiFi-acp.conf"
- }
-}