[alsa-devel] [PATCH 6/8] ASoC: tegra: Use common DAI DMA data struct
Stephen Warren
swarren at wwwdotorg.org
Wed Apr 3 19:08:34 CEST 2013
On 04/03/2013 03:06 AM, Lars-Peter Clausen wrote:
> Use the common DAI DMA data struct for tegra, this allows us to use the common
> helper function to configure the DMA slave config based on the DAI DMA data.
Nice. Patches 2, 5, 6,
Reviewed-by: Stephen Warren <swarren at nvidia.com>
Tested-by: Stephen Warren <swarren at nvidia.com>
But one minor question below:
> diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c
> @@ -92,16 +89,9 @@ static int tegra_pcm_hw_params(struct snd_pcm_substream *substream,
> + snd_dmaengine_pcm_set_config_from_dai_data(substream,
> + snd_soc_dai_get_dma_data(rtd->cpu_dai, substream),
> + &slave_config);
Would it make sense to have snd_dmaengine_pcm_set_config_from_dai_data()
call snd_soc_dai_get_dma_data() internally, to avoid all call-sites from
having to do it?
More information about the Alsa-devel
mailing list