alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* davici-mcasp: "tx-num-evt" confusion with number of serializers
@ 2013-02-26 14:06 Michal Bachraty
  2013-02-26 18:40 ` Mike Looijmans
  0 siblings, 1 reply; 13+ messages in thread
From: Michal Bachraty @ 2013-02-26 14:06 UTC (permalink / raw)
  To: alsa-devel

Hi,
I'm  working on multichannel version of davinci-mcasp and also davinci-pcm. I 
have first version running and now I want to refine code. I found one confusion 
in davinci-mcasp with using of DT property "tx-num-evt".  In DT binding 
documentation "tx-num-evt" is defined as "FIFO levels", but in Mcasp src, there 
is code, which mixes tx-num-evt with number of serializers (i2s data lines) 
that are enabled for data playback and receive (dev->txnumevt * tx_ser)

mcasp_mod_bits(dev->base + MCASP_VER3_WFIFOCTL,
                (((dev->txnumevt * tx_ser) << 8), NUMEVT_MASK); 

>From dacinci pcm,  DMA data tranfer use txnumevt as number of serializers and 
also for data prefetching. 
I undestand definition "FIFO levels" as how many prefetched data are in FIFO. 
Prefetched data are for me frame data / 2  ( all left or right channels for 
one sampling time). This results me from AM335x FIFO documantation.
What is original purpose for "tx-num-evt" parameter?

Thanks,
Michal

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

end of thread, other threads:[~2013-03-11  7:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-26 14:06 davici-mcasp: "tx-num-evt" confusion with number of serializers Michal Bachraty
2013-02-26 18:40 ` Mike Looijmans
2013-02-27 11:36   ` Michal Bachraty
2013-02-27 12:05     ` Mike Looijmans
2013-02-28  9:06       ` Michal Bachraty
2013-02-28  9:32         ` Mike Looijmans
2013-02-28 11:02           ` Michal Bachraty
2013-02-28 13:19             ` Daniel Mack
2013-02-28 13:26               ` Daniel Mack
2013-03-01 10:08                 ` Mark Brown
2013-03-06 10:51                   ` Bedia, Vaibhav
2013-03-08 16:11                     ` Michal Bachraty
2013-03-11  7:09                       ` Bedia, Vaibhav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).