alsa-utils: move soundconfig to /usr/lib/udev, cleanup

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-11-12 04:31:40 +01:00
parent 5e18d23a14
commit 7ae6ec453b
2 changed files with 4 additions and 14 deletions

View File

@ -25,13 +25,14 @@
mkdir -p $INSTALL/usr/bin mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/amixer/amixer $INSTALL/usr/bin cp $PKG_BUILD/amixer/amixer $INSTALL/usr/bin
cp $PKG_BUILD/aplay/aplay $INSTALL/usr/bin cp $PKG_BUILD/aplay/aplay $INSTALL/usr/bin
cp $PKG_DIR/scripts/soundconfig $INSTALL/usr/bin
cp $PKG_BUILD/speaker-test/speaker-test $INSTALL/usr/bin cp $PKG_BUILD/speaker-test/speaker-test $INSTALL/usr/bin
mkdir -p $INSTALL/usr/lib/udev
cp $PKG_DIR/scripts/soundconfig $INSTALL/usr/lib/udev
mkdir -p $INSTALL/usr/sbin mkdir -p $INSTALL/usr/sbin
cp $PKG_BUILD/alsactl/alsactl $INSTALL/usr/sbin cp $PKG_BUILD/alsactl/alsactl $INSTALL/usr/sbin
mkdir -p $INSTALL/usr/share/alsa/init mkdir -p $INSTALL/usr/share/alsa/init
cp $PKG_BUILD/alsactl/init/* $INSTALL/usr/share/alsa/init cp $PKG_BUILD/alsactl/init/* $INSTALL/usr/share/alsa/init
rm -rf $INSTALL/usr/share/alsa/init/Makefile* rm -rf $INSTALL/usr/share/alsa/init/Makefile*

View File

@ -18,16 +18,5 @@
# http://www.gnu.org/copyleft/gpl.html # http://www.gnu.org/copyleft/gpl.html
################################################################################ ################################################################################
# Give the audio group ownership of sound devices
SUBSYSTEM=="sound", GROUP="audio"
SUBSYSTEM=="snd", GROUP="audio"
# ALSA Devices
# When a sound device is detected, restore the volume settings # When a sound device is detected, restore the volume settings
KERNEL=="controlC[0-9]*", NAME="snd/%k", ACTION=="add", RUN+="/usr/bin/soundconfig" KERNEL=="controlC[0-9]*", NAME="snd/%k", ACTION=="add", RUN+="soundconfig"
KERNEL=="hw[CD0-9]*", NAME="snd/%k"
KERNEL=="pcm[CD0-9cp]*", NAME="snd/%k"
KERNEL=="midiC[D0-9]*", NAME="snd/%k"
KERNEL=="timer", NAME="snd/%k"
KERNEL=="seq", NAME="snd/%k"
KERNEL=="mixer0", SYMLINK+="mixer"