From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohammed Amine SAYA Subject: No sound comes out of AC97 codec Date: Fri, 23 Dec 2005 15:25:49 +0100 Message-ID: <43AC08ED.9030005@rfo.atmel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: 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: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi all, I wrote a driver for an AC97 controller on ARM-based platform. I followed the instructions in "Writing an ALSA Driver" tutorial. I cross-compiled mplayer and I added some debug lines in my prepare, trigger and pointer functions in the alsa driver. It seems that mplayer uses these functions but no sound comes out of the speaker. I put a scope to monitor AC97_TX, AC97_RX, AC97_CK and AC97_FS signals. I was surprised to discover that nothing is sent. 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. Where did the pcm data generated by mplayer go ? 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 ? Best regards, Amine. ------------------------------------------------------- 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