diff options
| author | Peter Ujfalusi <[email protected]> | 2010-06-03 07:39:36 +0300 |
|---|---|---|
| committer | Liam Girdwood <[email protected]> | 2010-06-03 16:12:40 +0100 |
| commit | ddc29b0104d69e3742e6a9f23184fb6184614403 (patch) | |
| tree | 653558a4d808b89f20fd0fcacc6c239603ef84ee /tools/perf/scripts/python | |
| parent | 3f024039e08598521a2c4c3eaedf8de2119797f4 (diff) | |
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 <[email protected]>
Acked-by: Jarkko Nikula <[email protected]>
Acked-by: Mark Brown <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions