mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
eb6bdd0ce2
commit
f0adb8bf52
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue