Merge pull request #4482 from lrusak/fritsch_pulseaudio

pulseaudio: use pulseaudio --> alsa bridge
This commit is contained in:
Stephan Raue 2015-12-20 13:42:51 +01:00
commit 3f63977746
6 changed files with 69 additions and 11 deletions

View File

@ -0,0 +1,42 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC 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 General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="alsa-plugins"
PKG_VERSION="1.0.29"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.alsa-project.org/"
PKG_URL="ftp://ftp.alsa-project.org/pub/plugins/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS_TARGET="toolchain alsa-lib"
PKG_PRIORITY="optional"
PKG_SECTION="audio"
PKG_SHORTDESC=""
PKG_LONGDESC=""
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
# package specific configure options
PKG_CONFIGURE_OPTS_TARGET="--disable-jack \
--enable-pulseaudio \
--disable-samplerate \
--disable-maemo-plugin \
--disable-maemo-resource-manager \
--disable-avcodec \
--with-plugindir=/usr/lib/alsa"

View File

@ -55,7 +55,6 @@ load-module module-suspend-on-idle
### Enable positioned event sounds ### Enable positioned event sounds
load-module module-position-event-sounds load-module module-position-event-sounds
### Automatically load modules for dbus ### Automatically load modules for dbus
.ifexists module-dbus-protocol.so .ifexists module-dbus-protocol.so
load-module module-dbus-protocol load-module module-dbus-protocol
@ -74,9 +73,5 @@ load-module module-position-event-sounds
load-module module-zeroconf-publish load-module module-zeroconf-publish
.endif .endif
.ifexists module-zeroconf-discover.so
load-module module-zeroconf-discover
.endif
load-module module-native-protocol-tcp auth-anonymous=1 load-module module-native-protocol-tcp auth-anonymous=1
load-module module-switch-on-connect load-module module-switch-on-connect

View File

@ -79,6 +79,7 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-silent-rules \
--disable-bluez5-ofono-headset \ --disable-bluez5-ofono-headset \
--disable-bluez5-native-headset \ --disable-bluez5-native-headset \
--enable-udev \ --enable-udev \
--with-udev-rules-dir=/usr/lib/udev/rules.d
--disable-hal-compat \ --disable-hal-compat \
--enable-ipv6 \ --enable-ipv6 \
--enable-openssl \ --enable-openssl \

View File

@ -0,0 +1,19 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC 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 General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/pulseaudio"

View File

@ -3,8 +3,12 @@ Description=PulseAudio Sound System
After=syslog.target local-fs.target After=syslog.target local-fs.target
[Service] [Service]
Restart=on-failure
ExecStart=/usr/bin/pulseaudio --system ExecStart=/usr/bin/pulseaudio --system
Restart=always TimeoutStopSec=1s
RestartSec=2
StartLimitInterval=60
StartLimitBurst=10
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -73,10 +73,7 @@ fi
if [ "$PULSEAUDIO_SUPPORT" = yes ]; then if [ "$PULSEAUDIO_SUPPORT" = yes ]; then
# for PulseAudio support # for PulseAudio support
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET pulseaudio" PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET pulseaudio alsa-plugins"
KODI_PULSEAUDIO="--enable-pulse"
else
KODI_PULSEAUDIO="--disable-pulse"
fi fi
if [ "$ESPEAK_SUPPORT" = yes ]; then if [ "$ESPEAK_SUPPORT" = yes ]; then
@ -254,7 +251,7 @@ PKG_CONFIGURE_OPTS_TARGET="gl_cv_func_gettimeofday_clobber=no \
$KODI_XORG \ $KODI_XORG \
--disable-ccache \ --disable-ccache \
$KODI_ALSA \ $KODI_ALSA \
$KODI_PULSEAUDIO \ --disable-pulse \
--enable-rtmp \ --enable-rtmp \
$KODI_SAMBA \ $KODI_SAMBA \
$KODI_NFS \ $KODI_NFS \