mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
fix alsa build
This commit is contained in:
parent
67758cc221
commit
057da10b2d
@ -4,6 +4,8 @@
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
|
||||
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=32 -fPIC -DPIC"
|
||||
|
||||
cd $BUILD/$1*
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
@ -15,6 +17,8 @@ cd $BUILD/$1*
|
||||
--disable-python \
|
||||
--disable-dependency-tracking
|
||||
|
||||
sed -i 's/.*PKGLIBDIR.*/#define PKGLIBDIR ""/' include/config.h
|
||||
|
||||
$MAKE
|
||||
|
||||
$STRIP src/.libs/libasound.so*
|
||||
|
@ -1,13 +0,0 @@
|
||||
# configuration for PMac
|
||||
|
||||
<confdir:pcm/front.conf>
|
||||
|
||||
PMac.pcm.front.0 {
|
||||
@args [ CARD ]
|
||||
@args.CARD {
|
||||
type string
|
||||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
@ -4,6 +4,13 @@
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build alsa-lib
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/build ncurses
|
||||
|
||||
export CPPFLAGS="$CPPFLAGS -I$LIB_PREFIX/include/ncurses"
|
||||
export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/usr/lib64 -L$LIB_PREFIX/lib"
|
||||
|
||||
ALSAMIXER_CONFIG="--disable-alsamixer"
|
||||
[ "$DEVTOOLS" = yes ] && ALSAMIXER_CONFIG="--enable-alsamixer"
|
||||
|
||||
cd $BUILD/$1*
|
||||
./configure --host=$TARGET_NAME \
|
||||
@ -11,10 +18,15 @@ cd $BUILD/$1*
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--disable-dependency-tracking \
|
||||
--disable-alsamixer
|
||||
$ALSAMIXER_CONFIG
|
||||
|
||||
$MAKE -C amixer
|
||||
$STRIP amixer/amixer
|
||||
make -C amixer
|
||||
|
||||
if [ "$DEVTOOLS" = yes ]; then
|
||||
make -C alsamixer
|
||||
make -C aplay
|
||||
make -C iecset
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -85,13 +85,16 @@ mixer 'IEC958 Capture Monitor' 0% off
|
||||
mixer 'Headphone Jack Sense' 0% off
|
||||
mixer 'Line Jack Sense' 0% off
|
||||
|
||||
# Required on some Vaio notebooks (B3XP):
|
||||
mixer 'External Amplifier' 0% mute
|
||||
|
||||
# Required for either Analog or Digital output
|
||||
mixer 'SB Live Analog/Digital Output Jack' $SBL_AUDIGY
|
||||
mixer 'Audigy Analog/Digital Output Jack' $SBL_AUDIGY
|
||||
|
||||
# set SPDIF mixer params
|
||||
if [ "$SOUNDCARD_MODE" = SPDIF ]; then
|
||||
mixer 'IEC958' 90%
|
||||
mixer 'IEC958' 90% on
|
||||
mixer 'IEC958 Output' 90%
|
||||
mixer 'IEC958 Playback AC97-SPSA' $AC97_SPSA
|
||||
mixer 'IEC958 Coaxial' 90%
|
||||
|
@ -1,7 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
$SCRIPTS/install alsa-lib
|
||||
|
||||
[ "$DEVTOOLS" = yes ] && $SCRIPTS/install ncurses
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp $BUILD/$1*/amixer/amixer $INSTALL/usr/bin
|
||||
cp $BUILD/$1*/amixer/amixer $INSTALL/usr/bin
|
||||
|
||||
if [ "$DEVTOOLS" = yes ]; then
|
||||
cp $BUILD/$1*/alsamixer/alsamixer $INSTALL/usr/bin
|
||||
cp $BUILD/$1*/aplay/aplay $INSTALL/usr/bin
|
||||
cp $BUILD/$1*/iecset/iecset $INSTALL/usr/bin
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user