Skip to contentSkip to conversation

1/2: fix intel8x0.c suspend problem.

PATCH New Hu Gang 1 participant 1 message Oct 19, 2002 Sound

lore
Share & tools
lore

Hu Gang

author
#0 lore raw

PATCH 1/1 1/2: fix intel8x0.c suspend problem.

Hello Patrick Mochel, Pavel Machek, Jaroslav Kysela :

When I use the 1/2 patch, the core suspend have works, but when the sound driver loaded the system still hang. This patch can fix it. Please apply.
---------------------------------------------------

sound/pci/intel8x0.c +1 -1
@@ -1909,6 +1909,7 @@
 	snd_card_t *card = chip->card;
 	int i;
 
+	chip->in_suspend = 0;
 	snd_power_lock(card);
 	if (card->power_state == SNDRV_CTL_POWER_D0)
 		goto __skip;
@@ -1919,7 +1920,6 @@
 		if (chip->ac97[i])
 			snd_ac97_resume(chip->ac97[i]);
 
-	chip->in_suspend = 0;
 	snd_power_change_state(card, SNDRV_CTL_POWER_D0);
       __skip:
       	snd_power_unlock(card);
Signature · 1 line
		- Hu Gang