This might be useful for creating a particlar default device no matter what cards are loaded or in what order... % cat /usr/bin/asoundrc #!/bin/sh # asoundrc v0.1.0 20090101 markc@xxxxxxxxx GPLv3 # # A simple script to create a particular default audio device regardless # of what cards are loaded or in what order. It could be used anytime or # placed in a ~/.bashrc script for a persistent setup every login. # # Usage: asoundrc [DEFAULT_CARD] > ~/.asoundrc DEFAULT_CARD=XFi [ -n "$1" ] && DEFAULT_CARD=$1 export DEFAULT_CARD cat /proc/asound/cards | \ sed -n "s/.*\[\([a-zA-Z0-9]*\).*\].*/pcm.\1 { type hw; card \1; }\nctl.\1 { type hw; card \1; }/p" | \ awk '{print} END {print "pcm.!default pcm."ENVIRON["DEFAULT_CARD"]"\nctl.!default ctl."ENVIRON["DEFAULT_CARD"]}' --markc ------------------------------------------------------------------------------ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user