original_kernel/sound/soc/omap
Peter Ujfalusi ddc29b0104 ASoC: omap-mcbsp: Place correct constraints for streams
OMAP McBSP FIFO is word structured:
McBSP2 has 1024 + 256 = 1280 word long buffer,
McBSP1,3,4,5 has 128 word long buffer

This means, that the size of the FIFO
depends on the McBSP word size configuration.
For example on McBSP3:
16bit samples: size is 128 * 2 = 256 bytes
32bit samples: size is 128 * 4 = 512 bytes
It is simpler to place constraint for buffer and period based on channels.
McBSP3 as example again (16 or 32 bit samples):
1 channel (mono): size is 128 frames (128 words)
2 channels (stereo): size is 128 / 2 = 64 frames (2 * 64 words)
4 channels: size is 128 / 4 = 32 frames (4 * 32 words)

Use the second method to place hw_rule on buffer size, and in threshold
mode to period size.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolsfonmicro.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2010-06-03 16:12:40 +01:00
..
Kconfig ASoC: SDP4430: Add sdp4430 machine driver 2010-05-19 14:04:40 +01:00
Makefile ASoC: SDP4430: Add sdp4430 machine driver 2010-05-19 14:04:40 +01:00
am3517evm.c
ams-delta.c
igep0020.c
mcpdm.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
mcpdm.h
n810.c
omap-mcbsp.c ASoC: omap-mcbsp: Place correct constraints for streams 2010-06-03 16:12:40 +01:00
omap-mcbsp.h
omap-mcpdm.c
omap-mcpdm.h
omap-pcm.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 2010-04-07 08:42:25 -07:00
omap-pcm.h
omap2evm.c
omap3beagle.c
omap3evm.c
omap3pandora.c ASoC: pandora - update DAPM pins 2010-04-28 13:27:18 +01:00
osk5912.c
overo.c
rx51.c ASoC: omap: Add basic audio support for Nokia RX-51/N900 2010-05-06 09:50:11 +01:00
sdp3430.c
sdp4430.c ASoC: sdp4430 - add sdp4430 pcm ops to DAI. 2010-05-19 14:14:51 +01:00
zoom2.c ASoC: zoom2 - update DAPM pins 2010-04-28 13:27:18 +01:00