OSDN Git Service

bytcr-rt5640: Add support for controlling a speaker-mute LED
[android-x86/external-alsa-ucm-conf.git] / ucm2 / bytcr-rt5640 / bytcr-rt5640.conf
index 34e9146..00b03b6 100644 (file)
@@ -8,3 +8,9 @@ SectionUseCase."HiFi" {
 Include.card-init.File "/lib/card-init.conf"
 Include.ctl-remap.File "/lib/ctl-remap.conf"
 Include.codec-init.File "/codecs/rt5640/init.conf"
+
+FixedBootSequence [
+       exec "-/sbin/modprobe snd_ctl_led"
+       sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:Speaker Channel Switch"
+       sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:HP Channel Switch"
+]