1. 05 7月, 2014 1 次提交
  2. 16 1月, 2014 1 次提交
  3. 15 1月, 2014 2 次提交
    • L
      ASoC: generic-dmaengine-pcm: Check DMA residue granularity · 478028e0
      Lars-Peter Clausen 提交于
      The dmaengine framework now exposes the granularity with which it is able to
      report the transfer residue for a certain DMA channel. Check the granularity in
      the generic dmaengine PCM driver and
      	a) Set the SNDRV_PCM_INFO_BATCH if the granularity is per period or worse.
      	b) Fallback to the (race condition prone) period counting if the driver does
      	not support any residue reporting.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      478028e0
    • L
      ASoC: generic-dmaengine-pcm: Check NO_RESIDUE flag at runtime · 93b943ed
      Lars-Peter Clausen 提交于
      Currently we have two different snd_soc_platform_driver structs in the generic
      dmaengine PCM driver. One for dmaengine drivers that support residue reporting
      and one for those which do not. When registering the PCM component we check
      whether the NO_RESIDUE flag is set or not and use the corresponding
      snd_soc_platform_driver. This patch modifies the driver to only have one
      snd_soc_platform_driver struct where the pointer() callback checks the
      NO_RESIDUE flag at runtime. This allows us to set the NO_RESIDUE flag after the
      PCM component has been registered. This becomes necessary when querying whether
      the dmaengine driver supports residue reporting from the dmaengine driver itself
      since the DMA channel might only be requested after the PCM component has been
      registered.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      93b943ed
  4. 17 12月, 2013 1 次提交
  5. 12 12月, 2013 1 次提交
  6. 11 12月, 2013 1 次提交
  7. 10 12月, 2013 3 次提交
  8. 02 12月, 2013 1 次提交
  9. 08 11月, 2013 1 次提交
  10. 07 11月, 2013 1 次提交
  11. 26 10月, 2013 1 次提交
  12. 24 10月, 2013 2 次提交
  13. 20 10月, 2013 2 次提交
    • L
      ASoC: dmaengine-pcm: Provide default config · fa654e08
      Lars-Peter Clausen 提交于
      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: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      fa654e08
    • L
      ASoC: dmaengine-pcm: Add support for querying DMA capabilities · c0de42bf
      Lars-Peter Clausen 提交于
      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: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      c0de42bf
  14. 23 4月, 2013 2 次提交
  15. 22 4月, 2013 1 次提交
  16. 17 4月, 2013 3 次提交