kern/84471: [sound] [patch] no sound ICH4 (Analog Devices AD1981B AC97 Codec)

Daisuke Orikasa luxury-acura-3.5rl at nifty.com
Sun Jan 8 08:39:17 PST 2006


Alexander Leidinger wrote:

>Synopsis: [sound] [patch] no sound ICH4 (Analog Devices AD1981B AC97 Codec)
>
>State-Changed-From-To: open->feedback
>State-Changed-By: netchild
>State-Changed-When: Fri Jan 6 15:28:25 UTC 2006
>State-Changed-Why: 
>Is this still a problem with a recent 6-stable or -current?
>
>http://www.freebsd.org/cgi/query-pr.cgi?pr=84471
>
>  
>
Yes.
It is not settled in recent 6-stable and -current.

acura35rl% dmesg | grep pcm0
pcm0: <Intel ICH4 (82801DB)> port 0x1c00-0x1cff,0x18c0-0x18ff mem
0xe0100c00-0xe0100dff,0xe0100800-0xe01008ff irq 10 at device 31.5 on pci0
pcm0: <Analog Devices AD1981B AC97 Codec>

acura35rl% uname -a
FreeBSD acura35rl.localhost 6.0-STABLE FreeBSD 6.0-STABLE #1: Sun Jan 8
06:57:24 JST 2006
root at acura35rl.localhost:/usr/obj/usr/src/sys/GATEWAY4028JP i386


Now I revise it in this way.

--- /usr/src/sys/dev/sound/pcm/ac97.c.orig Sun Jan 1 18:49:50 2006
+++ /usr/src/sys/dev/sound/pcm/ac97.c Sun Jan 1 18:51:56 2006
@@ -615,6 +615,8 @@
return ENODEV;
}

+ ac97_setflags(codec, AC97_F_EAPD_INV);
+
ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)?
0x8000 : 0x0000);
ac97_reset(codec);
ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)?
0x8000 : 0x0000);
@@ -802,6 +804,8 @@
snd_mtxunlock(codec->lock);
return ENODEV;
}
+
+ ac97_setflags(codec, AC97_F_EAPD_INV);

ac97_wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)?
0x8000 : 0x0000);
ac97_reset(codec);



More information about the freebsd-multimedia mailing list