[alsa-devel] [PATCH 0/6] ASoC: davinci-mcasp: Dynamic AFIFO and DMA configuration

Peter Ujfalusi peter.ujfalusi at ti.com
Tue Apr 1 14:55:06 CEST 2014


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.

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
  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(-)


More information about the Alsa-devel mailing list