alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/4] ASoC: OMAP3: Extended threshold mode
@ 2010-07-29  6:51 Peter Ujfalusi
  2010-07-29  6:51 ` [RFC 1/4] ASoC: omap-mcbsp: Code cleanup in omap_mcbsp_dai_hw_params Peter Ujfalusi
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Peter Ujfalusi @ 2010-07-29  6:51 UTC (permalink / raw)
  To: alsa-devel; +Cc: broonie, lrg

Hello,

The following series extends the current threshold implementation for OMAP3
class of devices.

The original threshold implementation has limitation on the size of the period,
which can not be bigger than the McBSP port's FIFO size.
This limitation makes it hard to use any power saving on McBSP ports other than
McBSP2 (McBSP2 has 1280 word buffer, other ports have only 128 word long
buffer), since the maximum period size limit is really small.

After the series the limitation on the period size can be lifted, so user space
can ask for any period size on any of the McBSP ports.

In order to achieve this, I introduce the following changes, when McBSP is in
threshold mode:

if (period_words <= max_threshold)
Configure the McBSP/sDMA as it used to be:
McBSP threshold = sDMA frame size = period size
sDMA packet size = 0

Otherwise (period_words > max_threshold)
McBSP threshold = sDMA packet size
sDMA frame size = period size

In this case the code will look for the biggest possible threshold value, which
can evenly divide the period size, and use that for threshold/packet size.

The first two patch is for preparation.

The series has been generated against:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git:topic/asoc

What do you think?

---
Peter Ujfalusi (4):
  ASoC: omap-mcbsp: Code cleanup in omap_mcbsp_dai_hw_params
  ASoC: omap-mcbsp: Restructure the code within
    omap_mcbsp_dai_hw_params
  ASoC: omap-mcbsp: Support for sDMA packet mode
  ASoC: omap-mcbsp: Remove period size constraint in THRESHOLD mode

 sound/soc/omap/omap-mcbsp.c |  137 ++++++++++++++++++++++++-------------------
 1 files changed, 76 insertions(+), 61 deletions(-)

--
1.7.2

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

end of thread, other threads:[~2010-08-02  9:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-29  6:51 [RFC 0/4] ASoC: OMAP3: Extended threshold mode Peter Ujfalusi
2010-07-29  6:51 ` [RFC 1/4] ASoC: omap-mcbsp: Code cleanup in omap_mcbsp_dai_hw_params Peter Ujfalusi
2010-07-29  6:51 ` [RFC 2/4] ASoC: omap-mcbsp: Restructure the code within omap_mcbsp_dai_hw_params Peter Ujfalusi
2010-07-29  6:51 ` [RFC 3/4] ASoC: omap-mcbsp: Support for sDMA packet mode Peter Ujfalusi
2010-07-29  6:51 ` [RFC 4/4] ASoC: omap-mcbsp: Remove period size constraint in THRESHOLD mode Peter Ujfalusi
2010-07-29  9:03 ` [RFC 0/4] ASoC: OMAP3: Extended threshold mode Jarkko Nikula
2010-07-29 17:22 ` Mark Brown
2010-08-02  9:43   ` Liam Girdwood

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).