From aa7f58c6357ea2f9ec5e9244a855d1c62603416b Mon Sep 17 00:00:00 2001 From: liaohj Date: Wed, 7 Nov 2018 10:22:39 +0800 Subject: [PATCH] modules:taf987x:donnot send calib value for receiver. - for receiver ,bypass smart pa, donnot send calib value to adsp , Change-Id: Iffce317be46c65921ab2d158e06f314637e9be9f Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1265703 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- sound/soc/codecs/tfa98xx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/tfa98xx.c b/sound/soc/codecs/tfa98xx.c index bfe3df94ec50..0e2bf1048e23 100644 --- a/sound/soc/codecs/tfa98xx.c +++ b/sound/soc/codecs/tfa98xx.c @@ -2966,8 +2966,11 @@ static int tfa98xx_mute(struct snd_soc_dai *dai, int mute, int stream) { tfa98xx->pstream = 1; - tfa98xx_adsp_send_calib_values(tfa98xx); - + if(0 == tfa98xx->profile) { + tfa98xx_adsp_send_calib_values(tfa98xx); + } else { + pr_debug("current profile:%d\n",tfa98xx->profile); + } /* Start DSP */ if ((tfa98xx->flags & TFA98XX_FLAG_CHIP_SELECTED) && (tfa98xx->dsp_init != TFA98XX_DSP_INIT_PENDING))