ASoC: WCD9310: Add 5ms delay during slimbus port shutdown
It is found that audio playback on wcd9304 CODEC is very
unstable after moving to shared data channel architecture.
Audio playback is muted due to continous overflow error from
SLIMBUS RX port. Adding 5ms delay between port disconnect and
deactivation of data channel to stablize audio playback.
Change-Id: Iba8fbb7b35ba183a560b25cee89f670cbef95302
Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>
diff --git a/sound/soc/codecs/wcd9310.c b/sound/soc/codecs/wcd9310.c
index 2c43792..74e2dc0 100644
--- a/sound/soc/codecs/wcd9310.c
+++ b/sound/soc/codecs/wcd9310.c
@@ -3591,6 +3591,7 @@
ret = wcd9xxx_close_slim_sch_rx(tabla,
tabla_p->dai[j].ch_num,
tabla_p->dai[j].ch_tot);
+ usleep_range(5000, 5000);
tabla_p->dai[j].rate = 0;
memset(tabla_p->dai[j].ch_num, 0, (sizeof(u32)*
tabla_p->dai[j].ch_tot));