Skip to contentSkip to conversation

: Patch for acpi resume.

ALSA - driver 0000903 [email protected] 1 participant 1 message Feb 15, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<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:                     new
Distribution:               Fedora Core 3
Kernel Version:             2.6.10
======================================================================
Date Submitted:             02-12-2005 04:48 CET
Last Modified:              02-15-2005 05:29 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.
======================================================================

----------------------------------------------------------------------
tiwai - 02-14-05 16:13
----------------------------------------------------------------------
ALSA native apps are supposed to handle the resume properly by themselves.

Meanwhile, dmix/dsnoop seem to have problems with resume...

----------------------------------------------------------------------
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.

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                          

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

-------------------------------------------------------
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