From e1ce2fda71187e8e349ff3f408b41a599e223cd9 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 12 Sep 2013 15:01:32 +0200 Subject: Tidy audio device autoresolving. --- localv4ldump | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'localv4ldump') 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 -- cgit v1.2.3