diff options
author | Mark Brown <broonie@kernel.org> | 2019-05-30 16:47:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-30 16:47:43 +0100 |
commit | 79b3b7c4a396b9fa1963ac70e853998633e8151d (patch) | |
tree | c1e507b4a6fff773ec81e90e1be11f1b35e773b6 /sound/soc/sunxi | |
parent | e13ef82a9ab83dd21d8dd43ef9f5e8bf5b101106 (diff) | |
parent | 1f2675f6655838aaf910f911fd0abc821e3ff3df (diff) | |
download | linux-79b3b7c4a396b9fa1963ac70e853998633e8151d.tar.gz linux-79b3b7c4a396b9fa1963ac70e853998633e8151d.tar.bz2 linux-79b3b7c4a396b9fa1963ac70e853998633e8151d.zip |
Merge branch 'asoc-5.2' into asoc-5.3
Diffstat (limited to 'sound/soc/sunxi')
-rw-r--r-- | sound/soc/sunxi/sun4i-codec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 15d08e343b47..28d2f7713f8d 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -1329,6 +1329,15 @@ static int sun4i_codec_spk_event(struct snd_soc_dapm_widget *w, gpiod_set_value_cansleep(scodec->gpio_pa, !!SND_SOC_DAPM_EVENT_ON(event)); + if (SND_SOC_DAPM_EVENT_ON(event)) { + /* + * Need a delay to wait for DAC to push the data. 700ms seems + * to be the best compromise not to feel this delay while + * playing a sound. + */ + msleep(700); + } + return 0; } |