From fbcdc89dfd7f9f93e68715c32b70d9bd46da8dc6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 5 Mar 2003 13:56:45 +0000 Subject: - (getTVcards, isTVcard) : consolidate tv detection code - no need to keep capture buffer (not a big slow down but small rivers make big ones...) --- perl-install/detect_devices.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'perl-install/detect_devices.pm') 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 ||= {}; -- cgit v1.2.1