Hi,
Apart from the first patch which is a rebased resend of a previous patch this series will change the way McASP driver will configure the AFIFO and thus the DMA burst.
The AFIFO and DMA configuration will be in one function so it is going to be easier to see the code and debug if needed.
The main change is that instead of static tx/rx numevt (which is provided via DT or pdata) we are going to switch to dynamic configuration. With this setup we do not need to place any constraint on the period or buffer size since the AFIFO numevt and the corresponding DMA burst size will be picked according to period size, active serializers and the preferred numevt level. The only case when the code can fail if the period size in words can not be divided evenly by the active serializers, which is unlikely to happen.
Regards, Peter --- Peter Ujfalusi (6): ASoC: davinci-mcasp: Assign the dma_data earlier in dai_probe callback ASoC: davinci-mcasp: Fix debug typo in davinci_mcasp_hw_params() ASoC: davinci-mcasp: Simplify and clean up the AFIFO configuration code ASoC: davinci-mcasp: Configure the AFIFO and DMA burst size at the same place ASoC: davinic-mcasp: Adopt the AFIFO/DMA configuration to the stream (dynamic depth) ASoC: davinci-mcasp: Fine tune and correct the DMA burst configuration
sound/soc/davinci/davinci-mcasp.c | 145 +++++++++++++++++++++++--------------- sound/soc/davinci/davinci-mcasp.h | 1 + 2 files changed, 89 insertions(+), 57 deletions(-)