提交 73d5e253 编写于 作者: J Jean-Francois Moine 提交者: Russell King

drm/i2c: tda998x: don't freeze the system at audio startup time

This patch prevents the system to be freezed at audio startup time,
replacing mdelay by msleep.
Tested-by: NRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: NJean-Francois Moine <moinejf@free.fr>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 b728fab7
...@@ -681,7 +681,7 @@ tda998x_configure_audio(struct tda998x_priv *priv, ...@@ -681,7 +681,7 @@ tda998x_configure_audio(struct tda998x_priv *priv,
reg_write_range(priv, REG_CH_STAT_B(0), buf, 4); reg_write_range(priv, REG_CH_STAT_B(0), buf, 4);
tda998x_audio_mute(priv, true); tda998x_audio_mute(priv, true);
mdelay(20); msleep(20);
tda998x_audio_mute(priv, false); tda998x_audio_mute(priv, false);
/* Write the audio information packet */ /* Write the audio information packet */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册