From c3a3974d075836fc700e57b2020f4b5473c89021 Mon Sep 17 00:00:00 2001 From: Toshiaki Isogai Date: Tue, 24 Jan 2017 18:00:37 +0900 Subject: Add audio management between Media Player and Radio. This patch enables loading router-module by default to manage audio routing when both Media Player and Radio start playing. Latter audio source selected by user enforces existing one corked. Detail in below. https://jira.automotivelinux.org/browse/SPEC-378 Change-Id: I407924b1346f95573596434ba9b17c732cae5146 Signed-off-by: Toshiaki Isogai --- .../audiomanager-plugins-config/configuration.xml | 4 ++-- .../audiomanager-plugins-config_7.4.bb | 4 ++-- .../0006-auto-load-module-router.patch | 26 ++++++++++++++++++++++ .../pulseaudio/pulseaudio_8.0.bbappend | 6 +++++ 4 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 recipes-multimedia/pulseaudio/pulseaudio-8.0/0006-auto-load-module-router.patch create mode 100644 recipes-multimedia/pulseaudio/pulseaudio_8.0.bbappend (limited to 'recipes-multimedia') diff --git a/recipes-multimedia/audiomanager-plugins-config/audiomanager-plugins-config/configuration.xml b/recipes-multimedia/audiomanager-plugins-config/audiomanager-plugins-config/configuration.xml index 3df7d5ca9..9e2d05ee1 100644 --- a/recipes-multimedia/audiomanager-plugins-config/audiomanager-plugins-config/configuration.xml +++ b/recipes-multimedia/audiomanager-plugins-config/audiomanager-plugins-config/configuration.xml @@ -274,7 +274,7 @@ ACTION_LIMIT "BASE" - -2500 + -1000 01 @@ -330,7 +330,7 @@ ACTION_LIMIT "BASE" - -2500 + -1000 02 diff --git a/recipes-multimedia/audiomanager-plugins-config/audiomanager-plugins-config_7.4.bb b/recipes-multimedia/audiomanager-plugins-config/audiomanager-plugins-config_7.4.bb index b8b76ec21..8e5edd833 100644 --- a/recipes-multimedia/audiomanager-plugins-config/audiomanager-plugins-config_7.4.bb +++ b/recipes-multimedia/audiomanager-plugins-config/audiomanager-plugins-config_7.4.bb @@ -1,9 +1,9 @@ DESCRIPTION = "Configurations for Audiomanager Plugins for AGL Demo" HOMEPAGE = "" -LICENSE = "Proprietary" +LICENSE = "MPLv2" SECTION = "multimedia" -LIC_FILES_CHKSUM = "file://${WORKDIR}/configuration.xml;md5=97090515005265aca5bddffcee4bc8a1" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" RDEPENDS_${PN} = "libxml2 zlib dbus-lib" SRC_URI = " \ diff --git a/recipes-multimedia/pulseaudio/pulseaudio-8.0/0006-auto-load-module-router.patch b/recipes-multimedia/pulseaudio/pulseaudio-8.0/0006-auto-load-module-router.patch new file mode 100644 index 000000000..e1ae914fe --- /dev/null +++ b/recipes-multimedia/pulseaudio/pulseaudio-8.0/0006-auto-load-module-router.patch @@ -0,0 +1,26 @@ +diff --git a/src/daemon/default.pa.in b/src/daemon/default.pa.in +index 783e326..3c68638 100755 +--- a/src/daemon/default.pa.in ++++ b/src/daemon/default.pa.in +@@ -35,9 +35,9 @@ load-sample-dir-lazy %WINDIR%\Media\*.wav + .fail + + ### Automatically restore the volume of streams and devices +-load-module module-device-restore +-load-module module-stream-restore +-load-module module-card-restore ++#load-module module-device-restore ++#load-module module-stream-restore ++#load-module module-card-restore + + ### Automatically augment property information from .desktop files + ### stored in /usr/share/application +@@ -195,3 +195,8 @@ ifelse(@HAVE_X11@, 1, [dnl + ### Make some devices default + #set-default-sink output + #set-default-source input ++ ++.ifexists module-router.so ++load-module module-router ++.endif ++ diff --git a/recipes-multimedia/pulseaudio/pulseaudio_8.0.bbappend b/recipes-multimedia/pulseaudio/pulseaudio_8.0.bbappend new file mode 100644 index 000000000..8e4d2d88f --- /dev/null +++ b/recipes-multimedia/pulseaudio/pulseaudio_8.0.bbappend @@ -0,0 +1,6 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/pulseaudio-8.0:" + +SRC_URI += " \ + file://0006-auto-load-module-router.patch \ +" + -- cgit 1.2.3-korg