From 171bc5c067cefe8ece060ae11506133df9ed64ae Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sun, 28 Sep 2008 17:30:02 +0000 Subject: pulseaudio meta: fix samplerate regression, make it machine specific * this seems to be the 4th package in OE to install a /etc/asound.conf, so it probably can't be installed since alsa itself already provides that file... --- packages/pulseaudio/pulseaudio-meta/pulseaudio | 2 +- packages/pulseaudio/pulseaudio-meta_0.9.10.bb | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'packages/pulseaudio') diff --git a/packages/pulseaudio/pulseaudio-meta/pulseaudio b/packages/pulseaudio/pulseaudio-meta/pulseaudio index 964947376e..e0d33bd2b9 100755 --- a/packages/pulseaudio/pulseaudio-meta/pulseaudio +++ b/packages/pulseaudio/pulseaudio-meta/pulseaudio @@ -15,7 +15,7 @@ prog="pulseaudio" start() { echo -n "Starting audio server: " # FIXME once alsa/shm permissions have been fixed, supply --system - start-stop-daemon -S -x /usr/bin/pulseaudio -- --no-cpu-limit --resample-method=trivial -D -nF /etc/pulse/session + start-stop-daemon -S -x /usr/bin/pulseaudio -- --no-cpu-limit --resample-method=sinc-fastest -D -nF /etc/pulse/session if [ $? = 0 ]; then echo "$prog (warning ignores)." # FIXME remove comment on warning diff --git a/packages/pulseaudio/pulseaudio-meta_0.9.10.bb b/packages/pulseaudio/pulseaudio-meta_0.9.10.bb index 0f1dd6a5b6..b11963b869 100644 --- a/packages/pulseaudio/pulseaudio-meta_0.9.10.bb +++ b/packages/pulseaudio/pulseaudio-meta_0.9.10.bb @@ -5,19 +5,24 @@ RDEPENDS = "\ pulseaudio-module-alsa-sink \ pulseaudio-module-alsa-source \ pulseaudio-module-cli \ + pulseaudio-module-default-device-restore \ + pulseaudio-module-detect\ pulseaudio-module-esound-protocol-unix \ pulseaudio-module-simple-protocol-tcp \ pulseaudio-module-native-protocol-unix \ pulseaudio-module-cli-protocol-unix \ + pulseaudio-module-rescue-streams\ pulseaudio-module-suspend-on-idle \ + pulseaudio-module-volue-restore \ gst-plugin-pulse \ libasound-module-ctl-pulse \ libasound-module-pcm-pulse \ " -PR = "r1" +PR = "r2" inherit update-rc.d +export TARGET_PFPU = "${TARGET_FPU}" INITSCRIPT_NAME = "pulseaudio" INITSCRIPT_PARAMS = "defaults 35" @@ -34,11 +39,16 @@ do_install() { install -d ${D}/${sysconfdir}/pulse install -m 0755 ${WORKDIR}/session ${D}/${sysconfdir}/pulse/session install -m 0644 ${WORKDIR}/asound.conf ${D}/${sysconfdir} + + if [ "x${TARGET_PFPU}" == "xsoft" ] ; then + sed -i -e s:resample-method=sinc-fastest:resample-method=trivial: ${D}${sysconfdir}/init.d/pulseaudio + fi } -PACKAGE_ARCH = "all" +PACKAGE_ARCH = "${MACHINE_ARCH}" CONFFILES_${PN} = "\ + ${sysconfdir}/init.d/pulseaudio \ ${sysconfdir}/pulse/session \ ${sysconfdir}/asound.conf \ " -- cgit v1.2.3