Use the ALSA HW plug name instead of the HW device id in all the scripts using the ALSA device
This commit is contained in:
parent
b1c1d90158
commit
c8f437950a
@ -1 +1 @@
|
||||
arecord -D hw:1,0 -f cd -d 30 -r 44100 -t wav sink.wav
|
||||
arecord -D plughw:RAVENNA -c 2 -f cd -d 30 -r 44100 -t wav sink.wav
|
||||
|
@ -1 +1 @@
|
||||
speaker-test -D hw:1,0 -r 44100 -c 2 -t sine
|
||||
speaker-test -D plughw:RAVENNA -r 44100 -c 2 -t sine
|
||||
|
@ -76,12 +76,12 @@ sleep 30
|
||||
|
||||
#starting recording on sink
|
||||
echo "Starting to record 60 secs from sink ..."
|
||||
arecord -D hw:1,0 -f cd -d 60 -r 44100 -c 2 -t wav /tmp/sink_test.wav > /dev/null 2>&1 &
|
||||
arecord -D plughw:RAVENNA -f cd -d 60 -r 44100 -c 2 -t wav /tmp/sink_test.wav > /dev/null 2>&1 &
|
||||
sleep 10
|
||||
|
||||
#starting playback on source
|
||||
echo "Starting to playback test on source ..."
|
||||
speaker-test -D hw:1,0 -r 44100 -c 2 -t sine > /dev/null 2>&1 &
|
||||
speaker-test -D plughw:RAVENNA -r 44100 -c 2 -t sine > /dev/null 2>&1 &
|
||||
|
||||
while killall -0 arecord 2>/dev/null ; do
|
||||
sleep 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user