pulseaudio: add support to ccmp1 platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
6efe239a23
commit
443b5dbc1d
|
|
@ -0,0 +1,92 @@
|
||||||
|
# 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, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
## 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
|
||||||
|
; enable-memfd = 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 = speex-float-1
|
||||||
|
; avoid-resampling = false
|
||||||
|
; enable-remixing = yes
|
||||||
|
; remixing-use-all-sink-channels = yes
|
||||||
|
; remixing-produce-lfe = no
|
||||||
|
; remixing-consume-lfe = no
|
||||||
|
; lfe-crossover-freq = 0
|
||||||
|
|
||||||
|
; flat-volumes = no
|
||||||
|
|
||||||
|
; rescue-streams = yes
|
||||||
|
|
||||||
|
; 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 = 200000
|
||||||
|
|
||||||
|
; 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
|
||||||
|
|
@ -40,6 +40,7 @@ SRC_URI:append:ccimx6ulsbc = " \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI:append:ccmp1 = " \
|
SRC_URI:append:ccmp1 = " \
|
||||||
|
file://daemon.conf \
|
||||||
file://0001-pulseaudio-keep-headphones-volume-in-platforms-witho.patch \
|
file://0001-pulseaudio-keep-headphones-volume-in-platforms-witho.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
@ -73,6 +74,11 @@ do_install:append() {
|
||||||
install -d ${D}${systemd_unitdir}/system
|
install -d ${D}${systemd_unitdir}/system
|
||||||
install -m 0644 ${WORKDIR}/pulseaudio-system.service ${D}/${systemd_unitdir}/system
|
install -m 0644 ${WORKDIR}/pulseaudio-system.service ${D}/${systemd_unitdir}/system
|
||||||
|
|
||||||
|
# Remove pid file entry for non-graphical backend
|
||||||
|
if [ "${IS_HEADLESS}" = "true" ]; then
|
||||||
|
sed -i -e "/PIDFile/d" ${D}/${systemd_unitdir}/system/pulseaudio-system.service
|
||||||
|
fi
|
||||||
|
|
||||||
# Configuration files for HDMI sound card
|
# Configuration files for HDMI sound card
|
||||||
if [ "${AUDIO_HDMI}" = "yes" ]; then
|
if [ "${AUDIO_HDMI}" = "yes" ]; then
|
||||||
install -d ${D}${sysconfdir}/udev/scripts
|
install -d ${D}${sysconfdir}/udev/scripts
|
||||||
|
|
@ -84,6 +90,13 @@ do_install:append() {
|
||||||
sed -i -e '/load-module module-suspend-on-idle/{s,$, timeout=0,g}' ${D}${sysconfdir}/pulse/default.pa
|
sed -i -e '/load-module module-suspend-on-idle/{s,$, timeout=0,g}' ${D}${sysconfdir}/pulse/default.pa
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Pulse audio configuration files installation
|
||||||
|
do_install:append:ccmp1() {
|
||||||
|
if [ -e "${WORKDIR}/daemon.conf" ]; then
|
||||||
|
install -m 0644 ${WORKDIR}/daemon.conf ${D}/${sysconfdir}/pulse/daemon.conf
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
# The card-detect binary is only necessary for the HDMI hotplug to work on the ccimx6sbc/ccimx6qpsbc
|
# The card-detect binary is only necessary for the HDMI hotplug to work on the ccimx6sbc/ccimx6qpsbc
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue