Skip to contentSkip to conversation

3.14.38-6QP_Beta release

PATCH Superseded Yuqing Zhu 2 participants 3 messages Aug 7, 2015

v7 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

Yuqing Zhu

author
#0 lore raw

PATCH v7 1/1 3.14.38-6QP_Beta release

Add PulseAudio configuration.

Yuqing Zhu (1):
pulseaudio: Add PulseAudio configuration

 .../pulseaudio/pulseaudio/daemon.conf              |  87 +++++++++++
 .../pulseaudio/pulseaudio/default.pa               | 170 +++++++++++++++++++++
 .../pulseaudio/pulseaudio_%.bbappend               |  20 +++
 3 files changed, 277 insertions(+)
 create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/daemon.conf
 create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/default.pa
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v7 1/1 pulseaudio: Add PulseAudio configuration

-Use the ffmpeg resample instead of the speex one, since
the ffmpeg resampler gives better quality.

-Normally, PulseAudio exits after an application finishes using it.
Set exit-idle-time to -1 in the daemon.conf to force it to not exit.

---
 .../pulseaudio/pulseaudio/daemon.conf              |  87 +++++++++++
 .../pulseaudio/pulseaudio/default.pa               | 170 +++++++++++++++++++++
 .../pulseaudio/pulseaudio_%.bbappend               |  20 +++
 3 files changed, 277 insertions(+)
 create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/daemon.conf
 create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/default.pa
recipes-multimedia/pulseaudio/pulseaudio/daemon.conf new file +87 -0
new file mode 100644
index 0000000..54854eb
@@ -0,0 +1,87 @@
+# This file is part of PulseAudio.
+#
+# PulseAudio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# PulseAudio is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with PulseAudio; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA.
+
+## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
+## more information. Default values are commented out.  Use either ; or # for
+## commenting.
+
+; daemonize = no
+; fail = yes
+; allow-module-loading = yes
+; allow-exit = yes
+; use-pid-file = yes
+; system-instance = no
+; local-server-type = user
+; enable-shm = yes
+; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
+; lock-memory = no
+; cpu-limit = no
+
+; high-priority = yes
+; nice-level = -11
+
+; realtime-scheduling = yes
+; realtime-priority = 5
+
+exit-idle-time = -1
+; scache-idle-time = 20
+
+; dl-search-path = (depends on architecture)
+
+; load-default-script-file = yes
+; default-script-file = /etc/pulse/default.pa
+
+; log-target = auto
+; log-level = notice
+; log-meta = no
+; log-time = no
+; log-backtrace = 0
+
+resample-method = ffmpeg
+; enable-remixing = yes
+; enable-lfe-remixing = no
+
+flat-volumes = no
+
+; rlimit-fsize = -1
+; rlimit-data = -1
+; rlimit-stack = -1
+; rlimit-core = -1
+; rlimit-as = -1
+; rlimit-rss = -1
+; rlimit-nproc = -1
+; rlimit-nofile = 256
+; rlimit-memlock = -1
+; rlimit-locks = -1
+; rlimit-sigpending = -1
+; rlimit-msgqueue = -1
+; rlimit-nice = 31
+; rlimit-rtprio = 9
+; rlimit-rttime = 1000000
+
+; default-sample-format = s16le
+; default-sample-rate = 44100
+; alternate-sample-rate = 48000
+; default-sample-channels = 2
+; default-channel-map = front-left,front-right
+
+; default-fragments = 4
+; default-fragment-size-msec = 25
+
+; enable-deferred-volume = yes
+; deferred-volume-safety-margin-usec = 8000
+; deferred-volume-extra-delay-usec = 0
recipes-multimedia/pulseaudio/pulseaudio/default.pa new file +170 -0

170 lines not on this page · raw message

recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +20 -0
index b9acb36..95b955d 100644
@@ -1,4 +1,24 @@
 
 CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no"
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+IMX_PATCHES = " file://daemon.conf \
+                file://default.pa \
+"
+SRC_URI_append_mx6 = "${IMX_PATCHES}"
+SRC_URI_append_mx7 = "${IMX_PATCHES}"
+
+do_install_append() {
+    install -m 0644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf
+    install -m 0644 ${WORKDIR}/default.pa ${D}${sysconfdir}/pulse/default.pa
+
+    #Fix me: Remove the kde desktop, because there are two destop in default
+    #        (pulseaudio-kde.destop, pulseaudio.destop), then the pulseaudio server
+    #        will be started twice, pulseaudio will have issue to switch to default input/output.
+    if [ -e ${D}${sysconfdir}/xdg/autostart/pulseaudio-kde.desktop ]
+    then
+        rm ${D}${sysconfdir}/xdg/autostart/pulseaudio-kde.desktop
+    fi
+}
+
 PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"
Signature · 1 line
1.9.1
#2 lore raw

Re: [meta-fsl-arm][PATCH v7] pulseaudio: Add PulseAudio configuration

Quoted 10 lines · Yuqing Zhu
(quoted diff) +0 -2
-Use the ffmpeg resample instead of the speex one, since
 the ffmpeg resampler gives better quality.
 
-Normally, PulseAudio exits after an application finishes using it.
 Set exit-idle-time to -1 in the daemon.conf to force it to not exit.
---
 .../pulseaudio/pulseaudio/daemon.conf              |  87 +++++++++++
 .../pulseaudio/pulseaudio/default.pa               | 170 +++++++++++++++++++++

Move those to imx subdir.

...

recipes-multimedia/pulseaudio/pulseaudio_%.bbappend line 4

Quoted 7 lines
recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +1 -0
@@ -1,4 +1,24 @@
 
 CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no"
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

New line here.

recipes-multimedia/pulseaudio/pulseaudio_%.bbappend line 11

Quoted 7 lines
recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +7 -0
+IMX_PATCHES = " file://daemon.conf \
+                file://default.pa \
+"
+SRC_URI_append_mx6 = "${IMX_PATCHES}"
+SRC_URI_append_mx7 = "${IMX_PATCHES}"
+
+do_install_append() {

if [ -n "${IMX_PATCHES}" ]; then

recipes-multimedia/pulseaudio/pulseaudio_%.bbappend line 13

Quoted 2 lines
recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +2 -0
+    install -m 0644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf
+    install -m 0644 ${WORKDIR}/default.pa ${D}${sysconfdir}/pulse/default.pa

fi

recipes-multimedia/pulseaudio/pulseaudio_%.bbappend line 22

Quoted 8 lines
recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +8 -0
+    #Fix me: Remove the kde desktop, because there are two destop in default
+    #        (pulseaudio-kde.destop, pulseaudio.destop), then the pulseaudio server
+    #        will be started twice, pulseaudio will have issue to switch to default input/output.
+    if [ -e ${D}${sysconfdir}/xdg/autostart/pulseaudio-kde.desktop ]
+    then
+        rm ${D}${sysconfdir}/xdg/autostart/pulseaudio-kde.desktop
+    fi
+}

We need to fix this in the original pulseaudio recipe, this is not SoC specific and someone might want to use KDE.

recipes-multimedia/pulseaudio/pulseaudio_%.bbappend line 24

Quoted 1 line
recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +0 -0
 PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"

Also add mx7 here.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750