Bug 10662
Summary: | Regression in 2.6.25: No sound after suspend-to-ram and resume (snd_hda_intel) | ||
---|---|---|---|
Product: | Drivers | Reporter: | Jack Malmostoso (malmostoso) |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | bunk, tiwai |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.25 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 7216, 9832 | ||
Attachments: |
dmidecode output
alsa-info before suspend alsa-info after suspend Fix resume with auto-configuration of Realtek codecs |
Description
Jack Malmostoso
2008-05-10 05:16:46 UTC
Same here. Note that unloading and reloading the snd_hda_intel module makes the sound work again. my lspci output : 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Device 3093 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 16 Region 0: Memory at fdff8000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable- Address: 0000000000000000 Data: 0000 Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00 DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us ExtTag- RBE- FLReset- DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported- RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+ MaxPayload 128 bytes, MaxReadReq 128 bytes DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend- LnkCap: Port #0, Speed unknown, Width x0, ASPM unknown, Latency L0 <64ns, L1 <1us ClockPM- Suprise- LLActRep- BwNot- LnkCtl: ASPM Disabled; Disabled- Retrain- CommClk- ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed unknown, Width x0, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt- Capabilities: [100] Virtual Channel <?> Capabilities: [130] Root Complex Link <?> Kernel driver in use: HDA Intel Kernel modules: snd-hda-intel Same here with VIA-Chipset (using 2.6.25.4 Arch Linux). Unloading and reloading the snd_hda_intel module (followed by /usr/sbin/alsactl restore) makes the sound work again. lspci output : 00:00.0 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge Subsystem: VIA Technologies, Inc. P4M900 Host Bridge Flags: bus master, medium devsel, latency 8 Memory at f0000000 (32-bit, prefetchable) [size=128M] Capabilities: [80] AGP version 3.5 Capabilities: [50] Power Management version 2 00:00.1 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge Subsystem: VIA Technologies, Inc. P4M900 Host Bridge Flags: bus master, medium devsel, latency 0 00:00.2 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge Subsystem: VIA Technologies, Inc. P4M900 Host Bridge Flags: bus master, medium devsel, latency 0 00:00.3 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge Flags: bus master, medium devsel, latency 0 00:00.4 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge Subsystem: VIA Technologies, Inc. P4M900 Host Bridge Flags: bus master, medium devsel, latency 0 00:00.5 PIC: VIA Technologies, Inc. P4M900 I/O APIC Interrupt Controller (prog-if 20 [IO(X)-APIC]) Flags: bus master, fast devsel, latency 0 00:00.6 Host bridge: VIA Technologies, Inc. P4M900 Security Device Flags: bus master, fast devsel, latency 0 00:00.7 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge Flags: bus master, medium devsel, latency 0 00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge (prog-if 00 [Normal decode]) Flags: bus master, 66MHz, medium devsel, latency 0 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 Capabilities: [70] Power Management version 2 00:02.0 PCI bridge: VIA Technologies, Inc. P4M900 PCI to PCI Bridge Controller (rev 80) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 Memory behind bridge: fc000000-feafffff Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [68] Power Management version 2 Capabilities: [70] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable- Capabilities: [88] HyperTransport: MSI Mapping Enable- Fixed+ Capabilities: [98] Subsystem: VIA Technologies, Inc. Unknown device c323 00:03.0 PCI bridge: VIA Technologies, Inc. P4M900 PCI to PCI Bridge Controller (rev 80) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [68] Power Management version 2 Capabilities: [70] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable- Capabilities: [88] HyperTransport: MSI Mapping Enable- Fixed+ Capabilities: [98] Subsystem: VIA Technologies, Inc. Unknown device c323 00:0f.0 IDE interface: VIA Technologies, Inc. Unknown device 5337 (rev 80) (prog-if 8f [Master SecP SecO PriP PriO]) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, medium devsel, latency 32, IRQ 21 I/O ports at ec00 [size=8] I/O ports at e880 [size=4] I/O ports at e800 [size=8] I/O ports at e480 [size=4] I/O ports at e400 [size=16] I/O ports at e000 [size=256] Capabilities: [c0] Power Management version 2 00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 07) (prog-if 8a [Master SecP PriP]) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, medium devsel, latency 32 [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8] [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1] [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8] [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1] I/O ports at fc00 [size=16] Capabilities: [c0] Power Management version 2 00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, medium devsel, latency 32, IRQ 20 I/O ports at d480 [size=32] Capabilities: [80] Power Management version 2 00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, medium devsel, latency 32, IRQ 22 I/O ports at d800 [size=32] Capabilities: [80] Power Management version 2 00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, medium devsel, latency 32, IRQ 21 I/O ports at d880 [size=32] Capabilities: [80] Power Management version 2 00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, medium devsel, latency 32, IRQ 23 I/O ports at dc00 [size=32] Capabilities: [80] Power Management version 2 00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86) (prog-if 20 [EHCI]) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, medium devsel, latency 32, IRQ 21 Memory at fbfffc00 (32-bit, non-prefetchable) [size=256] Capabilities: [80] Power Management version 2 00:11.0 ISA bridge: VIA Technologies, Inc. VT8237A PCI to ISA Bridge Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: medium devsel Capabilities: [c0] Power Management version 2 00:11.7 Host bridge: VIA Technologies, Inc. VT8251 Ultra VLINK Controller Subsystem: VIA Technologies, Inc. Unknown device 337e Flags: bus master, medium devsel, latency 128 Capabilities: [58] HyperTransport: Interrupt Discovery and Configuration 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7c) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, medium devsel, latency 32, IRQ 23 I/O ports at d000 [size=256] Memory at fbfff800 (32-bit, non-prefetchable) [size=256] Capabilities: [40] Power Management version 2 00:13.0 Host bridge: VIA Technologies, Inc. VT8237A Host Bridge Flags: bus master, fast devsel, latency 0 Capabilities: [60] HyperTransport: MSI Mapping Enable- Fixed+ 00:13.1 PCI bridge: VIA Technologies, Inc. VT8237A PCI to PCI Bridge (prog-if 01 [Subtractive decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=04, subordinate=04, sec-latency=0 Capabilities: [60] HyperTransport: MSI Mapping Enable- Fixed+ Capabilities: [70] Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 02:00.0 VGA compatible controller: nVidia Corporation G72 [GeForce 7300 SE] (rev a1) (prog-if 00 [VGA controller]) Subsystem: CardExpert Technology Unknown device 1401 Flags: bus master, fast devsel, latency 0, IRQ 24 Memory at fd000000 (32-bit, non-prefetchable) [size=16M] Memory at d0000000 (64-bit, prefetchable) [size=256M] Memory at fc000000 (64-bit, non-prefetchable) [size=16M] [virtual] Expansion ROM at feae0000 [disabled] [size=128K] Capabilities: [60] Power Management version 2 Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable- Capabilities: [78] Express Endpoint, MSI 00 80:01.0 Audio device: VIA Technologies, Inc. VIA High Definition Audio Controller (rev 10) Subsystem: Micro-Star International Co., Ltd. Unknown device 7255 Flags: bus master, fast devsel, latency 0, IRQ 17 Memory at febfc000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable- Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 Tried with a vanilla build of 2.6.25.4 now with same results. (Same machine as in comment #2) Found in /var/log/messages : hda_codec: Unknown model for ALC883, trying auto-probe from BIOS... This is reported above too. I added a model parameter line to /etc/modprobe.d/sound : # ALC883/888 # 3stack-dig 3-jack with SPDIF I/O # 6stack-dig 6-jack digital with SPDIF I/O # 3stack-6ch 3-jack 6-channel # 3stack-6ch-dig 3-jack 6-channel with SPDIF I/O options snd-hda-intel model=6stack-dig alias snd-card-0 snd-hda-intel alias sound-slot-0 snd-hda-intel ... and after a reboot all worked normal. Many thanks to Carlos Eduardo (who had exactly the same problem) ! Indeed! I added model=3stack-dig since I have way less than 6 jacks but it sure worked. The "unknown model" message also disappeared at boot. Thank you for this suggestion, not sure what to do with this "bug" now. Created attachment 16354 [details]
dmidecode output
Good !
I changed it to
options snd-hda-intel model=6stack-dig-demo
meanwhile because center/lfo and rear outputs where swapped.
Maybe some more models to be auto detected need to be added to the driver ?
Appending dmidecode output just in case it is usefull ...
Argg!!! - changing to model=6stack-dig-demo broke it again ! There seem to be models which resume good and such that don't. So this bug is _not_ yet resolved for me. Will try to find some really working model later ... ... hmm, 6stack-hp and 6stack-dell seem to work half way, but with one problem: When I drag the balance slider to the right, the baster volume slider moves too. It moves only downward, dragging the balance back to the left does not move it upwards again. So after trying all models for ALC883 which are not stated to be only 3stack or 2-channel, I found no perfect solution. I think 6stack-dig-demo should just do a better job during suspend/resume or there should be an additional model for this mobo. (demidecode output in comment #6) Adding one model fixes the suspend problem, but I have no output to the headphones anymore :( I'll try all models available to see if I can find one that does both things, but it sure is annoying... it's still a regression from 2.6.24, that's sure. Could you guys test 2.6.26-rc4 kernel whether the same problem exists *WITHOUT* model option? If yes, we have a good chance to backport the fix patch. If not, we have to fix urgently for 2.6.26, too. Thanks. Dear Takashi, I have tested with 2.6.26-rc4 and the problem is still there. If I include the model, I get sound after resume but no headphones. If I don't include the model, headphones work but no sound after resume. My kernel was compiled using the same .config as 2.6.25 and 2.6.24. Thanks for your help! OK, it's good to know. Could you run alsa-info.sh with --no-upload option before and after PM, and attach the generated files to compare? http://hg.alsa-project.org/alsa/raw-file/tip/alsa-info.sh Run this for the case without the model option. I have already similar bug reports regarding ALC88x, but I still don't figure out which path is broken. Thanks. Created attachment 16373 [details]
alsa-info before suspend
Created attachment 16374 [details]
alsa-info after suspend
I have created the two files as requested. I hope it helps, I'll be happy to test any patches. Could you try the patch below (hda-alc-autoinit-fix.diff) ? It's against 2.6.26-rc4. It might fix also 2.6.25 issue as well, but please try 2.6.26 at first. Created attachment 16375 [details]
Fix resume with auto-configuration of Realtek codecs
Hello Takashi, your patch fixed the problem on my machine with 2.6.26-rc4. Thank you for your help! I tried it on 2.6.25.4 vanilla meanwhile and it is fixed here too. Thank you very much ! fixed by commit 07bc76dfa19b10017b518dd9aa1b2719e8c863de |