summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/ac97.c
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>2001-12-10 20:27:18 +0000
committerguido <guido@FreeBSD.org>2001-12-10 20:27:18 +0000
commitaebaef0c199621b461fd9cad361f1828e1f649e8 (patch)
treef64894dd4ee74825ac30252fd1388c0e05456e9c /sys/dev/sound/pcm/ac97.c
parent806dd9594154848b701df2867cfa9eaf40c21231 (diff)
downloadFreeBSD-src-aebaef0c199621b461fd9cad361f1828e1f649e8.zip
FreeBSD-src-aebaef0c199621b461fd9cad361f1828e1f649e8.tar.gz
Get rid of irritating (bogus) message:
pcm0: ac97 codec failed to reset extended mode (0, got 80) This was due to not masking off the correct extended function bits in the read value from the extended status reg. MFC after: 2 days
Diffstat (limited to 'sys/dev/sound/pcm/ac97.c')
-rw-r--r--sys/dev/sound/pcm/ac97.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/ac97.c b/sys/dev/sound/pcm/ac97.c
index 5f6ccd0..7ae3a67 100644
--- a/sys/dev/sound/pcm/ac97.c
+++ b/sys/dev/sound/pcm/ac97.c
@@ -474,9 +474,12 @@ ac97_reinitmixer(struct ac97_info *codec)
if (!codec->noext) {
wrcd(codec, AC97_REGEXT_STAT, codec->extstat);
- if (rdcd(codec, AC97_REGEXT_STAT) != codec->extstat)
+ if ((rdcd(codec, AC97_REGEXT_STAT) & AC97_EXTCAPS)
+ != codec->extstat)
device_printf(codec->dev, "ac97 codec failed to reset extended mode (%x, got %x)\n",
- codec->extstat, rdcd(codec, AC97_REGEXT_STAT));
+ codec->extstat,
+ rdcd(codec, AC97_REGEXT_STAT) &
+ AC97_EXTCAPS);
}
if ((rdcd(codec, AC97_REG_POWER) & 2) == 0)
OpenPOWER on IntegriCloud