It's an initial support according the pull request.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/156
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
+Define.Mic1Dev 1
+Define.Mic2Dev 2
+
+If.trx4-aorus-wifi-rev-1-2 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "USB0414:a00d"
+ }
+ True.Define {
+ Mic1Dev 2
+ Mic2Dev 1
+ }
+}
+
SectionDevice."Speaker" {
Comment "Speakers"
Value {
Comment "Microphone"
Value {
CapturePriority 200
- CapturePCM "hw:${CardId},1"
+ CapturePCM "hw:${CardId},${var:Mic1Dev}"
JackControl "Mic Jack"
CaptureMixerElem "Mic"
}
Comment "Front Microphone"
Value {
CapturePriority 300
- CapturePCM "hw:${CardId},2"
+ CapturePCM "hw:${CardId},${var:Mic2Dev}"
JackControl "Front Mic Jack"
CaptureMixerElem "Front Mic"
}
Type RegexMatch
String "${CardComponents}"
# 0414:a002 Gigabyte TRX40 Aorus Pro WiFi
+ # 0414:a00d Gigabyte TRX40 Aorus Pro WiFi Rev 1.2
# 0b05:1917 ASUS ROG Strix
# 0b05:1918 ASUS PRIME TRX40 PRO-S
# 0db0:0d64 MSI TRX40 Creator
# 0db0:543d MSI TRX40
# 26ce:0a01 Asrock TRX40 Creator
- Regex "USB((0414:a002)|(0b05:191[78])|(0db0:(0d64|543d))|(26ce:0a01))"
+ Regex "USB((0414:a00[2d])|(0b05:191[78])|(0db0:(0d64|543d))|(26ce:0a01))"
}
True.Define.ProfileName "Realtek/ALC1220-VB-Desktop"
}