summaryrefslogtreecommitdiff
path: root/localv4ldump
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2013-09-12 15:01:32 +0200
committerJonas Smedegaard <dr@jones.dk>2013-09-12 15:01:32 +0200
commite1ce2fda71187e8e349ff3f408b41a599e223cd9 (patch)
tree9bc27a67b0a5b10e7dc0ef40373204321919190d /localv4ldump
parent87630aa7424af20040a1fd8eb2b03eea1cd45d80 (diff)
Tidy audio device autoresolving.
Diffstat (limited to 'localv4ldump')
-rwxr-xr-xlocalv4ldump5
1 files changed, 3 insertions, 2 deletions
diff --git a/localv4ldump b/localv4ldump
index a47f32c..2400382 100755
--- a/localv4ldump
+++ b/localv4ldump
@@ -32,8 +32,9 @@ set -e
output="${1:-dump.mkv}"
-ainputs="$(arecord -L | perl -nE '/^default:.*\b(CARD=\w+)/ and say $1')"
-#ainputs="hw:CARD=Generic_1,DEV=0"
+# resolve audio inputs: default PCM of all ALSA cards with input devices
+ainputs="$(arecord -l | perl -anE '/^card/ and say $F[2]')"
+#ainputs="CARD=Generic_1,DEV=0"
# FIXME: detect and avoid more than one device on same USB channel:
# [video4linux2 @ 0xed7e00] ioctl(VIDIOC_STREAMON): No space left on device