ASoC: WCD9310: Set the sleep time to 16ms after lineout PA enable.
-The wcd9310 hardware specification requires 64ms of sleep after
the lineout PA's are enabled. Since there are four PA's (16 * 4)
will add to 64ms of sleep time.
-This reduces the cold playback latency.
Change-Id: I5be1248baf6b937ddb854c0b44e32a8ffc497982
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
diff --git a/sound/soc/codecs/wcd9310.c b/sound/soc/codecs/wcd9310.c
index 0ecb265..4be4265 100644
--- a/sound/soc/codecs/wcd9310.c
+++ b/sound/soc/codecs/wcd9310.c
@@ -1035,9 +1035,9 @@
snd_soc_update_bits(codec, lineout_gain_reg, 0x40, 0x40);
break;
case SND_SOC_DAPM_POST_PMU:
- pr_debug("%s: sleeping 40 ms after %s PA turn on\n",
+ pr_debug("%s: sleeping 16 ms after %s PA turn on\n",
__func__, w->name);
- usleep_range(40000, 40000);
+ usleep_range(16000, 16000);
break;
case SND_SOC_DAPM_POST_PMD:
snd_soc_update_bits(codec, lineout_gain_reg, 0x40, 0x00);