diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2001-05-02 21:13:38 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2001-05-02 21:13:38 +0000 |
commit | 6c1eae9511a95fbf32956063114a575918580576 (patch) | |
tree | d235e2a4ab5a08894e7fa12bf1af4095a5de1174 | |
parent | a92dc54a574ca9b5c5de0789c68f599064656fa7 (diff) |
register save/restore fix from art via Chuck Cranor
OK deraadt@ and art@
-rw-r--r-- | sys/dev/pci/cs4280.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/cs4280.c b/sys/dev/pci/cs4280.c index 86476b4311a..6413b8ca64a 100644 --- a/sys/dev/pci/cs4280.c +++ b/sys/dev/pci/cs4280.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4280.c,v 1.7 2001/03/14 12:15:11 mickey Exp $ */ +/* $OpenBSD: cs4280.c,v 1.8 2001/05/02 21:13:37 marc Exp $ */ /* $NetBSD: cs4280.c,v 1.5 2000/06/26 04:56:23 simonb Exp $ */ /* @@ -1802,7 +1802,7 @@ cs4280_power(why, v) for(i = 1; i <= CS4280_SAVE_REG_MAX; i++) { if(i == 0x04) /* AC97_REG_MASTER_TONE */ continue; - cs4280_read_codec(sc, 2*i, &sc->ac97_reg[i>>1]); + cs4280_read_codec(sc, 2*i, &sc->ac97_reg[i]); } /* should I powerdown here ? */ cs4280_write_codec(sc, AC97_REG_POWER, CS4280_POWER_DOWN_ALL); @@ -1820,7 +1820,7 @@ cs4280_power(why, v) for(i = 1; i <= CS4280_SAVE_REG_MAX; i++) { if(i == 0x04) /* AC97_REG_MASTER_TONE */ continue; - cs4280_write_codec(sc, 2*i, sc->ac97_reg[i>>1]); + cs4280_write_codec(sc, 2*i, sc->ac97_reg[i]); } } } |