diff options
author | Jaroslav Kysela <perex@perex.cz> | 2021-05-18 19:01:58 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2021-05-18 19:22:39 +0200 |
commit | 8eed6728ff4597c28c945ba65cc7715fd528b126 (patch) | |
tree | fa083d7b6eaa9865d21cfd5b682d5bd082e4ec56 | |
parent | 449b10d55902c70a239db3e3689d5cc31400f14f (diff) |
sof-soundwire: rt715 - use the hw volume control
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | ucm2/sof-soundwire/rt715.conf | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/ucm2/sof-soundwire/rt715.conf b/ucm2/sof-soundwire/rt715.conf index 7b8ca59..3b191bd 100644 --- a/ucm2/sof-soundwire/rt715.conf +++ b/ucm2/sof-soundwire/rt715.conf @@ -1,20 +1,30 @@ # 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}" } } |