From 51f13ca3ac2ae698e7356bda826f0d4a75e11092 Mon Sep 17 00:00:00 2001 From: ronan Date: Fri, 24 Nov 2017 19:00:41 +0100 Subject: Change 4A PCM Name * Update Policy level of each pcm * Fix Pulseaudio start * Add 4A module config to pulse audio SPEC-1140: we need to have orderer PCM list in file 90-4a-modules.pa, to fix pulseaudio startup. (From lower to higher). Bug-AGL: SPEC-1136 Bug-AGL: SPEC-1103 Change-Id: I847711d9076a0d9817176a5cc3dee823476d8703 Signed-off-by: ronan --- .../recipes-multimedia/pulseaudio/files/90-4a-modules.pa | 12 ++++++++++++ .../recipes-multimedia/pulseaudio/pulseaudio_%.bbappend | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 meta-audio-4a-framework/recipes-multimedia/pulseaudio/files/90-4a-modules.pa create mode 100644 meta-audio-4a-framework/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend (limited to 'meta-audio-4a-framework/recipes-multimedia/pulseaudio') diff --git a/meta-audio-4a-framework/recipes-multimedia/pulseaudio/files/90-4a-modules.pa b/meta-audio-4a-framework/recipes-multimedia/pulseaudio/files/90-4a-modules.pa new file mode 100644 index 00000000..0cc2fdc0 --- /dev/null +++ b/meta-audio-4a-framework/recipes-multimedia/pulseaudio/files/90-4a-modules.pa @@ -0,0 +1,12 @@ +load-module module-alsa-sink device=Fallback +load-module module-alsa-sink device=CustomLow +load-module module-alsa-sink device=Radio +load-module module-alsa-sink device=Multimedia +load-module module-alsa-sink device=Streaming +load-module module-alsa-sink device=Video +load-module module-alsa-sink device=CustomMedium +load-module module-alsa-sink device=Navigation +load-module module-alsa-sink device=Phone +load-module module-alsa-sink device=CustomHigh +load-module module-alsa-sink device=Warning +load-module module-alsa-sink device=Emergency diff --git a/meta-audio-4a-framework/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend b/meta-audio-4a-framework/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend new file mode 100644 index 00000000..6b122f5e --- /dev/null +++ b/meta-audio-4a-framework/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend @@ -0,0 +1,16 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI += "file://90-4a-modules.pa" + +# Add .include directive to default.pa so optional configuration can be added +do_install_append () { + if [ ! -e ${D}${sysconfdir}/pulse/default.d/ ]; then + echo ".include ${sysconfdir}/pulse/default.d" >> ${D}${sysconfdir}/pulse/default.pa + install -d ${D}${sysconfdir}/pulse/default.d + fi + install -m 0644 ${WORKDIR}/90-4a-modules.pa ${D}${sysconfdir}/pulse/default.d/ + + for m in module-udev-detect module-suspend-on-idle;do + sed -i -e "s|^load-module ${m}|#load-module ${m}|" ${D}${sysconfdir}/pulse/default.pa + done +} -- cgit 1.2.3-korg