aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/s3c24xx/s3c24xx-i2s.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/s3c24xx/s3c24xx-i2s.c b/sound/soc/s3c24xx/s3c24xx-i2s.c
index ddf87246c77b..4c52f7946d9e 100644
--- a/sound/soc/s3c24xx/s3c24xx-i2s.c
+++ b/sound/soc/s3c24xx/s3c24xx-i2s.c
@@ -175,7 +175,7 @@ static void s3c24xx_snd_rxctrl(int on)
175static int s3c24xx_snd_lrsync(void) 175static int s3c24xx_snd_lrsync(void)
176{ 176{
177 u32 iiscon; 177 u32 iiscon;
178 unsigned long timeout = jiffies + msecs_to_jiffies(5); 178 int timeout = 50; /* 5ms */
179 179
180 DBG("Entered %s\n", __func__); 180 DBG("Entered %s\n", __func__);
181 181
@@ -184,8 +184,9 @@ static int s3c24xx_snd_lrsync(void)
184 if (iiscon & S3C2410_IISCON_LRINDEX) 184 if (iiscon & S3C2410_IISCON_LRINDEX)
185 break; 185 break;
186 186
187 if (time_after(jiffies, timeout)) 187 if (!timeout--)
188 return -ETIMEDOUT; 188 return -ETIMEDOUT;
189 udelay(100);
189 } 190 }
190 191
191 return 0; 192 return 0;