ASoC: msm: Register AFE APR during prepare
ALSA trigger function must be atomic. Therefore, removing the AFE APR
registering function to prepare since apr_register uses mutex
CRs-Fixed: 298122
Signed-off-by: Jay Wang <jaywang@codeaurora.org>
diff --git a/sound/soc/msm/msm-dai-q6.c b/sound/soc/msm/msm-dai-q6.c
index 7dca4d4..a0a4a5b 100644
--- a/sound/soc/msm/msm-dai-q6.c
+++ b/sound/soc/msm/msm-dai-q6.c
@@ -242,6 +242,11 @@
dai_data->channels, DEFAULT_COPP_TOPOLOGY);
if (IS_ERR_VALUE(rc))
dev_err(dai->dev, "fail to open ADM\n");
+ else {
+ rc = afe_q6_interface_prepare();
+ if (IS_ERR_VALUE(rc))
+ dev_err(dai->dev, "fail to open AFE APR\n");
+ }
}
return rc;