1. 23 Oct, 2013 2 commits
  2. 20 Oct, 2013 2 commits
  3. 19 Oct, 2013 2 commits
    • Lars-Peter Clausen's avatar
      ASoC: dmaengine-pcm: Provide default config · fa654e08
      Lars-Peter Clausen authored
      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: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      fa654e08
    • Lars-Peter Clausen's avatar
      ASoC: dmaengine-pcm: Add support for querying DMA capabilities · c0de42bf
      Lars-Peter Clausen authored
      Currently each platform making use the the generic dmaengine PCM driver still
      needs to provide a custom snd_pcm_hardware struct which specifies the
      capabilities of the DMA controller, e.g. the maximum period size that can be
      supported. This patch adds code which uses the newly introduced
      dma_get_slave_caps() API to query this information from the dmaengine driver.
      The new code path will only be taken if the 'pcm_hardware' field of the
      snd_dmaengine_pcm_config struct is NULL.
      
      The patch also introduces a new 'fifo_size' field to the
      snd_dmaengine_dai_dma_data struct which is used to initialize the
      snd_pcm_hardware 'fifo_size' field and needs to be set by the DAI driver.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      c0de42bf
  4. 13 Oct, 2013 17 commits
  5. 12 Oct, 2013 10 commits
  6. 11 Oct, 2013 7 commits