]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dmaengine-pcm: Provide default config
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 8 Oct 2013 13:08:00 +0000 (15:08 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 19 Oct 2013 20:26:06 +0000 (21:26 +0100)
commit05a22446b008286ed0c5057acfb50a97e19122ea
tree8ad9f7ff04029d67b46fe76478541d8512109a94
parent84794ba609f0e3c1584b802f0e8c05b9c4d0a4bc
ASoC: dmaengine-pcm: Provide default config

This patch adds some default settings for the generic dmaengine PCM driver for
the case that no config has been supplied. The following defaults are used:
* Use snd_dmaengine_pcm_prepare_slave_config for preparing the DMA slave
  config.
* 512kB for the prealloc buffer size. This value has been chosen based on
  'feels about right' and is not backed up by any scientific facts. We
  may need to come up with something smarter in the future but it should
  work fine for now.

With this infrastructure in place we can finally write DAI drivers which are
independent of the DMA controller they are connected to. This is e.g. useful if
the DAI IP core is reused across different SoCs, but the SoCs uses different DMA
controllers.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-generic-dmaengine-pcm.c