On Wed, May 6, 2009 at 10:01 AM, Jon Smirl jonsmirl@gmail.com wrote:
On Wed, May 6, 2009 at 1:33 AM, Peter Ujfalusi peter.ujfalusi@nokia.com wrote:
Hello,
On Tuesday 05 May 2009 20:03:57 ext Aggarwal, Anuj wrote:
Hi,
After playing out any audio file on OMAP3 EVM, having TWL4030 codec, I am hearing a beep sound. I have also tried implementing a mute function in which I disabled all the inputs/outputs but still that didn't help.
Any idea how this can be avoided?
I have not heard from this kind of problem so far, which does not mean, that it does not exist ;) Can you describe the beep sound?
After a quick look I can not pin point the soc board file used with the omap3evm board. Is it in the tree?
Does the beep happens in these cases also (after stopping it with Ctrl+C): aplay -f dat /dev/zero aplay -f dat /dev/urandom
I'm having this problem on PowerPC....
Audio is played via multiple period buffers Am interrupt is generated on the end of each period
The problem occurs at the end of the stream. The period containing the end of stream plays and generates an interrupt. ALSA then calls back with trigger(STOP)
But I can't shut off the DMA fast enough on these slower CPUs (not 3Ghz) to prevent the next period from starting to play. This next period contains data from earlier in the stream. When a small amount of it plays it sounds like a short tone beep.
The beep is only obvious if the last period being played mostly contains silence. In that case the silence will play, then you will be able to hear the burst of noise separated from the rest of the stream.
PS - a simple way to see if this is your problem. In the ISR memset the buffer that just finished playing to zero. That will make the problem go away since the stale data is now just silence.
What I need to know is the address of the last valid sample in the stream. If I knew that I could just program the DMA hardware to stop after it played. I've been staring at ALSA core for a couple of days trying to figure out how to get the address for the end of the stream.
CC-ing alsa-devel...
Thanks and Regards, Anuj Aggarwal
Platform Support Products Texas Instruments Incorporated
-- Péter _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
-- Jon Smirl jonsmirl@gmail.com