Skip to contentSkip to conversation

: Patch for acpi resume.

ALSA - driver 0000903 [email protected] 1 participant 1 message May 31, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=903>
======================================================================
Reported By: ryo-dairiki
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   903
Category:                   PCI - intel8x0
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     closed
Distribution:               Fedora Core 3
Kernel Version:             2.6.10
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             02-12-2005 04:48 CET
Last Modified:              05-31-2005 18:03 CEST

======================================================================
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-15-05 05:29
----------------------------------------------------------------------
Thank you for replying.

I've just found that problem is caused not by alsa itself, but by alsa-dmix.

Quoted 1 line

From "pcm_dmix.c":

static int snd_pcm_dmix_resume(snd_pcm_t *pcm ATTRIBUTE_UNUSED)

{
    // snd_pcm_direct_t *dmix = pcm->private_data;
    // FIXME
    return 0;
}

It seems like there is no valid code for resuming here. Anyway, thank you for the information.

----------------------------------------------------------------------
perex - 02-22-05 09:54
----------------------------------------------------------------------
Please, enter a new bug for alsa-lib (dmix resume problem).

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                          
02-13-05 08:36 ryo-dairiki    Note Deleted: 0003579                        
02-14-05 07:27 ryo-dairiki    Note Added: 0003586                          
02-14-05 16:13 tiwai          Note Added: 0003593                          
02-15-05 05:29 ryo-dairiki    Note Added: 0003615                          
02-22-05 09:54 perex          Status                   new => resolved     
02-22-05 09:54 perex          Resolution               open => fixed       
02-22-05 09:54 perex          Assigned To               => perex           
02-22-05 09:54 perex          Note Added: 0003694                          
02-22-05 09:54 perex          Assigned To              perex =>            
05-31-05 18:03 perex          Status                   resolved => closed  

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005