530d4c1740
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.
18 lines
548 B
Makefile
18 lines
548 B
Makefile
+pulse: use/sound/pulse; @:
|
|
+alsa: use/sound/alsa; @:
|
|
|
|
# "bare" ALSA (which is good enough for many of us) with persistent levels
|
|
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 set,THE_SOUND,sound/alsa)
|
|
|
|
# PulseAudio (useful for per-app levels, dynamic devices and networked sound)
|
|
use/sound/pulse: use/sound
|
|
@$(call set,THE_SOUND,sound/pulseaudio)
|