summaryrefslogtreecommitdiff
path: root/v4l/scripts/usbvision.pl
diff options
context:
space:
mode:
authorThierry MERLE <thierry.merle@free.fr>2008-01-09 21:33:53 +0100
committerThierry MERLE <thierry.merle@free.fr>2008-01-09 21:33:53 +0100
commit99256ac509514ee0e54c0b79ff65389297131fc2 (patch)
treed165679ebc592d1f71bd1daab6fa2320aad4b16d /v4l/scripts/usbvision.pl
parente4e5f2db6f6cea9c8661676a30dc40271ae18c2c (diff)
downloadmediapointer-dvb-s2-99256ac509514ee0e54c0b79ff65389297131fc2.tar.gz
mediapointer-dvb-s2-99256ac509514ee0e54c0b79ff65389297131fc2.tar.bz2
usbvision: add Pinnacle Studio PCTV USB (NTSC) FM V3
From: Thierry MERLE <thierry.merle@free.fr> Add the "Pinnacle Studio PCTV USB (NTSC) FM" device. This is the third occurrence of the same device designation... Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Diffstat (limited to 'v4l/scripts/usbvision.pl')
-rwxr-xr-xv4l/scripts/usbvision.pl10
1 files changed, 6 insertions, 4 deletions
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*\"([^\"]+)\"/);
}