[oe-commits] Tanu Kaskinen : pulseaudio-client-conf-sato: initial recipe

git at git.openembedded.org git at git.openembedded.org
Tue May 19 11:01:18 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: b026372af76a054883349ce0852d6cce6f475af3
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b026372af76a054883349ce0852d6cce6f475af3

Author: Tanu Kaskinen <tanu.kaskinen at linux.intel.com>
Date:   Mon May 18 15:40:42 2015 +0300

pulseaudio-client-conf-sato: initial recipe

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.kaskinen at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../pulseaudio-client-conf-sato/client.conf          |  7 +++++++
 .../pulseaudio-sato/pulseaudio-client-conf-sato_1.bb | 20 ++++++++++++++++++++
 2 files changed, 27 insertions(+)

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"



More information about the Openembedded-commits mailing list