]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
amd-soundwire: add support for AMD generic legacy machine driver
authorJaroslav Kysela <perex@perex.cz>
Fri, 29 Nov 2024 13:17:57 +0000 (14:17 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 4 Dec 2024 09:23:19 +0000 (10:23 +0100)
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 <perex@perex.cz>
ucm2/conf.d/amd-soundwire/amd-soundwire.conf [new symlink]
ucm2/sof-soundwire/rt722.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 (symlink)
index 0000000..0d00b73
--- /dev/null
@@ -0,0 +1 @@
+../../sof-soundwire/sof-soundwire.conf
\ No newline at end of file
index a54664ec56e836f6927c06d4c535b6a964c1a456..a4a431b286e7f5f58e28b7c97d8563b7f032bdfd 100644 (file)
@@ -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"