summaryrefslogtreecommitdiff
path: root/localv4ldump
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2013-09-12 13:06:58 +0200
committerJonas Smedegaard <dr@jones.dk>2013-09-12 13:06:58 +0200
commit87630aa7424af20040a1fd8eb2b03eea1cd45d80 (patch)
treedb300bbaf27df7b0f774ed07389922704344a6d1 /localv4ldump
parent433f1c667e2dca55e3dc3156e32e54593944a49a (diff)
Fix stop adding bogus suffix to autodetected audio device names.
Diffstat (limited to 'localv4ldump')
-rwxr-xr-xlocalv4ldump4
1 files changed, 2 insertions, 2 deletions
diff --git a/localv4ldump b/localv4ldump
index 463dfb6..a47f32c 100755
--- a/localv4ldump
+++ b/localv4ldump
@@ -32,7 +32,7 @@ set -e
output="${1:-dump.mkv}"
-ainputs="$(arecord -L | perl -nE '/^default:.*\b(CARD=\w+)/ and say "hw:$1,DEV=0"')"
+ainputs="$(arecord -L | perl -nE '/^default:.*\b(CARD=\w+)/ and say $1')"
#ainputs="hw:CARD=Generic_1,DEV=0"
# FIXME: detect and avoid more than one device on same USB channel:
@@ -79,7 +79,7 @@ i=0
ainargs=
amaps=
for input in $ainputs; do
- ainargs="${vinargs:+$vinargs }-f alsa -ar 44100 -i $input"
+ ainargs="${vinargs:+$vinargs }-f alsa -ar 44100 -i hw:$input"
amaps="${amaps:+$amaps }-map $i:a"
((i=i+1))
done