From fcf509a309739f81379da3e12a817b78746521b8 Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 24 Jun 2002 15:28:47 +0000 Subject: Enable mixer interrupts after the mixer is initialized, otherwise we might get interrupts and are unable to handle them properly, which results in a page fault. PR: kern/39549 Submitted by: Gil Kloepfer --- sys/dev/sound/pci/maestro3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/sound/pci/maestro3.c b/sys/dev/sound/pci/maestro3.c index 49486cb..b38b334 100644 --- a/sys/dev/sound/pci/maestro3.c +++ b/sys/dev/sound/pci/maestro3.c @@ -1172,6 +1172,8 @@ m3_pci_attach(device_t dev) goto bad; } + m3_enable_ints(sc); + if (pcm_register(dev, sc, M3_PCHANS, M3_RCHANS)) { device_printf(dev, "pcm_register error\n"); goto bad; @@ -1321,8 +1323,6 @@ m3_pci_resume(device_t dev) /* [m3_assp_continue] */ m3_wr_1(sc, DSP_PORT_CONTROL_REG_B, reset_state | REGB_ENABLE_RESET); - m3_enable_ints(sc); - m3_amp_enable(sc); if (mixer_reinit(dev) == -1) { -- cgit v1.1