summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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