]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: compress: make BE and FE order inline with dpcm
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 3 Aug 2018 12:30:03 +0000 (13:30 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 7 Aug 2018 13:42:29 +0000 (14:42 +0100)
commit4d7723df01f67363e728d902fdf1314efdd8effa
tree33d30a0e25daa88df155fffdd64734d254d02e0d
parent050d2f0bad4086f07f48067491938a488a6989d1
ASoC: compress: make BE and FE order inline with dpcm

For some reason order of startup/hw_params/prepare are reversed
in dynamic compress usecase when compared to dpcm usecase. This is
a issue with platforms like QCOM where it expects the BE to be
initialized before FE.

Interestingly the compress trigger callback order is inline with dpcm.

Am not 100% sure why the compress audio case has been reversed.
This patch is making the order inline with dpcm.

If the reverse ordering is just co-incendental then this change
makes sense and will avoid inventing some new mechanism to cope
with ordering.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c