summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-03-05 13:56:45 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-03-05 13:56:45 +0000
commitfbcdc89dfd7f9f93e68715c32b70d9bd46da8dc6 (patch)
tree9667aa2722d84d4d47cda2ce6652d05932ccf7f4 /perl-install/detect_devices.pm
parent51ec68a7c18b3cfa03e72861912830e4f66ed257 (diff)
downloaddrakx-fbcdc89dfd7f9f93e68715c32b70d9bd46da8dc6.tar
drakx-fbcdc89dfd7f9f93e68715c32b70d9bd46da8dc6.tar.gz
drakx-fbcdc89dfd7f9f93e68715c32b70d9bd46da8dc6.tar.bz2
drakx-fbcdc89dfd7f9f93e68715c32b70d9bd46da8dc6.tar.xz
drakx-fbcdc89dfd7f9f93e68715c32b70d9bd46da8dc6.zip
- (getTVcards, isTVcard) : consolidate tv detection code
- no need to keep capture buffer (not a big slow down but small rivers make big ones...)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index fe88d2ca7..7093ce36d 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -373,6 +373,12 @@ sub getSoundDevices {
(arch() =~ /ppc/ ? \&modules::load_category : \&modules::probe_category)->('multimedia/sound');
}
+sub isTVcard { $_[0]{driver} =~ /bttv|saa7134/ }
+
+sub getTVcards {
+ grep { isTVcard($_) } detect_devices::probeall();
+}
+
sub getSerialModem {
my ($modem, $mouse) = @_;
$mouse ||= {};