OSDN Git Service

ASoC: pcm_dmaengine: Extract snd_dmaengine_pcm_refine_runtime_hwparams
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 27 Sep 2019 01:46:11 +0000 (09:46 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 Oct 2019 11:18:25 +0000 (12:18 +0100)
commite957204e732bc2916a241dc61dd7dd14e9a98350
tree41d1daf1182778a9d3cc23522c264af3e240996b
parent109539c986cee525e5ff9ae98793f23c2b29e54d
ASoC: pcm_dmaengine: Extract snd_dmaengine_pcm_refine_runtime_hwparams

When set the runtime hardware parameters, we may need to query
the capability of DMA to complete the parameters.

This patch is to Extract this operation from
dmaengine_pcm_set_runtime_hwparams function to a separate function
snd_dmaengine_pcm_refine_runtime_hwparams, that other components
which need this feature can call this function.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/d728f65194e9978cbec4132b522d4fed420d704a.1569493933.git.shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/dmaengine_pcm.h
sound/core/pcm_dmaengine.c
sound/soc/soc-generic-dmaengine-pcm.c