]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: davinic-mcasp: Adopt the AFIFO/DMA configuration to the stream (dynamic depth)
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 1 Apr 2014 12:55:11 +0000 (15:55 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:24:11 +0000 (17:24 +0100)
commitdd093a0f1962fb71e8852411f03fec7290027a90
tree7f19f76689ca699d663a2eee1913d1d2ea921ef4
parent5f04c603a52d4951e6f6b2f059049e7c5ee93db7
ASoC: davinic-mcasp: Adopt the AFIFO/DMA configuration to the stream (dynamic depth)

Configure the AFIFO numevt parameter based on the requested tx/rx_numevt,
active serializers and period size in words.
In this way McASP can adopt it's (and the DMA) configuration runtime and
can pick the most optimal setup which satisfy the parameters.
This way we do not need to place any constraint on the stream itself,
allowing application greater freedom on how they want to set up ALSA.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/davinci/davinci-mcasp.c