Headphone jack regression in 2.6.31-1

Bug #396563 reported by Nick Semenkovich
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ALSA driver
New
Undecided
Unassigned
linux (Ubuntu)
Won't Fix
Medium
Unassigned
linux-backports-modules-2.6.31 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

The headphone jack on my Macbook Pro 3,1 fails in 2.6.31-1 but works perfectly in 2.6.30-10.

In 2.6.31-1, inserting headphones mutes the speakers, but no audio comes from the jack (and I can't seem to solve the problem with alsamixer).

Revision history for this message
Nick Semenkovich (semenko) wrote :
Download full text (3.5 KiB)

Output from 2.6.31-1 (broken):

>> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889A Analog [ALC889A Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC889A Digital [ALC889A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

>> aplay -L
front:CARD=Intel,DEV=0
    HDA Intel, ALC889A Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC889A Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC889A Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC889A Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC889A Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC889A Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC889A Digital
    IEC958 (S/PDIF) Digital Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)

>> cat /proc/asound/devices
  2: : timer
  3: : sequencer
  4: [ 0- 2]: digital audio capture
  5: [ 0- 1]: digital audio playback
  6: [ 0- 1]: digital audio capture
  7: [ 0- 0]: digital audio playback
  8: [ 0- 0]: digital audio capture
  9: [ 0] : control

>> cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.20 emulation code)
Kernel: Linux SEMENKO 2.6.31-1-generic #14-Ubuntu SMP Thu Jul 2 16:02:38 UTC 2009 x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
HDA Intel at 0xdb500000 irq 20

Audio devices:
0: ALC889A Analog (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: Realtek ALC889A

>> sudo lspci -vvv
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
 Subsystem: Apple Computer Inc. Device 00a0
 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: 256 bytes
 Interrupt: pin A routed to IRQ 20
 Region 0: Memory at db500000 (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
   Clo...

Read more...

Revision history for this message
Nick Semenkovich (semenko) wrote :
Download full text (3.5 KiB)

Output from 2.6.30-10 (working):

>> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC885 Analog [ALC885 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC885 Digital [ALC885 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

>> aplay -L
front:CARD=Intel,DEV=0
    HDA Intel, ALC885 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC885 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC885 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC885 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC885 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC885 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC885 Digital
    IEC958 (S/PDIF) Digital Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)

>> cat /proc/asound/devices
  2: : timer
  3: : sequencer
  4: [ 0- 2]: digital audio capture
  5: [ 0- 1]: digital audio playback
  6: [ 0- 1]: digital audio capture
  7: [ 0- 0]: digital audio playback
  8: [ 0- 0]: digital audio capture
  9: [ 0] : control

>> cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.20 emulation code)
Kernel: Linux SEMENKO 2.6.30-10-generic #12-Ubuntu SMP Mon Jun 22 16:30:32 UTC 2009 x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
HDA Intel at 0xdb500000 irq 20

Audio devices:
0: ALC885 Analog (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: Realtek ALC889A

>> sudo lspci -vvv
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
 Subsystem: Apple Computer Inc. Device 00a0
 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: 256 bytes
 Interrupt: pin A routed to IRQ 20
 Region 0: Memory at db500000 (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- Su...

Read more...

Revision history for this message
Nick Semenkovich (semenko) wrote :

Note my /etc/modprobe.d/alsa-base.conf contains: options snd-hda-intel power_save=10 model=mbp3

Revision history for this message
Nick Semenkovich (semenko) wrote :

alsa-info for 2.6.31-2 (also broken), with headphones plugged in

Revision history for this message
Nick Semenkovich (semenko) wrote :

alsa-info for 2.6.30-10 (working), with headphones plugged in

tags: added: regression-potential
Steve Beattie (sbeattie)
Changed in linux (Ubuntu):
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Tony Espy (awe) wrote :

I can confirm that this is broken ( ie. plugging headphones mutes speakers, but has no headphone out ) for my system too ( Macbook Pro 3,1 / Santa Rosa ). I checked all of the ALSA mixer controls, and wasn't able to get the headphones working by toggling any of the settings and/or raising any of the levels.

I'm currently running the latest & greatest Karmic bits.

kernel is: 2.6.31-4

Please see attached alsa-info.txt

Note, I tried adding "model=mbp3" to the alsa options in /etc/modprobe.d/alsa-base.conf, but it made no difference.

Stefan Bader (smb)
Changed in linux (Ubuntu):
assignee: Canonical Kernel Team (canonical-kernel-team) → nobody
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Guys,

Just curious if using "model=mb31" helps at all?

Revision history for this message
Tony Espy (awe) wrote :

I tried both "model=mbp3" and "model=mb31"; neither seems to help.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Tony, can you also attach your dmesg output when not using either of the model= options? Thanks.

Revision history for this message
Tony Espy (awe) wrote :
Revision history for this message
Matt Zimmerman (mdz) wrote :

I see similar behavior on my ThinkPad T61, and I can work around it through Sound Preferences (right-click on the volume applet). There is a drop-down there which selects between headphone output and speaker output.

Apparently, connecting the headphones disables the speakers, but doesn't flip this toggle?

Note I'm running the ubuntu-audio-dev PPA with the latest pulseaudio etc.

Revision history for this message
Andres Mujica (andres.mujica) wrote :

Hi Semenko,

This issue must be solved with

pulseaudio (1:0.9.16~test5-0ubuntu2) karmic; urgency=low

  [ Daniel T Chen ]
  * debian/patches/0051-leave-hp-enabled.patch: Leave
    headphones enabled in the default analog mixer profiles

In case that you still experience this issue after update, please let us now

However as you're describing a kernel regression, please test this with karmic fully updated and let us now how it goes.

Thanks

Revision history for this message
Guillaume Chazarain (guichaz-gmail) wrote :
Revision history for this message
Andy Whitcroft (apw) wrote :

Ok the commit refereced in comment #13 was included in the 2.6.31-rc9 mainline kernel and thus in the 2.6.31-10.30 and later Ubuntu kernels. Could we get this retested against the latest Karmic kernel 2.6.31-12.39 or later. Please report back here. Thanks!

Changed in linux (Ubuntu):
assignee: nobody → Andy Whitcroft (apw)
status: Triaged → Incomplete
Revision history for this message
Matt Zimmerman (mdz) wrote :

Just to close the loop on my comment 11, this is working properly on my T61 with 2.6.31-11.36-generic. I don't know whether the underlying issue was the same as the MacBook Pro one described in the original report though.

Revision history for this message
Bryan Wu (cooloney) wrote :

@Andy, I just test on my MacBook Pro 15-inch machine with kernel 2.6.31-13.44-generic. The headphone does not work at all.

Revision history for this message
Pete Graner (pgraner) wrote :

@Bryan

We have created a new package which contains the latest alsa. Could you please install linux-backports-modules-alsa and retest.

Thanks

tags: added: regression-release
removed: regression-potential
tags: added: karmic
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
assignee: Andy Whitcroft (apw) → nobody
Gary M (garym)
tags: added: macbookpro
Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
Andy Whitcroft (apw)
Changed in linux-backports-modules-2.6.31 (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.