mkimage-profiles/features.in/sound/config.mk
Anton Midyukov 530d4c1740 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.
2018-01-10 19:34:57 +03:00

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)