]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: rt722: add speaker mute LED and PlaybackSwitch for FU06
authorAaron Ma <aaron.ma@canonical.com>
Thu, 23 Apr 2026 05:00:50 +0000 (13:00 +0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 May 2026 09:23:47 +0000 (11:23 +0200)
Attach rt722 FU06 Playback Switch to the speaker mute LED via SetLED
in init.conf, and declare PlaybackSwitch in the Speaker device so
PipeWire can toggle hardware mute.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/753
Link: https://lore.kernel.org/linux-sound/20260423101338.1040131-1-aaron.ma@canonical.com/
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt722/init.conf
ucm2/sof-soundwire/rt722.conf

index 40f245856d43a4c08176476c7381c5f6b14e7a38..7275ce5f9627432a900180da9fe270fe47b75d26 100644 (file)
@@ -10,6 +10,15 @@ BootSequence [
        cset "name='rt722 FU0F Capture Volume' 63"
 ]
 
+If.spk_init_rt722 {
+       Condition {
+               Type String
+               Needle "rt722"
+               Haystack "${var:SpeakerCodec1}"
+       }
+       True.Macro [{ SetLED { LED="speaker" Action="attach" CtlId="rt722 FU06 Playback Switch" } }]
+}
+
 If.mic_init_rt722 {
        Condition {
                Type String
index a4a431b286e7f5f58e28b7c97d8563b7f032bdfd..00e143c9e7f35a1224eb81495001a6c3c7d3ea6b 100644 (file)
@@ -51,6 +51,7 @@ If.codecspk {
                                PlaybackPriority 100
                                PlaybackPCM "hw:${CardId},2"
                                PlaybackMixerElem "rt722 FU06"
+                               PlaybackSwitch "rt722 FU06 Playback Switch"
                                PlaybackVolume "rt722 FU06 Playback Volume"
                        }
                }