ASoC: msm: Fix a bug in the audio FE check
It is found that recording from MI2S audio HW path
is broken. The reason is that the check to validate
the front-end ID is compared to wrong ID.
Update the comparson so that the correct front-end
ID is used.
Change-Id: Ie7ede2cac755a6ec85b2e6f2143d5b2252a721b4
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
diff --git a/sound/soc/msm/msm-pcm-routing.c b/sound/soc/msm/msm-pcm-routing.c
index 14da1ba..4f19160 100644
--- a/sound/soc/msm/msm-pcm-routing.c
+++ b/sound/soc/msm/msm-pcm-routing.c
@@ -259,7 +259,7 @@
{
bool rc = false;
- if (be_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
+ if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
/* recheck FE ID in the mixer control defined in this file */
pr_err("%s: bad MM ID\n", __func__);
return rc;