From ce18f6fd1f03b8232f4662d12e93fc9f75c94b2d Mon Sep 17 00:00:00 2001 From: liaohj Date: Thu, 12 Jul 2018 19:14:34 +0800 Subject: [PATCH] Ocean NA:audio: resolve Handset no sound. - voice call handset mode, no capture ,cannot start dsp. sync with FAE ,move start dsp to playback. Change-Id: I2abb563609f00e2ebe92ee3401cdc47cf05ca11b Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1208856 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- sound/soc/codecs/tfa98xx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/tfa98xx.c b/sound/soc/codecs/tfa98xx.c index 5ce4e9559081..0b955c5c0d94 100644 --- a/sound/soc/codecs/tfa98xx.c +++ b/sound/soc/codecs/tfa98xx.c @@ -2871,13 +2871,13 @@ static int tfa98xx_mute(struct snd_soc_dai *dai, int mute, int stream) tfa98xx->pstream = 1; tfa98xx_adsp_send_calib_values(tfa98xx); - } else { + + /* Start DSP */ + if ((tfa98xx->flags & TFA98XX_FLAG_CHIP_SELECTED) && + (tfa98xx->dsp_init != TFA98XX_DSP_INIT_PENDING)) + queue_delayed_work(tfa98xx->tfa98xx_wq, &tfa98xx->init_work, 0); + } else tfa98xx->cstream = 1; - /* Start DSP */ - if ((tfa98xx->flags & TFA98XX_FLAG_CHIP_SELECTED) && - (tfa98xx->dsp_init != TFA98XX_DSP_INIT_PENDING)) - queue_delayed_work(tfa98xx->tfa98xx_wq, &tfa98xx->init_work, 0); - } #else tfa98xx->pstream = 1; else