]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: davinci-mcasp: Configure the AFIFO and DMA burst size at the same place
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 1 Apr 2014 12:55:10 +0000 (15:55 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:24:11 +0000 (17:24 +0100)
commit5f04c603a52d4951e6f6b2f059049e7c5ee93db7
treef5baa7f51fd9836f01827424e1032725f327004a
parent0bf0e8aeceaf4b12524559fce9c6b91a90b63381
ASoC: davinci-mcasp: Configure the AFIFO and DMA burst size at the same place

Move the dma_params->fifo_level and dma_data->maxburst configuration to the
mcasp_common_hw_param() function where we configure the AFIFO registers.
It makes the code regarding to AFIFO and DMA configuration more easy to
follow since it is now clear how the AFIFO and how the DMA is going to be
configured.
Previously this has been done in two functions using a bit different
calculation form - which ended up with the same result in both case at the
end, but it was confusing.

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