From 735f5e985e5e49b1e2c21c6c6757ebdd051ac8ef Mon Sep 17 00:00:00 2001 From: "Todd T. Fries" Date: Fri, 7 Nov 2008 19:53:21 +0000 Subject: different fix for pr5883 than proposed by the submitter, found when glancing at apple code go ahead drahn@ --- sys/arch/macppc/dev/i2s.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/macppc/dev/i2s.c b/sys/arch/macppc/dev/i2s.c index 949426e658e..0e3989d0ab8 100644 --- a/sys/arch/macppc/dev/i2s.c +++ b/sys/arch/macppc/dev/i2s.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i2s.c,v 1.16 2008/11/05 21:38:03 jakemsr Exp $ */ +/* $OpenBSD: i2s.c,v 1.17 2008/11/07 19:53:20 todd Exp $ */ /* $NetBSD: i2s.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */ /*- @@ -947,10 +947,10 @@ i2s_set_rate(sc, rate) keylargo_fcr_disable(I2SClockOffset, I2S0CLKEN); /* Wait until clock is stopped */ - for (timo = 1000; timo > 0; timo--) { + for (timo = 50; timo > 0; timo--) { if (in32rb(sc->sc_reg + I2S_INT) & I2S_INT_CLKSTOPPEND) goto done; - delay(1); + delay(10); } printf("i2s_set_rate: timeout\n"); -- cgit v1.2.3