mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]1/2: fix intel8x0.c suspend problem.
@ 2002-10-19 12:05 Hu Gang
  0 siblings, 0 replies; only message in thread
From: Hu Gang @ 2002-10-19 12:05 UTC (permalink / raw)
  To: Jaroslav Kysela, Linux Kernel, Pavel Machek, mochel

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

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.
---------------------------------------------------
--- linux-2.5.44-clean/sound/pci/intel8x0.c	Sat Oct 19 15:55:30 2002
+++ linux-2.5.44-suspend/sound/pci/intel8x0.c	Sat Oct 19 19:51:35 2002
@@ -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);

-- 
		- Hu Gang

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-19 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-19 12:05 [PATCH]1/2: fix intel8x0.c suspend problem Hu Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®