ASoC: qdsp6: q6afe-dai: use q6afe_dai_prepare() for MI2S
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 29 May 2018 10:18:30 +0000 (11:18 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 29 May 2018 14:34:30 +0000 (15:34 +0100)
commitb916449c5e0129858320e313bbcfff05ae4cde6d
tree471dee382a785c09835e7348844350b6cc66c1be
parentdea1ffbeea60f57d123647c301ad3f0fe77392ee
ASoC: qdsp6: q6afe-dai: use q6afe_dai_prepare() for MI2S

Use common q6afe_dai_prepare() for MI2S dais, this will remove
some code duplication. Also make the if statement to switch to
make the code look neater.

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