public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix apm suspend with cs4231 based sound cards
@ 2004-06-07 15:39 Keith Duthie
  2004-06-07 17:01 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Keith Duthie @ 2004-06-07 15:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: alsa-user

The following patch (effectively a reversion of a change between alsa
0.9.4 and 0.9.5) fixes a problem whereby an APM suspend causes the
program which is using the PCM device to enter the uninterruptible sleep
state on resume and thus causes the sound device to be unusable.

--- linux-2.6.5/sound/isa/cs423x/cs4231_lib.c~	Tue Jun  8 03:24:49 2004
+++ linux-2.6.5/sound/isa/cs423x/cs4231_lib.c	Tue Jun  8 03:24:52 2004
@@ -1402,7 +1402,7 @@
 	switch (rqst) {
 	case PM_SUSPEND:
 		if (chip->suspend) {
-			snd_pcm_suspend_all(chip->pcm);
+			//	snd_pcm_suspend_all(chip->pcm);
 			(*chip->suspend)(chip);
 		}
 		break;

I've cc'ed alsa-user instead of alsa-devel as I'm only subscribed to
alsa-user, and my attempt to report this in February (according to an
automated reply I received) "Is being held until the list moderator can
review it for approval."

-- 
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] 5+ messages in thread

* Re: [PATCH] Fix apm suspend with cs4231 based sound cards
  2004-06-07 15:39 [PATCH] Fix apm suspend with cs4231 based sound cards Keith Duthie
@ 2004-06-07 17:01 ` Takashi Iwai
  2004-06-08  2:51   ` Keith Duthie
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Takashi Iwai @ 2004-06-07 17:01 UTC (permalink / raw)
  To: Keith Duthie; +Cc: linux-kernel, alsa-user

At Tue, 8 Jun 2004 03:39:52 +1200 (NZST),
Keith Duthie wrote:
> 
> The following patch (effectively a reversion of a change between alsa
> 0.9.4 and 0.9.5) fixes a problem whereby an APM suspend causes the
> program which is using the PCM device to enter the uninterruptible sleep
> state on resume and thus causes the sound device to be unusable.
> 
> --- linux-2.6.5/sound/isa/cs423x/cs4231_lib.c~	Tue Jun  8 03:24:49 2004
> +++ linux-2.6.5/sound/isa/cs423x/cs4231_lib.c	Tue Jun  8 03:24:52 2004
> @@ -1402,7 +1402,7 @@
>  	switch (rqst) {
>  	case PM_SUSPEND:
>  		if (chip->suspend) {
> -			snd_pcm_suspend_all(chip->pcm);
> +			//	snd_pcm_suspend_all(chip->pcm);
>  			(*chip->suspend)(chip);
>  		}
>  		break;

Could you check whether the recent kernel works without this patch?
There was a mutex deadlock in the suspend code, and I guess it hit
you...


Takashi

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

* Re: [PATCH] Fix apm suspend with cs4231 based sound cards
  2004-06-07 17:01 ` Takashi Iwai
@ 2004-06-08  2:51   ` Keith Duthie
  2004-06-08 17:09   ` Keith Duthie
  2004-06-13  8:37   ` Keith Duthie
  2 siblings, 0 replies; 5+ messages in thread
From: Keith Duthie @ 2004-06-08  2:51 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: linux-kernel, alsa-user

On Mon, 7 Jun 2004, Takashi Iwai wrote:

> Could you check whether the recent kernel works without this patch?
> There was a mutex deadlock in the suspend code, and I guess it hit
> you...

Ok, will do.

-- 
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] 5+ messages in thread

* Re: [PATCH] Fix apm suspend with cs4231 based sound cards
  2004-06-07 17:01 ` Takashi Iwai
  2004-06-08  2:51   ` Keith Duthie
@ 2004-06-08 17:09   ` Keith Duthie
  2004-06-13  8:37   ` Keith Duthie
  2 siblings, 0 replies; 5+ messages in thread
From: Keith Duthie @ 2004-06-08 17:09 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: linux-kernel, alsa-user

On Mon, 7 Jun 2004, Takashi Iwai wrote:

> Could you check whether the recent kernel works without this patch?
> There was a mutex deadlock in the suspend code, and I guess it hit
> you...

I haven't actually tested it yet, but the 2.6.7-rc3 version is changed
enough that the patch I submitted doesn't apply anymore. I'll test it
within the next week or so.

-- 
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] 5+ messages in thread

* Re: [PATCH] Fix apm suspend with cs4231 based sound cards
  2004-06-07 17:01 ` Takashi Iwai
  2004-06-08  2:51   ` Keith Duthie
  2004-06-08 17:09   ` Keith Duthie
@ 2004-06-13  8:37   ` Keith Duthie
  2 siblings, 0 replies; 5+ messages in thread
From: Keith Duthie @ 2004-06-13  8:37 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: linux-kernel, alsa-user

On Mon, 7 Jun 2004, Takashi Iwai wrote:

> Could you check whether the recent kernel works without this patch?
> There was a mutex deadlock in the suspend code, and I guess it hit
> you...

The bug is fixed in 2.6.7-rc3; that'll teach me to test the lastest
release candidate before posting patches...
-- 
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] 5+ messages in thread

end of thread, other threads:[~2004-06-13  8:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-07 15:39 [PATCH] Fix apm suspend with cs4231 based sound cards Keith Duthie
2004-06-07 17:01 ` Takashi Iwai
2004-06-08  2:51   ` Keith Duthie
2004-06-08 17:09   ` Keith Duthie
2004-06-13  8:37   ` Keith Duthie

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