From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: No sound comes out of AC97 codec Date: Fri, 23 Dec 2005 18:39:48 +0000 Message-ID: <1135363188.3512.12.camel@localhost.localdomain> References: <43AC08ED.9030005@rfo.atmel.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <43AC08ED.9030005@rfo.atmel.com> 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: Mohammed Amine SAYA Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Fri, 2005-12-23 at 15:25 +0100, Mohammed Amine SAYA wrote: > Hi all, > I wrote a driver for an AC97 controller on ARM-based platform. Can you tell us what your target cpu is ? > I decided to print the > runtime->dma_addr to > see what kind of data the dma buffer contains. I only found out > 0x80008000 patterns and this > is exactly what I see on AC97_TX in slots 3 and 4 on the scope. ok, this means the ac97 controller on your cpu is probably running (as it's sending data out on slots 3 and 4). Your DMA is probably also working as it looks the buffer is being sent out on slots 3 and 4. > > Where did the pcm data generated by mplayer go ? Out of interest, have you tried using aplay and playing a wav file ? > Why the dma buffer is empty ? I use > snd_pcm_lib_preallocate_pages_for_all and snd_pcm_lib_malloc_pages > to allocate the dma buffer. > > The codec is detected correctly but the dma buffer is full of corrupted pcm. > > Any lights on this please ? > It would probably help if you could post your code somewhere as it sounds like a complex problem. Liam ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click