alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: omap-mcbsp: Constraint handling changes
@ 2012-03-20 11:13 Peter Ujfalusi
  2012-03-20 11:13 ` [PATCH 1/3] ASoC: omap-mcbsp: buffer size constraint only applies to playback stream Peter Ujfalusi
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Peter Ujfalusi @ 2012-03-20 11:13 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown; +Cc: alsa-devel, Grazvydas Ignotas, Jarkko Nikula

Hello,

This series will add the following changes:
1. We do not need to place buffer size constraint in case of a capture stream.

2. Grazvydas Ignotas <notasas@gmail.com> reported that on Pandora they have
issues with legacy applications (and OSS emulation) when they open the playback
with small period size (smaller than the FIFO size). Since these legacy
applications can not be fixed (and it is not feasible), this series will provide
a solution to overcome with the underruns at the stream start.

With the introduction of the new sysfs file (period_protection) the user can
request the driver to place the constraint to the period size instead of the
buffer size.
With the period_protection one can specify the number of samples they want to
have as protection in period size constraint over the McBSP FIFO size.

As an example:
OMAP3, McBSP2, stereo stream.
the FIFO is 640 samples long.
period_protection = 1 will ensure that the period size is minimum of 641 samples
long.

With the test code from Grazvydas Ignotas:
http://notaz.gp2x.de/misc/alsa_period_test.c

I don't see underrun issues with period_protection = 1 on BeagleBoard.

Regards,
Peter
---
Peter Ujfalusi (3):
  ASoC: omap-mcbsp: buffer size constraint only applies to playback
    stream
  ASoC: omap-mcbsp: Restructure omap_mcbsp_dai_startup code
  ASoC: omap-mcbsp: Add period size protection mode

 sound/soc/omap/mcbsp.c      |    2 +
 sound/soc/omap/mcbsp.h      |    1 +
 sound/soc/omap/omap-mcbsp.c |   71 ++++++++++++++++++++++++++++++++++--------
 3 files changed, 60 insertions(+), 14 deletions(-)

-- 
1.7.8.5

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

end of thread, other threads:[~2012-03-21 11:55 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-20 11:13 [PATCH 0/3] ASoC: omap-mcbsp: Constraint handling changes Peter Ujfalusi
2012-03-20 11:13 ` [PATCH 1/3] ASoC: omap-mcbsp: buffer size constraint only applies to playback stream Peter Ujfalusi
2012-03-20 15:26   ` Mark Brown
2012-03-20 16:34     ` Jarkko Nikula
2012-03-20 11:13 ` [PATCH 2/3] ASoC: omap-mcbsp: Restructure omap_mcbsp_dai_startup code Peter Ujfalusi
2012-03-20 15:27   ` Mark Brown
2012-03-20 11:13 ` [PATCH 3/3] ASoC: omap-mcbsp: Add period size protection mode Peter Ujfalusi
2012-03-20 16:01   ` Mark Brown
2012-03-20 16:15     ` Grazvydas Ignotas
2012-03-20 17:04       ` Mark Brown
2012-03-20 17:27         ` Grazvydas Ignotas
2012-03-20 18:07           ` Trent Piepho
2012-03-20 18:12           ` Mark Brown
2012-03-21  8:23       ` Peter Ujfalusi
2012-03-21 11:55         ` Grazvydas Ignotas
2012-03-20 16:20   ` Jarkko Nikula
2012-03-20 16:42     ` Grazvydas Ignotas
2012-03-20 19:20       ` Jarkko Nikula
2012-03-20 19:47         ` Trent Piepho
2012-03-21  7:57           ` Peter Ujfalusi
2012-03-21  8:13             ` Jarkko Nikula
2012-03-21  8:21               ` Peter Ujfalusi
2012-03-21  8:03     ` Peter Ujfalusi
2012-03-21  8:32       ` Jarkko Nikula
2012-03-21  8:40         ` Mark Brown
2012-03-21  9:16           ` Peter Ujfalusi
2012-03-21  9:34             ` Jarkko Nikula
2012-03-21  9:46               ` Peter Ujfalusi

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