From: Hu Gang <hugang@soulinfo.com>
To: Jaroslav Kysela <perex@suse.cz>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Pavel Machek <pavel@ucw.cz>,
mochel@osdl.org
Subject: [PATCH]1/2: fix intel8x0.c suspend problem.
Date: Sat, 19 Oct 2002 20:05:00 +0800 [thread overview]
Message-ID: <20021019200500.18d8f6df.hugang@soulinfo.com> (raw)
[-- 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 --]
reply other threads:[~2002-10-19 12:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021019200500.18d8f6df.hugang@soulinfo.com \
--to=hugang@soulinfo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.org \
--cc=pavel@ucw.cz \
--cc=perex@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®