Skip to contentSkip to conversation

pulseaudio: Add PulseAudio configuration

PATCH In review Yuqing Zhu 3 participants 3 messages Aug 24, 2015 – Aug 25, 2015 Arm i.MX and Layerscape

lore
Share & tools
lore

Yuqing Zhu

author
#0 lore raw

PATCH v9 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/imx/daemon.conf          |  87 +++++++++++
 .../pulseaudio/pulseaudio/imx/default.pa           | 170 +++++++++++++++++++++
 .../pulseaudio/pulseaudio_%.bbappend               |  13 ++
 3 files changed, 270 insertions(+)
 create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/imx/daemon.conf
 create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/imx/default.pa
recipes-multimedia/pulseaudio/pulseaudio/imx/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/imx/default.pa new file +170 -0

170 lines not on this page · raw message

recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +13 -0
index b9acb36..db4f749 100644
@@ -1,4 +1,17 @@
 
 CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no"
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/imx:"
+
+SRC_URI_append_mx6 = " file://daemon.conf file://default.pa"
+SRC_URI_append_mx7 = " file://daemon.conf file://default.pa"
+
+do_install_append() {
+    if [ -e "${WORKDIR}/daemon.conf" ] && [ -e "${WORKDIR}/default.pa" ]; then
+        install -m 0644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf
+        install -m 0644 ${WORKDIR}/default.pa ${D}${sysconfdir}/pulse/default.pa
+    fi
+}
+
 PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}"
Signature · 1 line
1.9.1
Acked-by on v9 1/1
#1 lore raw
Quoted 7 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.

Nikolay and Carlos, are you Ok in merging this one?

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
#2 lore raw

Hi Otavio,

Quoted 4 lines · Otavio Salvador
Quoted 3 lines · Yuqing Zhu

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

Quoted 8 lines
Quoted 4 lines

-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.

Nikolay and Carlos, are you Ok in merging this one?

Sure. Thanks to Yuqing Zhu for the patch!

Regards,
Nikolay