[Pkg-alsa-devel] Bug#271341: alsactl wrapper?

Thomas Hood Thomas Hood <jdthood@aglu.demon.nl>, 271341@bugs.debian.org
Mon Sep 27 14:50:56 UTC 2004


Should we write a wrapper for alsactl that implements the requested
additional functionality?

The idea is that "alsactl restore" would, in addition to doing
"alsactl.real restore", also do something like what Bob McElrath
suggested[1]:

    shopt -s nullglob
    cd /proc/asound && for F in card[0-9]/pcm[0-9][pc] ; do
        CONFFILE="/etc/alsa/oss.d/$F"
        PROCFILE="/proc/asound/$F/oss"
        if [ -r "$CONFFILE" ] && [ -w "$PROCFILE" ] ; then
            cat "$CONFFILE" > "$PROCFILE"
        fi
    done


[1] http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/2004-September/001024.html

-- 
Thomas






More information about the Pkg-alsa-devel mailing list