Skip to contentSkip to conversation

es1968: Clear interrupts before enabling them

PATCH Applied Ville Syrjala 2 participants 3 messages May 6, 2010 – May 8, 2010 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 es1968: Clear interrupts before enabling them

From: Ville Syrjälä <[email protected]>

Avoid spurious interrupts when initializing the device.

---
 sound/pci/es1968.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/pci/es1968.c +1 -0
index aa973ce..23a58f0 100644
@@ -2401,6 +2401,7 @@ static void snd_es1968_start_irq(struct es1968 *chip)
 	w = ESM_HIRQ_DSIE | ESM_HIRQ_HW_VOLUME;
 	if (chip->rmidi)
 		w |= ESM_HIRQ_MPU401;
+	outb(w, chip->io_port + 0x1A);
 	outw(w, chip->io_port + ESM_PORT_HOST_IRQ);
 }
 
Signature · 6 lines
1.6.4.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#1 lore raw

PATCH 2/2 maestro3: Clear interrupts before enabling them

From: Ville Syrjälä <[email protected]>

Avoid spurious interrupts when initializing the device.

---
 sound/pci/maestro3.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/pci/maestro3.c +1 -0
index adf557a..8f61fbb 100644
@@ -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);
Signature · 6 lines
1.6.4.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Applied
#2 lore raw
In reply to Ville Syrjala

At Fri, 7 May 2010 00:12:12 +0300,

Quoted 6 lines · Ville Syrjala

From: Ville Syrjälä <[email protected]>

Avoid spurious interrupts when initializing the device.

Applied both patches now. Thanks.

Takashi

Quoted 23 lines
---
 sound/pci/es1968.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/pci/es1968.c +1 -0
index aa973ce..23a58f0 100644
@@ -2401,6 +2401,7 @@ static void snd_es1968_start_irq(struct es1968 *chip)
 	w = ESM_HIRQ_DSIE | ESM_HIRQ_HW_VOLUME;
 	if (chip->rmidi)
 		w |= ESM_HIRQ_MPU401;
+	outb(w, chip->io_port + 0x1A);
 	outw(w, chip->io_port + ESM_PORT_HOST_IRQ);
 }
 
Signature · 6 lines
1.6.4.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel