ASoC: WCD9310: Reduce the sleep time after lineout PA enable

- Speaker warm-up time is too long(over 100 ms) due to big delay
  (16*2ms for mono and 16*4ms for stereo)after lineout PA enabled.
- Measured by "adb shell dumpsys media.audio_flinger |grep measuredWarmup",
  speaker warm-up time is reduced to ~70-80ms

Signed-off-by: SathishKumar Mani <smani@codeaurora.org>
bug-id: 7022794
This commit is contained in:
SathishKumar Mani 2012-09-11 14:25:46 -07:00 committed by Iliyan Malchev
parent eb6bdd0ce2
commit f0adb8bf52

View file

@ -2042,9 +2042,9 @@ static int tabla_codec_enable_lineout(struct snd_soc_dapm_widget *w,
snd_soc_update_bits(codec, lineout_gain_reg, 0x40, 0x40);
break;
case SND_SOC_DAPM_POST_PMU:
pr_debug("%s: sleeping 16 ms after %s PA turn on\n",
pr_debug("%s: sleeping 16 us after %s PA turn on\n",
__func__, w->name);
usleep_range(16000, 16000);
usleep_range(16, 16);
break;
case SND_SOC_DAPM_POST_PMD:
snd_soc_update_bits(codec, lineout_gain_reg, 0x40, 0x00);