diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2008-11-07 19:53:21 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2008-11-07 19:53:21 +0000 |
commit | 735f5e985e5e49b1e2c21c6c6757ebdd051ac8ef (patch) | |
tree | a518c9ed0f8a54858020a12c64b505a2d368d294 | |
parent | 6b1671de03258164ca93df7e07e2084bf9050975 (diff) |
different fix for pr5883 than proposed by the submitter, found when glancing
at apple code
go ahead drahn@
-rw-r--r-- | sys/arch/macppc/dev/i2s.c | 6 |
1 files 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"); |