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
This commit is contained in:
parent
b45df7b4ae
commit
b60e55dbd0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user