Index: radix-1.9/media/alsa-plugins/1.2.7.1/Makefile
===================================================================
--- radix-1.9/media/alsa-plugins/1.2.7.1/Makefile (revision 209)
+++ radix-1.9/media/alsa-plugins/1.2.7.1/Makefile (revision 210)
@@ -175,6 +175,14 @@
done ; \
rm -f 98-maemo.conf ; \
)
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK358X_GLIBC)),)
+ @mv $(ALSA_PLUGINS_PKG)/etc/alsa/conf.d/99-pulseaudio-default.conf.example \
+ $(ALSA_PLUGINS_PKG)/usr/share/alsa/pulse-alsa.conf
+ @cp -a $(CURDIR)/conf/pulse.conf $(ALSA_PLUGINS_PKG)/usr/share/alsa/alsa.conf.d/99-pulse.conf
+ @( cd $(ALSA_PLUGINS_PKG)/etc/alsa/conf.d ; \
+ ln -sf ../../../usr/share/alsa/alsa.conf.d/99-pulse.conf . ; \
+ )
+endif
# ======= Install Documentation =======
@if [ -d $(ALSA_PLUGINS_PKG)/usr/share/man ]; then \
( cd $(ALSA_PLUGINS_PKG)/usr/share/man ; \
Index: radix-1.9/media/alsa-plugins/1.2.7.1/conf/pulse.conf
===================================================================
--- radix-1.9/media/alsa-plugins/1.2.7.1/conf/pulse.conf (nonexistent)
+++ radix-1.9/media/alsa-plugins/1.2.7.1/conf/pulse.conf (revision 210)
@@ -0,0 +1,18 @@
+
+# PulseAudio alsa plugin configuration file to set the pulseaudio plugin as
+# default output for applications using alsa when pulseaudio is running.
+
+hook_func.pulse_load_if_running {
+ lib "libasound_module_conf_pulse.so"
+ func "conf_pulse_hook_load_if_running"
+}
+
+@hooks [
+ {
+ func pulse_load_if_running
+ files [
+ "/usr/share/alsa/pulse-alsa.conf"
+ ]
+ errors false
+ }
+]
Index: radix-1.9/media/pulseaudio/16.1/Makefile
===================================================================
--- radix-1.9/media/pulseaudio/16.1/Makefile (revision 209)
+++ radix-1.9/media/pulseaudio/16.1/Makefile (revision 210)
@@ -345,6 +345,10 @@
@mv $(PAUDIO_PKG)/etc/pulse/daemon.conf $(PAUDIO_PKG)/etc/pulse/daemon.conf.new
@mv $(PAUDIO_PKG)/etc/pulse/default.pa $(PAUDIO_PKG)/etc/pulse/default.pa.new
@mv $(PAUDIO_PKG)/etc/pulse/system.pa $(PAUDIO_PKG)/etc/pulse/system.pa.new
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK358X_GLIBC)),)
+ # ======= Set default pulseaudio output card =======
+ @sed -i 's,^#set-default-sink output,set-default-sink alsa_output.platform-es8388-sound.stereo-fallback,' $(PAUDIO_PKG)/etc/pulse/default.pa.new
+endif
# ======= Move dbus configs to system location =======
@mkdir -p $(PAUDIO_PKG)/usr/share/dbus-1/system.d/
@mv $(PAUDIO_PKG)/etc/dbus-1/system.d/* $(PAUDIO_PKG)/usr/share/dbus-1/system.d/