From: Takashi Iwai Subject: Re: cs4248 / thinkpad 755 / 755c , patch suggestions Date: Thu, 03 Jul 2003 14:32:27 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20030702185006.GU24005@dbz.icequake.net> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20030702185006.GU24005@dbz.icequake.net> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Ryan Underwood Cc: alsa-devel@lists.sourceforge.net, witwerg@icequake.net List-Id: alsa-devel@alsa-project.org At Wed, 2 Jul 2003 13:50:07 -0500, Ryan Underwood wrote: > > So, my question to alsa-devel is, what should be the proper way to do this fix? > I could just do something like the following: > > ... try init ... > else { /* if the chip remained busy, let's see if we have a Thinkpad that needs > the chip powered on */ > > outb(0x1c, 0x15e8); > temp = inb(0x15e9); > outb(temp|2, 0x15e8); > ... try init again ... > } > > But that seems a braindead solution -- we don't want to go banging random ports > on a machine which may have other sensitive things attached there. Under > windows 95, the 0x15e8-0x15ef is assigned to "Motherboard Resources" -- is there > a way to determine whether this I/O range is allocated by the system in a useful > manner instead of making guesswork? i don't think we can retrieve this info generally. possibly readable from somewhere in BIOS, but it's not general at all. and, of course, the above sequence shouldn't be done as default. i would recommend a special module option for this, as you suggested in another mail. Takashi ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01