diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-23 15:19:51 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-23 15:19:51 -0200 |
commit | 79c85f918a71ac98bf0337ad3bee5509c4f31e53 (patch) | |
tree | cd17bce4ad15ed7507dc39399cec50b7a51afc82 /v4l/scripts | |
parent | 2fd0c62f1dc22eaf95fd7aa0738cd6fea481e194 (diff) | |
download | mediapointer-dvb-s2-79c85f918a71ac98bf0337ad3bee5509c4f31e53.tar.gz mediapointer-dvb-s2-79c85f918a71ac98bf0337ad3bee5509c4f31e53.tar.bz2 |
Improve parsing script
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-x | v4l/scripts/em28xx.pl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/v4l/scripts/em28xx.pl b/v4l/scripts/em28xx.pl index 9a97def2a..98944ba79 100755 --- a/v4l/scripts/em28xx.pl +++ b/v4l/scripts/em28xx.pl @@ -27,19 +27,15 @@ while (<>) { next unless defined($id); - if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*driver_info.*(EM2820_BOARD_\w+)/ ) { + if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*)/ ) { $subvendor=$1; $subdevice=$2; - push @{$data{$3}->{subid}}, "$subvendor:$subdevice"; } - if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*driver_info.*(EM2800_BOARD_\w+)/ ) { - $subvendor=$1; - $subdevice=$2; - push @{$data{$3}->{subid}}, "$subvendor:$subdevice"; + if (/.*driver_info.*(EM28[\d]._BOARD_\w+)/ ) { + push @{$data{$1}->{subid}}, "$subvendor:$subdevice"; } - if (!defined($data{$id}) || !defined($data{$id}->{name})) { $data{$id}->{name} = $1 if (/\.name\s*=\s*\"([^\"]+)\"/); } |