From 99256ac509514ee0e54c0b79ff65389297131fc2 Mon Sep 17 00:00:00 2001 From: Thierry MERLE Date: Wed, 9 Jan 2008 21:33:53 +0100 Subject: usbvision: add Pinnacle Studio PCTV USB (NTSC) FM V3 From: Thierry MERLE Add the "Pinnacle Studio PCTV USB (NTSC) FM" device. This is the third occurrence of the same device designation... Signed-off-by: Thierry MERLE --- v4l/scripts/usbvision.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'v4l/scripts') diff --git a/v4l/scripts/usbvision.pl b/v4l/scripts/usbvision.pl index 3976e8bd1..b31df4f78 100755 --- a/v4l/scripts/usbvision.pl +++ b/v4l/scripts/usbvision.pl @@ -20,13 +20,15 @@ while (<>) { next unless defined($id); - if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*driver_info\s*=\s*([\w\d_]+)/) -{ + if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*/) + { $subvendor=$1; $subdevice=$2; - push @{$data{$3}->{subid}}, "$subvendor:$subdevice"; } - + if(/driver_info\s*=\s*([\w\d_]+)/) + { + push @{$data{$1}->{subid}}, "$subvendor:$subdevice"; + } if (!defined($data{$id}) || !defined($data{$id}->{name})) { $data{$id}->{name} = $1 if (/\.ModelString\s*=\s*\"([^\"]+)\"/); } -- cgit v1.2.3