diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-10-20 20:35:13 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-10-20 20:35:13 +0000 |
commit | 17bc93e62b91bebb15bd643b86245d272a6e8377 (patch) | |
tree | 4f38c3602901188294472a4bad438aa593ae0e44 /sys/arch/macppc/dev/snapper.c | |
parent | 4b692b818c3922b51c0f83d6a769b147c37fb988 (diff) |
revert to revision 1.16 for now, 1.17 and 1.18 broke audio
on a lot of macppc machines that use this driver;
ok drahn@
Diffstat (limited to 'sys/arch/macppc/dev/snapper.c')
-rw-r--r-- | sys/arch/macppc/dev/snapper.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sys/arch/macppc/dev/snapper.c b/sys/arch/macppc/dev/snapper.c index a59c88cc803..a4043634592 100644 --- a/sys/arch/macppc/dev/snapper.c +++ b/sys/arch/macppc/dev/snapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snapper.c,v 1.18 2005/10/11 20:43:53 drahn Exp $ */ +/* $OpenBSD: snapper.c,v 1.19 2005/10/20 20:35:12 joris Exp $ */ /* $NetBSD: snapper.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */ /*- @@ -1098,9 +1098,6 @@ snapper_set_volume(sc, left, right) // SCLK = MCLK / sdiv // rate = SCLK / 64 ( = LRCLK = fs) -void keylargo_fcr_enable(int offset, u_int32_t bits); -void keylargo_fcr_disable(int offset, u_int32_t bits); - int snapper_set_rate(sc, rate) struct snapper_softc *sc; @@ -1180,17 +1177,9 @@ snapper_set_rate(sc, rate) in32rb(sc->sc_reg + I2S_WORDSIZE), 0x02000200)); out32rb(sc->sc_reg + I2S_WORDSIZE, 0x02000200); -#define I2SClockOffset 0x3C -#define I2SClockEnable (0x00000001<<12) - - if (sc->sc_rate != rate) { - keylargo_fcr_disable(I2SClockOffset, I2SClockEnable); - delay(10000); /* XXX - should wait for clock to stop */ - DPRINTF(("I2SSetSerialFormatReg 0x%x -> 0x%x\n", - in32rb(sc->sc_reg + I2S_FORMAT), reg)); - out32rb(sc->sc_reg + I2S_FORMAT, reg); - keylargo_fcr_enable(I2SClockOffset, I2SClockEnable); - } + DPRINTF(("I2SSetSerialFormatReg 0x%x -> 0x%x\n", + in32rb(sc->sc_reg + I2S_FORMAT), reg)); + out32rb(sc->sc_reg + I2S_FORMAT, reg); sc->sc_rate = rate; |