From: bugtrack@alsa-project.org Subject: [ALSA - driver 0000903]: Patch for acpi resume. Date: Sun, 13 Feb 2005 04:44:36 +0100 Message-ID: <0c9edd4ec8fe968c967fcadfca71a36f@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 3D75B209 for ; Sun, 13 Feb 2005 04:44:36 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: ryo-dairiki Assigned To: ====================================================================== Project: ALSA - driver Issue ID: 903 Category: PCI - intel8x0 Reproducibility: always Severity: tweak Priority: normal Status: new Distribution: Fedora Core 3 Kernel Version: 2.6.10 ====================================================================== Date Submitted: 02-12-2005 04:48 CET Last Modified: 02-13-2005 04:44 CET ====================================================================== Summary: Patch for acpi resume. Description: When you use acpi suspend-to-ram (=S3 sleep), you have to kill applications playing sounds and unload snd_intel8x0 module. (You can't unload the module when you are using sound servers) Otherwise, the applications will freeze when you resume the machine. I found that this problem is caused by "snd_pcm_suspend_all" call in "intel8x0_suspend" method described in "intel8x0.c". It suspend pcm streams and won't resume them, then causes the applications to freeze. So I made a patch to make it resume pcm streams on resume. This works fine for me. I mean I can suspend and resume even if some applications are playing sounds without unloading the modules or killing them. ====================================================================== ---------------------------------------------------------------------- ryo-dairiki - 02-13-05 04:44 ---------------------------------------------------------------------- I've found that capture devices die after suspending even if you use this patch. But I have some idea to fix it. I'll send a new patch later. Issue History Date Modified Username Field Change ====================================================================== 02-12-05 04:48 ryo-dairiki New Issue 02-12-05 04:48 ryo-dairiki File Added: alsa-resume-all.patch 02-12-05 04:48 ryo-dairiki Distribution => Fedora Core 3 02-12-05 04:48 ryo-dairiki Kernel Version => 2.6.10 02-13-05 04:44 ryo-dairiki Note Added: 0003579 ====================================================================== ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click