diff mbox

[v2,5/28] drm/i2c: tda998x: don't freeze the system at audio startup time

Message ID 20140109115840.67c9e2d4@armhf (mailing list archive)
State New, archived
Headers show

Commit Message

Jean-Francois Moine Jan. 9, 2014, 10:58 a.m. UTC
This patch prevents the system to be freezed at audio startup time,
replacing mdelay by msleep.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
---
 drivers/gpu/drm/i2c/tda998x_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Russell King - ARM Linux Jan. 11, 2014, 5:08 p.m. UTC | #1
On Thu, Jan 09, 2014 at 11:58:40AM +0100, Jean-Francois Moine wrote:
> This patch prevents the system to be freezed at audio startup time,
> replacing mdelay by msleep.
> 
> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>

Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
diff mbox

Patch

diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index 63d5be2..0435752 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -670,7 +670,7 @@  tda998x_configure_audio(struct tda998x_priv *priv,
 	reg_write_range(priv, REG_CH_STAT_B(0), buf, 4);
 
 	tda998x_audio_mute(priv, true);
-	mdelay(20);
+	msleep(20);
 	tda998x_audio_mute(priv, false);
 
 	/* Write the audio information packet */