summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2017-12-13 18:04:28 -0500
committerMatt Porter <mporter@konsulko.com>2017-12-19 13:05:40 -0500
commitaffcab4d4682ab2b2db9d64425c7c4956ea6b6b4 (patch)
tree20cec85ced1a846fc5e4e13a14383c119482aab7
parent420d2f38d5eca52bd5236d6f85772a79fbe28c20 (diff)
pulseaudio: disable exit-idle-time in daemon.conf
With bluetooth connected, pulseaudio is segfaulting during idle shutdown. Implement a workaround to avoid idle shutdown by disabling the exit idle timer that is on by default. Bug-AGL: SPEC-1188 Change-Id: Ie5868ed2a89d275973a7aca2555a0216c67d090a Signed-off-by: Matt Porter <mporter@konsulko.com>
-rw-r--r--meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio-10.0/0001-daemon-daemon.conf-disable-idle-exit.patch28
-rw-r--r--meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio_10.0.bbappend1
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio-10.0/0001-daemon-daemon.conf-disable-idle-exit.patch b/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio-10.0/0001-daemon-daemon.conf-disable-idle-exit.patch
new file mode 100644
index 000000000..98f7ce46b
--- /dev/null
+++ b/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio-10.0/0001-daemon-daemon.conf-disable-idle-exit.patch
@@ -0,0 +1,28 @@
+From 4410e137da046afd072435ae8cf99a677b277442 Mon Sep 17 00:00:00 2001
+From: Matt Porter <mporter@konsulko.com>
+Date: Wed, 13 Dec 2017 17:24:10 -0500
+Subject: [PATCH] daemon: daemon.conf: disable idle exit
+
+Disable exit on idle by default.
+
+Signed-off-by: Matt Porter <mporter@konsulko.com>
+---
+ src/daemon/daemon.conf.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/daemon/daemon.conf.in b/src/daemon/daemon.conf.in
+index f3a1cc32..5c5e948c 100644
+--- a/src/daemon/daemon.conf.in
++++ b/src/daemon/daemon.conf.in
+@@ -39,7 +39,7 @@ ifelse(@HAVE_DBUS@, 1, [dnl
+ ; realtime-scheduling = yes
+ ; realtime-priority = 5
+
+-; exit-idle-time = 20
++exit-idle-time = -1
+ ; scache-idle-time = 20
+
+ ; dl-search-path = (depends on architecture)
+--
+2.11.0
+
diff --git a/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio_10.0.bbappend b/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio_10.0.bbappend
index f59ee89d5..6833ca94e 100644
--- a/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio_10.0.bbappend
+++ b/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio_10.0.bbappend
@@ -8,6 +8,7 @@ SRC_URI += " \
file://0005-sink-input-volume-Add-support-for-volume-ramp-factor.patch \
file://0006-sink-input-Remove-pa_sink_input_set_volume_ramp.patch;apply=no \
file://enable-ofono-hfp-backend.patch \
+ file://0001-daemon-daemon.conf-disable-idle-exit.patch \
"
PACKAGES =+ " pulseaudio-module-dev"