From 0782bf435b8332833e7b3fc91501d78473dd6edf Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 29 Nov 2024 14:17:57 +0100 Subject: [PATCH] amd-soundwire: add support for AMD generic legacy machine driver Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/478 Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/470 Signed-off-by: Jaroslav Kysela --- ucm2/conf.d/amd-soundwire/amd-soundwire.conf | 1 + ucm2/sof-soundwire/rt722.conf | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 120000 ucm2/conf.d/amd-soundwire/amd-soundwire.conf diff --git a/ucm2/conf.d/amd-soundwire/amd-soundwire.conf b/ucm2/conf.d/amd-soundwire/amd-soundwire.conf new file mode 120000 index 00000000..0d00b73f --- /dev/null +++ b/ucm2/conf.d/amd-soundwire/amd-soundwire.conf @@ -0,0 +1 @@ +../../sof-soundwire/sof-soundwire.conf \ No newline at end of file diff --git a/ucm2/sof-soundwire/rt722.conf b/ucm2/sof-soundwire/rt722.conf index a54664ec..a4a431b2 100644 --- a/ucm2/sof-soundwire/rt722.conf +++ b/ucm2/sof-soundwire/rt722.conf @@ -86,6 +86,21 @@ SectionDevice."Headset" { cset "name='rt722 FU0F Capture Switch' 0" ] + If.hsmicsw { + Condition { + Type ControlExists + Control "name='Headset Mic Switch'" + } + True { + EnableSequence [ + cset "name='Headset Mic Switch' on" + ] + DisableSequence [ + cset "name='Headset Mic Switch' off" + ] + } + } + Value { CapturePriority 200 CapturePCM "hw:${CardId},1"