From 5ffa65f9ab4922c32d63767da2c00ccc0cec7f8c Mon Sep 17 00:00:00 2001 From: Scott Long Date: Wed, 4 Sep 2002 08:13:36 +0000 Subject: [PATCH] Sigh. The fix to the suspend code wasn't complete, since the resume code was broken in the same way. Submitted by: co9@xs4all.nl MFC after: 3 days --- sys/dev/sound/pci/maestro3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/sound/pci/maestro3.c b/sys/dev/sound/pci/maestro3.c index ab4e1cb17dcc..bee274aaaa1f 100644 --- a/sys/dev/sound/pci/maestro3.c +++ b/sys/dev/sound/pci/maestro3.c @@ -1311,9 +1311,9 @@ m3_pci_resume(device_t dev) /* Restore the ASSP state */ for (i = REV_B_CODE_MEMORY_BEGIN; i <= REV_B_CODE_MEMORY_END; i++) - m3_wr_assp_code(sc, i, sc->savemem[++index]); + m3_wr_assp_code(sc, i, sc->savemem[index++]); for (i = REV_B_DATA_MEMORY_BEGIN; i <= REV_B_DATA_MEMORY_END; i++) - m3_wr_assp_data(sc, i, sc->savemem[++index]); + m3_wr_assp_data(sc, i, sc->savemem[index++]); /* Restart the DMA engine */ m3_wr_assp_data(sc, KDATA_DMA_ACTIVE, 0);