Skip to content

Commit

Permalink
[ALSA] es1938 - Fix resume
Browse files Browse the repository at this point in the history
Modules: ES1938 driver

This patch fixes the suspend/resume issue I'm having with ESS-Solo1
soundcard. Without this patch I might get after resume message
that kernel is disabling the IRQ5 (soundcard). If there was something
playing it wont continue after resume without this patch.

Signed-off-by: Rudolf Marek <r.marek@sh.cvut.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Rudolf Marek authored and Jaroslav Kysela committed Nov 4, 2005
1 parent 94651a5 commit c913f69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/pci/es1938.c
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,8 @@ static int es1938_suspend(snd_card_t *card, pm_message_t state)
*d = snd_es1938_reg_read(chip, *s);

outb(0x00, SLIO_REG(chip, IRQCONTROL)); /* disable irqs */

if (chip->irq >= 0)
free_irq(chip->irq, (void *)chip);
pci_disable_device(chip->pci);
return 0;
}
Expand All @@ -1401,6 +1402,7 @@ static int es1938_resume(snd_card_t *card)
unsigned char *s, *d;

pci_enable_device(chip->pci);
request_irq(chip->pci->irq, snd_es1938_interrupt, SA_INTERRUPT|SA_SHIRQ, "ES1938", (void *)chip);
snd_es1938_chip_init(chip);

/* restore mixer-related registers */
Expand Down

0 comments on commit c913f69

Please sign in to comment.