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)
commit0b0722e191757ca6851382d78c15277ca9c5c211
tree33d30a0e25daa88df155fffdd64734d254d02e0d
parentc21c834adb5bc81e7081aa93ac50619c6d060506
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