public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
* PCM DMA only can fire ISR when it receives 4 samples more than the period, from McBSP port?
@ 2011-06-22  5:04 Philip Chu
  2011-06-22  7:05 ` Jarkko Nikula
  0 siblings, 1 reply; 6+ messages in thread
From: Philip Chu @ 2011-06-22  5:04 UTC (permalink / raw)
  To: Alsa-devel@alsa-project.org

HI,

I got a problem with my audio capture using McBSP 3 port on OMAP 3530. Linux kernel 2.6.32.
For the very first audio data capture, when I expect to receive only one exact period of data through McBSP, PCM DMA ISR never comes. When I check the DMA pointer by using snd_pcm_update_hw_ptr_pos(), I found it was just trash value. If I ask the data sender to send 4 samples more than the period defined, DMA ISR gets fired, the it points to the exact period position, and I assume the extra 4 bytes just get lost?

My McBSP is configured as a slave which needs the sender to provide Frame Sync, clocks etc, and those signals are designed to just kick in at the same time. Do the clock signal need to be present earlier than the Frame Sync?

Anybody knows what the issue could be?

Thanks in advance.

Philip Chu

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-01 15:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-22  5:04 PCM DMA only can fire ISR when it receives 4 samples more than the period, from McBSP port? Philip Chu
2011-06-22  7:05 ` Jarkko Nikula
2011-06-22 15:26   ` Philip Chu
2011-06-23  6:50     ` Jarkko Nikula
2011-06-23 13:16       ` Péter Ujfalusi
2011-07-01 15:39         ` Philip Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox