Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Jan 2006 01:38:44 +0900
From:      Daisuke Orikasa <luxury-acura-3.5rl@nifty.com>
To:        Alexander Leidinger <netchild@FreeBSD.org>
Cc:        freebsd-multimedia@FreeBSD.org
Subject:   Re: kern/84471: [sound] [patch] no sound ICH4 (Analog Devices AD1981B AC97 Codec)
Message-ID:  <43C14014.1020703@nifty.com>
In-Reply-To: <200601061528.k06FSp4h000648@freefall.freebsd.org>
References:  <200601061528.k06FSp4h000648@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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);




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C14014.1020703>