# Use case Configuration for sof-soundwire card
+If.hwctl {
+ Condition {
+ Type ControlExists
+ Control "name='Capture Volume'"
+ }
+ True.Define.rt715ctl "Capture"
+ False.Define.rt715ctl "PGA5.0 5 Master Capture"
+}
+
SectionDevice."Mic" {
Comment "SoundWire microphones"
EnableSequence [
- cset "name='PGA5.0 5 Master Capture Switch' 1"
+ cset "name='${var:rt715ctl} Switch' 1"
]
DisableSequence [
- cset "name='PGA5.0 5 Master Capture Switch' 0"
+ cset "name='${var:rt715ctl} Switch' 0"
]
Value {
- CapturePriority 100
- CapturePCM "hw:${CardId},4"
- CaptureSwitch "PGA5.0 5 Master Capture Switch"
- CaptureVolume "PGA5.0 5 Master Capture Volume"
+ CapturePriority 100
+ CapturePCM "hw:${CardId},4"
+ CaptureSwitch "${var:rt715ctl} Switch"
+ CaptureVolume "${var:rt715ctl} Volume"
+ CaptureMixerElem "${var:rt715ctl}"
}
}