From: Ville Syrjälä Date: Thu, 6 May 2010 21:12:13 +0000 (+0300) Subject: ALSA: maestro3: Clear interrupts before enabling them X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1bde78bc25a8e244006f63adb851bfb34407d48c;p=linux-beck.git ALSA: maestro3: Clear interrupts before enabling them Avoid spurious interrupts when initializing the device. Signed-off-by: Ville Syrjälä Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 217a4dcb259e..3c40d726b46e 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c @@ -2443,6 +2443,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);