: driver blocks/times out after suspend on IBM Thinkpad 390E (2626E0U)
The following issue has been ACKNOWLEDGED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=420>
======================================================================
Reported By: jmartin
Assigned To:
======================================================================
Project: ALSA - driver Issue ID: 420 Category: PCI - es1938 Reproducibility: always Severity: major Priority: normal Status: acknowledged Distribution: Debian GNU/Linux Kernel Version: unmodified Linux 2.6.7, compiled from sources ====================================================================== Date Submitted: 08-03-2004 12:14 CEST Last Modified: 04-12-2005 21:39 CEST
======================================================================
Summary: driver blocks/times out after suspend on IBM
Thinkpad 390E (2626E0U)
Description:
When I suspend (to ram) my Thinkpad and then resume it again, sound does not work any more. Programs trying to use the sound device block for a long time and time out eventually. There are no kernel messages.
The problem existed also in earlier ALSA and OSS versions. Sometimes I received messages about lost interrupts or similar (if I remember correctly).
In earlier versions, I also tried to
- unload/reload the module after resume,
- unload the module before suspend, reload after resume, both with now success.
======================================================================
----------------------------------------------------------------------
tiwai - 08-03-04 19:37
----------------------------------------------------------------------
es1938 driver doesn't support suspend/resume yet.
It's obvious that it doesn't work...
Maybe I can write a patch later.
----------------------------------------------------------------------
jmartin - 08-03-04 21:19
----------------------------------------------------------------------
What about that unloading the driver before suspend and reloading after resume doesn't help either? Should/Could something be done to the module initialization code to make sure the device is initialized correctly even if it was messed up through an unclean suspend/resume.
That would be a big help till proper suspend/resume support is added. Right now, we have to reboot whenever sound is needed...
----------------------------------------------------------------------
jmartin - 08-04-04 08:41
----------------------------------------------------------------------
Update: with current linux kernel (2.6.7) when I unload the driver before suspend and reload after suspend, I do get sound output (no timeouts), but it sounds really distorted. It seems like 8bit mono sound it almost ok, but 16bit stereo sound is very far from the original.
----------------------------------------------------------------------
tiwai - 08-04-04 12:38
----------------------------------------------------------------------
Did you do suspend-to-RAM or suspend-to-disk?
Anyway, the attached patch is to add the PM support for es1938. Please give a try. (Possibly the same problem like unload/reload module may appear.)
----------------------------------------------------------------------
jmartin - 08-04-04 17:56
----------------------------------------------------------------------
Thanks for the patch - that was quick. Unfortunately, you were right with your assumption that the problem will be the same as if I reload the driver after resume.
As far as I could test, sampling rates up to 11025 work after resume, 22050 does sometimes, 22050 stereo and up certainly not.
----------------------------------------------------------------------
jdthood - 04-08-05 22:36
----------------------------------------------------------------------
Submitter: Has the (re)initialization problem been fixed?
----------------------------------------------------------------------
jmartin - 04-12-05 21:37
----------------------------------------------------------------------
I just tried with a plain 2.6.11.7 kernel. The problem is as before. Sample rates up to 11025 Hz work fine after a suspend, higher rates produce scrambled output.
Issue History
Date Modified Username Field Change
======================================================================
08-03-04 12:14 jmartin New Issue 08-03-04 12:14 jmartin Distribution => Debian GNU/Linux 08-03-04 12:14 jmartin Kernel Version => unmodified Linux 2.6.7, compiled from sources 08-03-04 19:37 tiwai Note Added: 0001529 08-03-04 21:19 jmartin Note Added: 0001530 08-04-04 08:41 jmartin Note Added: 0001532 08-04-04 12:38 tiwai Note Added: 0001533 08-04-04 12:42 tiwai File Added: es1938-pm.dif 08-04-04 17:56 jmartin Note Added: 0001534 04-08-05 22:36 jdthood Note Added: 0004379 04-12-05 21:37 jmartin Note Added: 0004465 04-12-05 21:39 jdthood Status new => acknowledged
======================================================================
-------------------------------------------------------
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