diff options
author | Jaroslav Kysela <perex@perex.cz> | 2021-03-17 18:29:45 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-03-30 15:41:30 +0200 |
commit | a135dfb5de1501327895729b4f513370d2555b4d (patch) | |
tree | 40ec92d5e0fe0e15dde47499144e7d6ea7ad90da /arch/x86/kernel | |
parent | ALSA: control - add sysfs support to the LED trigger module (diff) | |
download | linux-a135dfb5de1501327895729b4f513370d2555b4d.tar.xz linux-a135dfb5de1501327895729b4f513370d2555b4d.zip |
ALSA: led control - add sysfs kcontrol LED marking layer
We need to manage the kcontrol entries association for the LED trigger
from the user space. This patch adds a layer to the sysfs tree like:
/sys/devices/virtual/sound/ctl-led/mic
+ card0
| + attach
| + detach
| ...
+ card1
+ attach
...
Operations:
attach and detach
- amixer style ID is accepted and easy strings for numid and
simple names
reset
- reset all associated kcontrol entries
list
- list associated kcontrol entries (numid values only)
Additional symlinks:
/sys/devices/virtual/sound/ctl-led/mic/card0/card ->
/sys/class/sound/card0
/sys/class/sound/card0/controlC0/led-mic ->
/sys/devices/virtual/sound/ctl-led/mic/card0
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20210317172945.842280-7-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'arch/x86/kernel')
0 files changed, 0 insertions, 0 deletions