asoc: codecs: Fix device switch pop issue

With AANC enabled, and when the device switches
from speaker path to handset path there is a audible
pop. Add more delay to the aanc enable work function
to resolve the pop issue.

CRs-Fixed: 2137607
Change-Id: Icaf381179b0a81440b21ab4280cb6fc95e6fe6ba
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:
Karthikeyan Mani 2017-12-15 16:17:42 -08:00 committed by Gerrit - the friendly Code Review server
parent 05cae9910f
commit 82597ffeec

View File

@ -526,7 +526,7 @@ struct tx_mute_work {
struct delayed_work dwork;
};
#define WCD934X_SPK_ANC_EN_DELAY_MS 350
#define WCD934X_SPK_ANC_EN_DELAY_MS 550
static int spk_anc_en_delay = WCD934X_SPK_ANC_EN_DELAY_MS;
module_param(spk_anc_en_delay, int, 0664);
MODULE_PARM_DESC(spk_anc_en_delay, "delay to enable anc in speaker path");