From: Takashi Iwai Subject: Re: Re: pxa2xx ac97 driver Date: Fri, 11 Feb 2005 19:09:35 +0100 Message-ID: References: <1108123181.3181.23.camel@icampbell-debian> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Received: from Cantor.suse.de (ns.suse.de [195.135.220.2]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 158E11DE for ; Fri, 11 Feb 2005 19:09:41 +0100 (MET) In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Nicolas Pitre Cc: Ian Campbell , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Fri, 11 Feb 2005 10:50:22 -0500 (EST), Nicolas Pitre wrote: > > On Fri, 11 Feb 2005, Ian Campbell wrote: > > > Hi Nico, > > > > I've just grabbed your pxa2xx audio driver from alsa CVS and given it a > > go on my PXA255 based board. I'm running 2.6.10 with the DMA mmap API > > backported. I got it working pretty quick with only a couple of issues > > -- thanks! > > > > First issue was minor: I think *_EOC only exist on PXA270, or at least > > they aren't documented on the 255 and the symbols aren't defined for > > CONFIG_PXA25x so I wrapped them in CONFIG_PXA27x. I don't know if it > > would hurt to write to the reserved bits on 255... > > > > Second issue is a bit strange. The code in the reset function does: > > GCR = GCR_COLD_RST; > > GCR |= GCR_PRIRDY_IEN|GCR_SECRDY_IEN; > > wait_event_timeout(gsr_wq, gsr_bits & (GSR_PCR | GSR_SCR), 1); > > which either causes a hang or causes repeated interrupts so that it is > > impossible to see what is going on (didn't see anything from a printk in > > the irq handler though). I changed it to > > GCR = GCR_COLD_RST; > > GCR |= GCR_CDONE_IE|GCR_SDONE_IE; > > wait_event_timeout(gsr_wq, gsr_bits & (GSR_PCR | GSR_SCR), 1); > > which matches the way the old OSS driver did the reset and now the > > driver works great. > > > > I don't understand this though since the documentation would appear to > > suggest that the PRIRDY way makes more sense. I guess it's possible that > > it is related to 255 errata #30 ("Invalid AC'97 interrupt during cold > > reset") but I'm not sure... > > > > Anyway, here is the patch for the changes I made, what do you think? > > > > Signed-off-by: Ian Campbell > > Looks fine to me. > > Signed-off-by: Nicolas Pitre OK, applied to CVS. thanks, Takashi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click