[alsa-devel] [PATCH 2/2] maestro3: Clear interrupts before enabling them

Ville Syrjala syrjala at sci.fi
Thu May 6 23:12:13 CEST 2010


From: Ville Syrjälä <syrjala at sci.fi>

Avoid spurious interrupts when initializing the device.

Signed-off-by: Ville Syrjälä <syrjala at sci.fi>
---
 sound/pci/maestro3.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c
index adf557a..8f61fbb 100644
--- a/sound/pci/maestro3.c
+++ b/sound/pci/maestro3.c
@@ -2429,6 +2429,7 @@ snd_m3_enable_ints(struct snd_m3 *chip)
 	val = ASSP_INT_ENABLE /*| MPU401_INT_ENABLE*/;
 	if (chip->hv_config & HV_CTRL_ENABLE)
 		val |= HV_INT_ENABLE;
+	outb(val, chip->iobase + HOST_INT_STATUS);
 	outw(val, io + HOST_INT_CTRL);
 	outb(inb(io + ASSP_CONTROL_C) | ASSP_HOST_INT_ENABLE,
 	     io + ASSP_CONTROL_C);
-- 
1.6.4.4



More information about the Alsa-devel mailing list