Bug 9890 - snd-intel8x0 speakers mute after resume from suspend to RAM
Summary: snd-intel8x0 speakers mute after resume from suspend to RAM
Status: CLOSED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-04 21:40 UTC by bug6181
Modified: 2012-05-17 15:33 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.24
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Output of "lspci -vvnn" on an nc6220 (11.07 KB, text/plain)
2008-02-13 10:20 UTC, Bryn Hughes
Details

Description bug6181 2008-02-04 21:40:48 UTC
+++ This bug was initially created as a clone of Bug #6181 +++

Most recent kernel where this bug did not occur:
It occured in 2.6.12 too I did not test before

Distribution: ubuntu dapper, ubuntu breezy

Hardware Environment:HP nx8220 laptop, PCI id :8086:266e

Problem Description:
After resuming from suspend to RAM, the card behaves as if headphone jack sense
were on and the jack were plugged in.
All togglings of mixer settings with jack in or out result in the same effect
Sound is only heard through the headphones not through the speakers
If I only do alsactl power D3 and then D0 instead of systemwide suspend/resume
it works ok though.

The same problem occurs with the OSS driver. So either both are missing
something or the problem is at PCI/ACPI or otherwise out of the driver's
responsability.

Removing and reloading the module after resume does not fix the issue.

When resuming from suspend to disk things are fine, it needs a power cycle
apparently.

In the mixer settings I do not see an external amplifier switch if this helps
in any way.

Steps to reproduce:
using the software suspend code in dapper (mainline + patches, not swsusp2 if it
matters) enter STR. On resume speakers are muted even though they were not before.
Comment 1 bug6181 2008-02-04 21:42:17 UTC
I can confirm that this bug still exists, on a Compaq nc6230 on a Ubuntu Hardy Heron kernel (2.6.24-5-generic).  The patch "avoid regression" actually causes the issue on this system, undoing the patch to snd-intel8x0 resolves the issue.  It has been suggested that...

 "Looking at the line that is re-enabled by reverting that patch, it appears that on the HP NC6220 the internal amplifier does not get powered on again unless the sound card is powered off at suspend time (without that it appears that whatever turns the power to the amplifier back on again doesn't get run when the sound card is powered up again in the resume code). Given the comment in the patch mentioned above I guess in some other laptops the power on code doesn't work at all, so if it's powered down it never gets powered up.

So the best fix is probably to put that particular power down line under the control of a kernel module option, so on the HP NC6220, etc, the card can be properly powered down at suspend so it powers up fully at resume, but on other laptops where that causes problems the power down can be skipped."

Full Comment:
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/151111/comments/7
Comment 2 Bryn Hughes 2008-02-13 10:20:05 UTC
Created attachment 14797 [details]
Output of "lspci -vvnn" on an nc6220
Comment 3 Alan 2012-05-17 15:33:34 UTC
Closing as obsolete. If this is incorrect please re-open

Note You need to log in before you can comment on or make changes to this bug.