This recipe is related to enabling PulseAudio in Sato images. We will
rely on PulseAudio's autospawn feature to automatically start the
daemon. The graphical session in Sato runs under root, however, and
PulseAudio disables autospawning for root by default. We provide a
custom client.conf in Sato to change that default setting.

Signed-off-by: Tanu Kaskinen <tanu.kaski...@linux.intel.com>
---
 .../pulseaudio-client-conf-sato/client.conf          |  7 +++++++
 .../pulseaudio-sato/pulseaudio-client-conf-sato_1.bb | 20 ++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 
meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato/client.conf
 create mode 100644 
meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato_1.bb

diff --git 
a/meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato/client.conf 
b/meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato/client.conf
new file mode 100644
index 0000000..97492e7
--- /dev/null
+++ b/meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato/client.conf
@@ -0,0 +1,7 @@
+# We rely on PulseAudio's autospawn feature to automatically start the daemon
+# in Sato. The graphical session in Sato runs under root, however, and
+# PulseAudio disables autospawning for root by default. In a normal setup it's
+# not desirable to autospawn for root, because it can easily interfere with
+# other users' PulseAudio instances, but in Sato there are no other users, so
+# it's OK to enable this in Sato.
+allow-autospawn-for-root = yes
diff --git a/meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato_1.bb 
b/meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato_1.bb
new file mode 100644
index 0000000..c0858f6
--- /dev/null
+++ b/meta/recipes-sato/pulseaudio-sato/pulseaudio-client-conf-sato_1.bb
@@ -0,0 +1,20 @@
+SUMMARY = "/etc/pulse/client.conf tailored for Sato"
+SECTION = "multimedia"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
+                    
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+SRC_URI = "file://client.conf"
+S = "${WORKDIR}"
+
+do_install() {
+       install -d ${D}${sysconfdir}/pulse
+       install -m 0644 ${S}/client.conf ${D}${sysconfdir}/pulse
+}
+
+RCONFLICTS_${PN} = "pulseaudio-client-conf"
+RPROVIDES_${PN} = "pulseaudio-client-conf"
+RREPLACES_${PN} = "pulseaudio-client-conf"
+
+FILES_${PN} = "${sysconfdir}/pulse/client.conf"
+CONFFILES_${PN} = "${sysconfdir}/pulse/client.conf"
-- 
1.9.3

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to