[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cs4280.c change



Art sent me this patch a while ago.   I believe it was sent to him from
Chuck Cranor, but I can't find the original message.   It looks correct
and works on my T20.   Audio works after suspend/resume.

Commit?

Index: cs4280.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/cs4280.c,v
retrieving revision 1.7
diff -u -p -r1.7 cs4280.c
--- cs4280.c	2001/03/14 12:15:11	1.7
+++ cs4280.c	2001/05/02 17:05:01
@@ -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]);
 		}
 	}
 }