diff options
-rw-r--r-- | linux/Documentation/video4linux/CARDLIST.em2820 | 4 | ||||
-rw-r--r-- | linux/Documentation/video4linux/CARDLIST.em28xx | 4 | ||||
-rw-r--r-- | v4l/ChangeLog | 9 | ||||
-rw-r--r-- | v4l/scripts/cardlist | 2 | ||||
-rw-r--r-- | v4l/scripts/em2820.pl | 47 |
5 files changed, 66 insertions, 0 deletions
diff --git a/linux/Documentation/video4linux/CARDLIST.em2820 b/linux/Documentation/video4linux/CARDLIST.em2820 new file mode 100644 index 000000000..a33ddea0b --- /dev/null +++ b/linux/Documentation/video4linux/CARDLIST.em2820 @@ -0,0 +1,4 @@ + 0 -> Terratec Cinergy 250 USB [0ccd:0036] + 1 -> Pinnacle PCTV USB 2 [2304:0208] + 2 -> Hauppauge WinTV USB 2 [2040:4200] + 3 -> MSI VOX USB 2.0 [eb1a:2820] diff --git a/linux/Documentation/video4linux/CARDLIST.em28xx b/linux/Documentation/video4linux/CARDLIST.em28xx new file mode 100644 index 000000000..a33ddea0b --- /dev/null +++ b/linux/Documentation/video4linux/CARDLIST.em28xx @@ -0,0 +1,4 @@ + 0 -> Terratec Cinergy 250 USB [0ccd:0036] + 1 -> Pinnacle PCTV USB 2 [2304:0208] + 2 -> Hauppauge WinTV USB 2 [2040:4200] + 3 -> MSI VOX USB 2.0 [eb1a:2820] diff --git a/v4l/ChangeLog b/v4l/ChangeLog index 2337cca7d..df2156c9f 100644 --- a/v4l/ChangeLog +++ b/v4l/ChangeLog @@ -1,3 +1,12 @@ +2005-10-06 15:27 mchehab + + * doc/CARDLIST.em2820: + * scripts/cardlist: + * scripts/em2820.pl: + - Added scripts and CARDLIST for em2820. + + Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> + 2005-10-06 14:26 mchehab * Make.config,Makefile,compat.h,em2820-cards.c,em2820-core.c, diff --git a/v4l/scripts/cardlist b/v4l/scripts/cardlist index 24a3072bf..22faa67b0 100644 --- a/v4l/scripts/cardlist +++ b/v4l/scripts/cardlist @@ -6,6 +6,8 @@ scripts/bttv.pl bttv.h bttv-cards.c \ scripts/cx88.pl cx88.h cx88-cards.c \ | perl -ne 's/[ \t]+$//; print' > doc/CARDLIST.cx88 +./scripts/em2820.pl em2820-cards.c \ + | perl -ne 's/[ \t]+$//; print' > doc/CARDLIST.em2820 cat tuner-simple.c \ | grep "{ \"" \ | perl -ne '/"([^"]+)"/; printf("tuner=%d - %s\n",$i++,$1)' \ diff --git a/v4l/scripts/em2820.pl b/v4l/scripts/em2820.pl new file mode 100644 index 000000000..ba498f0fd --- /dev/null +++ b/v4l/scripts/em2820.pl @@ -0,0 +1,47 @@ +#!/usr/bin/perl -w +use strict; + +my $new_entry = -1; +my $nr = 0; +my ($id,$subvendor,$subdevice); +my %data; + +while (<>) { + # defines in header file +# if (/#define\s+(EM2820_BOARD_\w+)\s+(\d+)/) { +# $data{$1}->{nr} = $2; +# next; +# } + # em2820_boards + if (/\[(EM2820_BOARD_\w+)\]/) { + $id = $1; + $data{$id}->{id} = $id; + $data{$id}->{nr} = $nr++; + }; + +# { USB_DEVICE(0x0ccd, 0x0036), .driver_info = EM2820_BOARD_TERRATEC_CINERGY_250 }, + + next unless defined($id); + + if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*driver_info.*(EM2820_BOARD_\w+)/ ) { + $subvendor=$1; + $subdevice=$2; + push @{$data{$3}->{subid}}, "$subvendor:$subdevice"; + } + + + if (!defined($data{$id}) || !defined($data{$id}->{name})) { + $data{$id}->{name} = $1 if (/\.name\s*=\s*\"([^\"]+)\"/); + } + + # em2820_USB_tbl + + +} + +foreach my $item (sort { $data{$a}->{nr} <=> $data{$b}->{nr} } keys %data) { + printf("%3d -> %-51s", $data{$item}->{nr}, $data{$item}->{name}); + printf(" [%s]",join(",",@{$data{$item}->{subid}})) + if defined($data{$item}->{subid}); + print "\n"; +} |