1. 23 Oct, 2013 1 commit
    • Mark Brown's avatar
      ASoC: ep93xx: Open code dma channel request · d7711dc5
      Mark Brown authored
      Currently the ep93xx DMA code is one of the few users relying on the fact
      that the compat code uses the dma_data as the filter data for non-DT
      channel requests. Since the rest of the core expects this to be a struct
      snd_dmaengine_dai_data this isn't terribly helpful this will be changed to
      use the already existing filter data so avoid breaking ep93xx by open
      coding the current behaviour.
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      d7711dc5
  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 8 commits