mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-12 15:38:37 +04:00
The audio group and the rule that puts the ALSA character devices in it are part of procd and base-files, so every image carries them whether or not it has a sound card, and a package wanting the group has nothing to depend on. Playback, capture and MIDI all land in one group as well, so a process allowed to play is also allowed to record. Move the lot into a new audio-support package with three groups, audio, audio-capture and midi, and a hotplug fragment that sorts the sound nodes between them. kmod-sound-core depends on the package, and so do the image profiles that ship a sound driver. The dependency is a plain one, not a select, so sound support is offered once the feature is chosen; userspace that needs one of the groups depends on the same package. Images without it fall back to the generic rule and get /dev/snd/* as 0600 root:root. Signed-off-by: Daniel Golle <daniel@makrotopia.org>