Skip to content

Commit

Permalink
ALSA: maestro3: Clear interrupts before enabling them
Browse files Browse the repository at this point in the history
Avoid spurious interrupts when initializing the device.

Signed-off-by: Ville Syrjälä <syrjala@sci.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Ville Syrjälä authored and Takashi Iwai committed May 8, 2010
1 parent 6895b52 commit 1bde78b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/pci/maestro3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1bde78b

Please sign in to comment.