]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dmaengine: Extend use of chan_names provided in custom DMA config
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 7 Feb 2019 17:00:10 +0000 (18:00 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 12 Feb 2019 16:31:42 +0000 (16:31 +0000)
commit170e7ffd2ec18fad4be4231df8321f3fe04f6378
treec6144e8248120d10a85cc7cfbc80d5cf39db0750
parentef5af1db3cf824c4384985197be7240720526048
ASoC: dmaengine: Extend use of chan_names provided in custom DMA config

There are currently two ways to specify custom DMA channel names:
 - through the SND_DMAENGINE_PCM_FLAG_CUSTOM_CHANNEL_NAME flag and
   snd_dmaengine_dai_dma_data data structure,
 - through chan_names field of struct snd_dmaengine_pcm_config.

In order to replace the DAI DMA data method with the custom DMA config
one on non-DT platforms the dmaengine_pcm_new() function is extended
to also consider channel names specified in the custom DMA config.
If both config->chan_names and dma_data->chan_name are provided
the former will be used.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c