summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/ac97.c
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2000-09-23 22:00:09 +0000
committercg <cg@FreeBSD.org>2000-09-23 22:00:09 +0000
commit27a6dc9c5ae8d6d5c98f20e46982df0ea10289da (patch)
tree3ca6c1fc11afafdff7e7ef7538d25b5f961491f0 /sys/dev/sound/pcm/ac97.c
parentee306bc4d0b8bce98af864654188034fcba77cdf (diff)
downloadFreeBSD-src-27a6dc9c5ae8d6d5c98f20e46982df0ea10289da.zip
FreeBSD-src-27a6dc9c5ae8d6d5c98f20e46982df0ea10289da.tar.gz
only probe mandatory channels on known bad codecs
Diffstat (limited to 'sys/dev/sound/pcm/ac97.c')
-rw-r--r--sys/dev/sound/pcm/ac97.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/ac97.c b/sys/dev/sound/pcm/ac97.c
index a5aaccb..d974bf2 100644
--- a/sys/dev/sound/pcm/ac97.c
+++ b/sys/dev/sound/pcm/ac97.c
@@ -341,7 +341,8 @@ ac97_initmixer(struct ac97_info *codec)
}
for (i = 0; i < 32; i++) {
- if (codec->mix[i].reg > 0) {
+ k = codec->noext? codec->mix[i].enable : 1;
+ if (k && (codec->mix[i].reg > 0)) {
old = rdcd(codec, codec->mix[i].reg);
wrcd(codec, codec->mix[i].reg, 0x3f);
j = rdcd(codec, codec->mix[i].reg);
OpenPOWER on IntegriCloud