search for: audio_card

Displaying 1 result from an estimated 1 matches for "audio_card".

2009 Jan 29
1
Question on script
...k for both cases. AUDIO_HDMI=`aplay -l | grep -c HDMI` if [ "$AUDIO_HDMI" -ge 1 ] then AUDIO_DEVICE=`aplay -l | grep HDMI | grep " device " | grep -m 1 -v "device 0" | tr -d ':' | cut -d ' ' -f 8` AUDIO_CARD=`aplay -l | grep HDMI | grep " device " | grep -m 1 -v "device 0" | tr -d ':' | cut -d ' ' -f 2` sed "0,/hw:/s/hw:.*/hw:$AUDIO_CARD,$AUDIO_DEVICE\"/" < /etc/asound.conf > tt.txt mv tt.txt /etc/asound.conf c...