lkml.org 
[lkml]   [2004]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectAPM suspend causes uninterruptible sleep
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- -><-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.082 / U:4.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site