Re: [patch] v4l: documentation update

From: Sergey Vlasov
Date: Mon Apr 05 2004 - 08:33:46 EST


On Mon, 5 Apr 2004 14:41:03 +0200 Gerd Knorr wrote:

> This patch updates the documentation for the v4l drivers.
[skip]

The update to linux/Documentation/video4linux/CARDLIST.saa7134 is
buggy - I have just noticed this problem when building your drivers.
Here is the fix for your scripts which generate this file:

--- video4linux/scripts/saa7134.pl.saa7134-list-fix 2004-03-05 17:04:57 +0300
+++ video4linux/scripts/saa7134.pl 2004-04-04 23:00:18 +0400
@@ -21,11 +21,14 @@
my %data;

while (<>) {
+ if (/#define\s+(SAA7134_BOARD_\w+)\s+(\d+)/) {
+ $data{$1}->{nr} = $2;
+ next;
+ }
# saa7134_boards
if (/\[(SAA7134_BOARD_\w+)\]/) {
$id = $1;
$data{$id}->{id} = $id;
- $data{$id}->{nr} = $nr++;
};
next unless defined($id);

--- video4linux/scripts/cardlist.saa7134-list-fix 2004-02-22 04:59:36 +0300
+++ video4linux/scripts/cardlist 2004-04-04 22:59:36 +0400
@@ -10,6 +10,6 @@
| perl -ne '/"([^"]+)"/; printf("tuner=%d - %s\n",$i++,$1)' \
> doc/CARDLIST.tuner

-scripts/saa7134.pl saa7134-cards.c \
+scripts/saa7134.pl saa7134.h saa7134-cards.c \
> doc/CARDLIST.saa7134

Attachment: pgp00000.pgp
Description: PGP signature