From: Victor Martinez Date: Sun, 28 Feb 2010 12:16:45 +0000 (+0000) Subject: alsa-utils: Initial import (verified compilation). X-Git-Url: http://gitweb/?a=commitdiff_plain;h=01a92d2cd12aec726eeb1d0aec7d2cac987bc68c;p=attic%2Fports%2Fopt-cross.git alsa-utils: Initial import (verified compilation). --- diff --git a/alsa-utils/.footprint b/alsa-utils/.footprint new file mode 100644 index 0000000..7857fe1 --- /dev/null +++ b/alsa-utils/.footprint @@ -0,0 +1,37 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/alsa +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/aconnect +-rwxr-xr-x root/root usr/bin/alsamixer +-rwxr-xr-x root/root usr/bin/amidi +-rwxr-xr-x root/root usr/bin/amixer +-rwxr-xr-x root/root usr/bin/aplay +-rwxr-xr-x root/root usr/bin/aplaymidi +lrwxrwxrwx root/root usr/bin/arecord -> aplay +-rwxr-xr-x root/root usr/bin/arecordmidi +-rwxr-xr-x root/root usr/bin/aseqdump +-rwxr-xr-x root/root usr/bin/aseqnet +-rwxr-xr-x root/root usr/bin/iecset +-rwxr-xr-x root/root usr/bin/speaker-test +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/aconnect.1.gz +-rw-r--r-- root/root usr/man/man1/alsactl.1.gz +-rw-r--r-- root/root usr/man/man1/alsamixer.1.gz +-rw-r--r-- root/root usr/man/man1/amidi.1.gz +-rw-r--r-- root/root usr/man/man1/amixer.1.gz +-rw-r--r-- root/root usr/man/man1/aplay.1.gz +-rw-r--r-- root/root usr/man/man1/aplaymidi.1.gz +lrwxrwxrwx root/root usr/man/man1/arecord.1.gz -> aplay.1.gz +-rw-r--r-- root/root usr/man/man1/arecordmidi.1.gz +-rw-r--r-- root/root usr/man/man1/aseqdump.1.gz +-rw-r--r-- root/root usr/man/man1/aseqnet.1.gz +-rw-r--r-- root/root usr/man/man1/iecset.1.gz +-rw-r--r-- root/root usr/man/man1/speaker-test.1.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/alsaconf.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/alsaconf +-rwxr-xr-x root/root usr/sbin/alsactl diff --git a/alsa-utils/.md5sum b/alsa-utils/.md5sum new file mode 100644 index 0000000..5518ddc --- /dev/null +++ b/alsa-utils/.md5sum @@ -0,0 +1,2 @@ +f7180316188552ee1e6759a03f1fe98d alsa-utils-1.0.22.tar.bz2 +7ca87ae2d727887898e1feb47a48d3f9 rc.alsa diff --git a/alsa-utils/Pkgfile b/alsa-utils/Pkgfile new file mode 100644 index 0000000..3dbe9f8 --- /dev/null +++ b/alsa-utils/Pkgfile @@ -0,0 +1,33 @@ +# Description: ALSA utils +# URL: http://www.alsa-project.org +# Maintainer: Tilman Sauerbeck, tilman at crux dot nu +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: alsa-lib dialog + +name=alsa-utils +version=1.0.22 +release=1 +source=(ftp://ftp.alsa-project.org/pub/utils/$name-$version.tar.bz2 \ + rc.alsa) + +build() { + cd $name-$version + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --mandir=/usr/man \ + --disable-nls + + # alsactl_init.7 is generated using xmlto, which we don't have + touch alsactl/alsactl_init.7 + + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share $PKG/usr/man/fr + + # see above + rm -f $PKG/usr/man/man7/alsactl_init.7 + rmdir $PKG/usr/man/man7 + + install -D -m 0755 $SRC/rc.alsa $PKG/etc/rc.d/alsa +} diff --git a/alsa-utils/README b/alsa-utils/README new file mode 100644 index 0000000..dab21d8 --- /dev/null +++ b/alsa-utils/README @@ -0,0 +1,40 @@ + + +README for alsa-utils + + +In order to facilitate saving and restoring of soundcard mixer levels at +shutdown and boot, take these two methods as examples: + + +***NOTE*** +BOTH methods require that you store your mixer levels beforehand, use +'/usr/sbin/alsactl store' first! +********** + + +Method 1: /etc/modprobe.conf + +Add something like the following to /etc/modprobe.conf: + +---- +# ALSA mixer settings save/restore +install snd-emu10k1 /sbin/modprobe --ignore-install \ + snd-emu10k1 $CMDLINE_OPTS; /usr/sbin/alsactl restore +remove snd-emu10k1 /usr/sbin/alsactl store; /sbin/modprobe -r \ + --ignore-remove snd-emu10k1 +---- + +(As with the other READMEs replace 'snd-emu10k1' with the correct + soundcard module for your system.) + +(On some hardware it seems the kernel module gets loaded but the + soundcard isn't initialized in time for the modprobe.conf install + command to succeed. If this is the case for your hardware, try + method 2 instead.) + + +Method 2: /etc/rc.d/alsa init script + +Add "alsa" to the SERVICES array in /etc/rc.conf. + diff --git a/alsa-utils/rc.alsa b/alsa-utils/rc.alsa new file mode 100644 index 0000000..a7498a2 --- /dev/null +++ b/alsa-utils/rc.alsa @@ -0,0 +1,26 @@ +#!/bin/sh +# +# /etc/rc.d/alsa: store/restore ALSA mixer levels +# + +# location of the alsactl executable +ALSACTL=/usr/sbin/alsactl + +case $1 in + start) + $ALSACTL restore + ;; + stop) + $ALSACTL store + ;; + restart) + $0 stop + sleep 2 + $0 start + ;; + *) + echo "Usage: $0 [start|stop|restart]" + ;; +esac + +# End of file