* No sound comes out of AC97 codec
@ 2005-12-23 14:25 Mohammed Amine SAYA
2005-12-23 18:39 ` Liam Girdwood
2005-12-23 19:02 ` Lee Revell
0 siblings, 2 replies; 3+ messages in thread
From: Mohammed Amine SAYA @ 2005-12-23 14:25 UTC (permalink / raw)
To: alsa-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: No sound comes out of AC97 codec
2005-12-23 14:25 No sound comes out of AC97 codec Mohammed Amine SAYA
@ 2005-12-23 18:39 ` Liam Girdwood
2005-12-23 19:02 ` Lee Revell
1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2005-12-23 18:39 UTC (permalink / raw)
To: Mohammed Amine SAYA; +Cc: alsa-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: No sound comes out of AC97 codec
2005-12-23 14:25 No sound comes out of AC97 codec Mohammed Amine SAYA
2005-12-23 18:39 ` Liam Girdwood
@ 2005-12-23 19:02 ` Lee Revell
1 sibling, 0 replies; 3+ messages in thread
From: Lee Revell @ 2005-12-23 19:02 UTC (permalink / raw)
To: Mohammed Amine SAYA; +Cc: alsa-devel
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.
You forgot to post a link to your driver source.
Lee
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-23 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-23 14:25 No sound comes out of AC97 codec Mohammed Amine SAYA
2005-12-23 18:39 ` Liam Girdwood
2005-12-23 19:02 ` Lee Revell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.