Commit 1bde78bc25a8e244006f63adb851bfb34407d48c

Authored by Ville Syrjälä
Committed by Takashi Iwai
1 parent 6895b5262e

ALSA: maestro3: Clear interrupts before enabling them

Avoid spurious interrupts when initializing the device.

Signed-off-by: Ville Syrjälä <syrjala@sci.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

sound/pci/maestro3.c
... ... @@ -2443,6 +2443,7 @@
2443 2443 val = ASSP_INT_ENABLE /*| MPU401_INT_ENABLE*/;
2444 2444 if (chip->hv_config & HV_CTRL_ENABLE)
2445 2445 val |= HV_INT_ENABLE;
  2446 + outb(val, chip->iobase + HOST_INT_STATUS);
2446 2447 outw(val, io + HOST_INT_CTRL);
2447 2448 outb(inb(io + ASSP_CONTROL_C) | ASSP_HOST_INT_ENABLE,
2448 2449 io + ASSP_CONTROL_C);