sound: added a switch between alsa and pulseaudio

Those images who are fine with ALSA might still benefit
from addons like udev-alsa to have mixer levels restored
on boot; and PulseAudio-bearing images can be based upon
the same intermediate targets now without receiving the
addons they don't need.
This commit is contained in:
Anton Midyukov 2018-01-10 22:37:34 +07:00 committed by Michael Shigorin
parent c13ec2d67b
commit 530d4c1740
2 changed files with 5 additions and 3 deletions

View File

@ -6,12 +6,12 @@ use/sound:
@$(call add_feature)
@$(call add,THE_KMODULES,alsa sound)
@$(call add,THE_LISTS,sound/base)
@$(call add,THE_LISTS,$$(THE_SOUND))
# ALSA only sound (additional utils needed if using pulseaudio)
use/sound/alsa: use/sound
@$(call add,THE_PACKAGES,apulse)
@$(call add,THE_PACKAGES,udev-alsa)
@$(call set,THE_SOUND,sound/alsa)
# PulseAudio (useful for per-app levels, dynamic devices and networked sound)
use/sound/pulse: use/sound
@$(call add,THE_LISTS,sound/pulseaudio)
@$(call set,THE_SOUND,sound/pulseaudio)

2
pkg.in/lists/sound/alsa Normal file
View File

@ -0,0 +1,2 @@
apulse
udev-alsa