* AT91 SoC PCM Capture
@ 2007-06-22 16:35 Paul Kavan
2007-06-22 17:19 ` Frank Mandarino
0 siblings, 1 reply; 2+ messages in thread
From: Paul Kavan @ 2007-06-22 16:35 UTC (permalink / raw)
To: Liam Girdwood, Frank Mandarino, alsa-devel
I am wondering what piece of code contains the capture functionality for the
at91 soc. I am hoping to see how and when the pcm activates the ssc at read
time. I just cannot figure out why TD0 would behave at such with this set of
code and yet behave correctly with my polling code. Not a criticism....just
wanting to figure this out.
Paul
--
***************************************
Paul David Kavan
Project Engineer
GRH Electronics, Inc.
402-734-4900
pkavan@gmail.com
***************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: AT91 SoC PCM Capture
2007-06-22 16:35 AT91 SoC PCM Capture Paul Kavan
@ 2007-06-22 17:19 ` Frank Mandarino
0 siblings, 0 replies; 2+ messages in thread
From: Frank Mandarino @ 2007-06-22 17:19 UTC (permalink / raw)
To: Paul Kavan; +Cc: alsa-devel
Paul Kavan wrote:
> I am wondering what piece of code contains the capture functionality for
> the at91 soc. I am hoping to see how and when the pcm activates the ssc
> at read time. I just cannot figure out why TD0 would behave at such with
> this set of code and yet behave correctly with my polling code. Not a
> criticism....just wanting to figure this out.
There is very little distinction between Playback and Capture in the
ASoC AT91 implementation. Each SSC has 2 DMA structures, one for each
direction. The Playback DMA structure points at the SSC PDC transmit
registers and SSC transmit register masks, and the Capture DMA structure
points at the SSC PDC receive registers and SSC receive masks. The DMA
structure to use is selected in at91_ssc_hw_params().
By doing this, at91-pcm.c DMA code can simply run the DMA transfers
without having to know which direction the data is being transferred.
Both receive and transmit SSC registers are initialized in
at91_ssc_hw_params(), regardless of the direction.
../fam
--
Frank Mandarino fmandarino(a)endrelia.com
Endrelia Technologies Inc.
Toronto, Ontario, Canada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-22 17:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22 16:35 AT91 SoC PCM Capture Paul Kavan
2007-06-22 17:19 ` Frank Mandarino
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.