[PATCH 2/3] sound: added a switch between alsa and pulseaudio
Anton Midyukov
antohami at altlinux.org
Wed Jan 10 18:37:34 MSK 2018
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.
---
features.in/sound/config.mk | 6 +++---
pkg.in/lists/sound/alsa | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
create mode 100644 pkg.in/lists/sound/alsa
diff --git a/features.in/sound/config.mk b/features.in/sound/config.mk
index 5761963..96f191c 100644
--- a/features.in/sound/config.mk
+++ b/features.in/sound/config.mk
@@ -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)
diff --git a/pkg.in/lists/sound/alsa b/pkg.in/lists/sound/alsa
new file mode 100644
index 0000000..dc3226f
--- /dev/null
+++ b/pkg.in/lists/sound/alsa
@@ -0,0 +1,2 @@
+apulse
+udev-alsa
--
2.10.4
--XOIedfhf+7KOe/yw
Content-Type: text/x-patch; charset=us-ascii
Content-Disposition: attachment; filename="0003-mixin.mk-replace-use-sound-with-alsa-for-desktop-reg.patch"
More information about the devel-distro
mailing list