Date: Tue, 11 Jun 2002 06:24:46 -0400 (EDT) From: Dan Pelleg <daniel@pelleg.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/39146: sound fails to load on some Thinkpad models Message-ID: <200206111024.g5BAOkZn012280@palraz.wburn>
next in thread | raw e-mail | index | archive | help
>Number: 39146 >Category: kern >Synopsis: sound fails to load on some Thinkpad models >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 11 03:30:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dan Pelleg >Release: FreeBSD 4.6-RC i386 >Organization: >Environment: System: FreeBSD p 4.6-RC FreeBSD 4.6-RC #0: Fri Jun 7 21:01:47 EDT 2002 d@p:/P i386 >Description: Sound chip is not recognized on several Thinkpad X22 and X23 models. >How-To-Repeat: build a kernel with pcm, load on a X23. >Fix: This has been suggested by Colin Perkins on mobile@ at 12 Apr 2002. It works for his X22, as well as for me and another person using a X23-2662-K1T and a X23-2662-E5U. I don't know if it breaks anything for anyone. --- ac97.c.patch begins here --- --- sys/dev/sound/pcm/ac97.c.orig Mon Jun 10 21:09:50 2002 +++ sys/dev/sound/pcm/ac97.c Mon Jun 10 21:10:25 2002 @@ -373,7 +373,7 @@ wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); wrcd(codec, AC97_REG_RESET, 0); - DELAY(100000); + DELAY(400000); wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); i = rdcd(codec, AC97_REG_RESET); @@ -468,7 +468,7 @@ wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); wrcd(codec, AC97_REG_RESET, 0); - DELAY(100000); + DELAY(400000); wrcd(codec, AC97_REG_POWER, (codec->flags & AC97_F_EAPD_INV)? 0x8000 : 0x0000); i = rdcd(codec, AC97_REG_RESET); --- ac97.c.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206111024.g5BAOkZn012280>