ASoC: q6asm-dai: prepare set params to accept profile change
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 27 Jul 2020 09:38:04 +0000 (10:38 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 17:29:37 +0000 (18:29 +0100)
commit5b39363e54ccca8fee700e5cc6acf42a80ff1de3
tree59a6a1182840189ce8b839b3b4494558f1d9c6d2
parent135bd5ea190f3e31d2289da98a53d28e1be5b6bf
ASoC: q6asm-dai: prepare set params to accept profile change

rearrange code so that it will be easy to change the codec
profile at runtime. This means moving exiting set_params
to an internal wrapper which can be called when codec
profile changes.

This is also preparing the code for easy to use in gapless cases.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20200727093806.17089-9-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6asm-dai.c