Skip to content

Commit

Permalink
ALSA: ice1724 - Fix IRQ register initialization
Browse files Browse the repository at this point in the history
The IRQMASK register has to be set to zero expclitily at the initialization
otherwise you'll get no interrupts properly at later operations.

Also, removed the old commented out codes.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Nov 1, 2008
1 parent 9cbbb3a commit 4074ea2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sound/pci/ice1712/ice1724.c
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,6 @@ static int __devinit snd_vt1724_create(struct snd_card *card,
{
struct snd_ice1712 *ice;
int err;
/* unsigned char mask; */
static struct snd_device_ops ops = {
.dev_free = snd_vt1724_dev_free,
};
Expand Down Expand Up @@ -2414,11 +2413,9 @@ static int __devinit snd_vt1724_create(struct snd_card *card,
return -EIO;
}

/* unmask used interrupts */
#if 0 /* these are enabled/disabled dynamically */
mask = VT1724_IRQ_MPU_RX | VT1724_IRQ_MPU_TX;
outb(mask, ICEREG1724(ice, IRQMASK));
#endif
/* clear interrupts -- otherwise you'll get irq problems later */
outb(0, ICEREG1724(ice, IRQMASK));

/* don't handle FIFO overrun/underruns (just yet),
* since they cause machine lockups
*/
Expand Down

0 comments on commit 4074ea2

Please sign in to comment.