summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-24 08:18:58 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-24 08:18:58 -0300
commitf36035a9e66e7645ee1ce15fdf1093493539be1e (patch)
treecea3b575e30f21dbdd34b7109db4f62fb4b7d808 /v4l
parent319038fc56fe1ecc73765f1ce56f562a4fe15309 (diff)
downloadmediapointer-dvb-s2-f36035a9e66e7645ee1ce15fdf1093493539be1e.tar.gz
mediapointer-dvb-s2-f36035a9e66e7645ee1ce15fdf1093493539be1e.tar.bz2
Add blacklist capability to tuner.pl and remove TDA9887 from the cardlist
From: Mauro Carvalho Chehab <mchehab@infradead.org> tda9887 is not really an independent tuner, but part of one. It shouldn't be ponted at a userlist. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rwxr-xr-xv4l/scripts/tuner.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/v4l/scripts/tuner.pl b/v4l/scripts/tuner.pl
index fcfa22e26..104c16dae 100755
--- a/v4l/scripts/tuner.pl
+++ b/v4l/scripts/tuner.pl
@@ -8,12 +8,17 @@ my %data;
my $H = shift;
my $C = shift;
+my %blacklist;
open IN, "<$H";
while (<IN>) {
# defines in header file
if (/#define\s+(TUNER_\w+)\s+(\d+)/) {
- $data{$1}->{nr} = $2;
+ my $num=$2;
+ $data{$1}->{nr} = $num;
+ if (/#define\s+TUNER_TDA9887/) {
+ $blacklist{$num}=1;
+ }
next;
}
}
@@ -37,6 +42,10 @@ while (<IN>) {
}
foreach my $item (sort { $data{$a}->{nr} <=> $data{$b}->{nr} } keys %data) {
+ if ($blacklist{$data{$item}->{nr}}) {
+ next;
+ }
+
printf("tuner=%d - %s", $data{$item}->{nr}, $data{$item}->{name});
print "\n";
}