summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/data.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-01-06 15:52:43 +0000
committerThierry Vignaud <tv@mandriva.org>2009-01-06 15:52:43 +0000
commitfccdf94dbd892803774394e53f123c44b2cd1803 (patch)
tree025aa222b3b0d248fe5f7cd9f9c30a3529d2833b /perl-install/harddrake/data.pm
parent002bf362f20c1e0dab31f72fb510a4199d28ac53 (diff)
downloaddrakx-backup-do-not-use-fccdf94dbd892803774394e53f123c44b2cd1803.tar
drakx-backup-do-not-use-fccdf94dbd892803774394e53f123c44b2cd1803.tar.gz
drakx-backup-do-not-use-fccdf94dbd892803774394e53f123c44b2cd1803.tar.bz2
drakx-backup-do-not-use-fccdf94dbd892803774394e53f123c44b2cd1803.tar.xz
drakx-backup-do-not-use-fccdf94dbd892803774394e53f123c44b2cd1803.zip
do not show duplicated hardware as unknown (#46242): list PC Speaker
as sound card [backported from trunk]
Diffstat (limited to 'perl-install/harddrake/data.pm')
-rw-r--r--perl-install/harddrake/data.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm
index 13c0f303f..f51350a32 100644
--- a/perl-install/harddrake/data.pm
+++ b/perl-install/harddrake/data.pm
@@ -303,7 +303,8 @@ our @tree =
detector => sub {
require list_modules;
my @modules = list_modules::category2modules('multimedia/sound');
- f(grep { $_->{media_type} =~ /MULTIMEDIA_AUDIO/ || member($_->{driver}, @modules) } @devices);
+ f(grep { $_->{media_type} =~ /MULTIMEDIA_AUDIO/ || member($_->{driver}, @modules)
+ || $_->{description} =~ /PC Speaker/ } @devices);
},
checked_on_boot => 1,
},