public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* APM suspend causes uninterruptible sleep
@ 2004-02-27  8:15 Keith Duthie
  2004-03-02 21:38 ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Duthie @ 2004-02-27  8:15 UTC (permalink / raw)
  To: alsa-devel; +Cc: linux-kernel

Between alsa-driver 0.9.4 and alsa-driver 0.9.5 the change below was made.
Since then, suspending with a program outputting to the pcm device
causes that program to enter the uninterruptible sleep state. Reverting
this patch fixes the problem. The problem exists in 0.9.5 through 1.0.2c.

This problem affects kernel 2.6.3; applying the reversion of this patch
fixes it.

diff -urN alsa-driver-0.9.4/alsa-kernel/isa/cs423x/cs4231_lib.c alsa-driver-0.9.5/alsa-kernel/isa/cs423x/cs4231_lib.c
--- alsa-driver-0.9.4/alsa-kernel/isa/cs423x/cs4231_lib.c	Wed Apr 30 23:53:17 2003
+++ alsa-driver-0.9.5/alsa-kernel/isa/cs423x/cs4231_lib.c	Tue Jul  8 22:42:09 2003
@@ -1401,8 +1401,10 @@

 	switch (rqst) {
 	case PM_SUSPEND:
-		if (chip->suspend)
+		if (chip->suspend) {
+			snd_pcm_suspend_all(chip->pcm);
 			(*chip->suspend)(chip);
+		}
 		break;
 	case PM_RESUME:
 		if (chip->resume)

-- 
Just because it isn't nice doesn't make it any less a miracle.
     http://users.albatross.co.nz/~psycho/     O-   -><-

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-04 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1tLo4-3qF-9@gated-at.bofh.it>
2004-02-28  0:18 ` APM suspend causes uninterruptible sleep Karol Kozimor
2004-02-27  8:15 Keith Duthie
2004-03-02 21:38 ` Pavel Machek

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