From 82597ffeeccbb1facc9bb948be91d309fa01e318 Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Fri, 15 Dec 2017 16:17:42 -0800 Subject: [PATCH] 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 --- asoc/codecs/wcd934x/wcd934x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asoc/codecs/wcd934x/wcd934x.c b/asoc/codecs/wcd934x/wcd934x.c index 8e3981c9fd..e7cec2b4d3 100644 --- a/asoc/codecs/wcd934x/wcd934x.c +++ b/asoc/codecs/wcd934x/wcd934x.c @@ -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");