diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-26 02:07:45 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-26 02:07:45 -0200 |
commit | 0112b169f6a802bc14c7d9c52eed37f5990dfa93 (patch) | |
tree | 3d9a28f99541f1f5d7a1fef224daf340e8e92c45 /v4l/scripts/em28xx.pl | |
parent | 6d67fdc302e1b986dcbd6729167116a4463f1f03 (diff) | |
parent | c8f0e62f66c8fae8399d077e41c8cbab137b3d4f (diff) | |
download | mediapointer-dvb-s2-0112b169f6a802bc14c7d9c52eed37f5990dfa93.tar.gz mediapointer-dvb-s2-0112b169f6a802bc14c7d9c52eed37f5990dfa93.tar.bz2 |
merge: http://linuxtv.org/hg/~tmerle/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/em28xx.pl')
-rwxr-xr-x | v4l/scripts/em28xx.pl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/v4l/scripts/em28xx.pl b/v4l/scripts/em28xx.pl index 278dfc214..9a97def2a 100755 --- a/v4l/scripts/em28xx.pl +++ b/v4l/scripts/em28xx.pl @@ -8,11 +8,7 @@ my %data; while (<>) { # defines in header file - if (/#define\s+(EM2820_BOARD_\w+)\s+(\d+)/) { - $data{$1}->{nr} = $2; - next; - } - if (/#define\s+(EM2800_BOARD_\w+)\s+(\d+)/) { + if (/#define\s+(EM28[\d]._BOARD_\w+)\s+(\d+)/) { $data{$1}->{nr} = $2; next; } @@ -22,11 +18,10 @@ while (<>) { $data{$id}->{id} = $id; $data{$id}->{type} = "(em2820/em2840)"; # $data{$id}->{nr} = $nr++; - }; - if (/\[(EM2800_BOARD_\w+)\]/) { - $id = $1; + } elsif (/\[(EM)(28[\d].)(_BOARD_\w+)\]/) { + $id = "$1$2$3"; $data{$id}->{id} = $id; - $data{$id}->{type} = "(em2800)"; + $data{$id}->{type} = "(em$2)"; # $data{$id}->{nr} = $nr++; }; |