]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
cht-bsw-rt5672: Add support for controlling speaker- and mic-mute LEDs
authorHans de Goede <hdegoede@redhat.com>
Fri, 7 May 2021 13:11:38 +0000 (15:11 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 18 May 2021 16:21:36 +0000 (18:21 +0200)
Add support for controlling speaker- and mic-mute LEDs using the new
snd_ctl_led kernel module for generic mute LED control.

Tested on a Thinkpad 10 tablet which has a detachable USB keyboard with
a speaker mute LED embedded in the volume-mute button and a mic mute
LED embedded in the mic-mute button.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/cht-bsw-rt5672/cht-bsw-rt5672.conf

index db2924ff6ee1120f4277f36e0f7e6ecc376305b6..ddb8cce4d896744fd87c4019f8f20bf4003d5e99 100644 (file)
@@ -6,3 +6,9 @@ SectionUseCase."HiFi" {
        File "HiFi.conf"
        Comment "Play HiFi quality Music"
 }
+
+FixedBootSequence [
+       exec "-/sbin/modprobe snd_ctl_led"
+       sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:DAC1 Playback Switch"
+       sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:ADC Capture Switch"
+]