Behaves inconsistently when you unplug headphones

Bug #1436252 reported by Jarno Suni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In the beginning headphones are plugged in, and "Auto-Mute Mode" set "Disabled" in alsamixer.
Start pulseaudio.
Then unplug headphones. Speakers are muted.
Then plug headphones in. Speakers are muted.
Then unplug headphones. Speaker volume is unmuted.

I expect Speaker levels and muted/unmuted state of Speakers in alsamixer stay intact when you plug headphones in or out. And concerning the Auto-Mute Mode "Disabled", Speakers should not get effectively muted when headphones are plugged in.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: pulseaudio 1:4.0-0ubuntu11.1
ProcVersionSignature: Ubuntu 3.13.0-48.80-lowlatency 3.13.11-ckt16
Uname: Linux 3.13.0-48-lowlatency x86_64
ApportVersion: 2.14.1-0ubuntu3.7
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jarnos 2255 F.... panel-12-mixer
                      jarnos 8103 F.... alsamixer
                      jarnos 8313 F.... pulseaudio
CurrentDesktop: XFCE
Date: Wed Mar 25 11:59:07 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-09-21 (185 days ago)
InstallationMedia: Ubuntu-Studio 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.1)
SourcePackage: pulseaudio
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/26/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.6.6
dmi.board.name: 0RF703
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.6.6:bd06/26/2011:svnDellInc.:pnOptiPlex745:pvr:rvnDellInc.:rn0RF703:rvr:cvnDellInc.:ct6:cvr:
dmi.product.name: OptiPlex 745
dmi.sys.vendor: Dell Inc.

Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Raymond (superquad-vortex2) wrote :

disable Auto mute mode mean driver don't mute the speaker when headphone or line out is plugged

pulseaudio 's module-switch-on-available-port use alsa jack detection kctls and playback switch to implement pulseaudio 's auto mute

Revision history for this message
Raymond (superquad-vortex2) wrote :

[ 5.170780] autoconfig: line_outs=1 (0x5/0x0/0x0/0x0/0x0) type:line
[ 5.170784] speaker_outs=1 (0x7/0x0/0x0/0x0/0x0)
[ 5.170786] hp_outs=1 (0x6/0x0/0x0/0x0/0x0)
[ 5.170787] mono: mono_out=0x0
[ 5.170789] inputs:
[ 5.170791] Mic=0x8
[ 5.170792] Line=0x9

control.21 {
  iface CARD
  name 'Line Out Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.22 {
  iface CARD
  name 'Front Headphone Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.23 {
  iface CARD
  name 'Speaker Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

seen bug in pulseaudio as line out is plugged ,

, line out is not selected when headphone is unplugged

Revision history for this message
Raymond (superquad-vortex2) wrote :

Node 0x05 [Pin Complex] wcaps 0x400185: Stereo Amp-Out
  Control: name="PCM Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="PCM Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Line Out Jack", index=0, device=0
  Amp-Out caps: ofs=0x3d, nsteps=0x3f, stepsize=0x05, mute=1
  Amp-Out vals: [0x3d 0x3d]
  Pincap 0x00000017: OUT Detect Trigger ImpSense
  Pin Default 0x01014010: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=02, enabled=1
  Connection: 2
     0x03* 0x0e

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/hda_generic.c?id=3abb4f4d0e7aaad0d12004b5057f4486a688752b

Revision history for this message
Jarno Suni (jarnos) wrote :

Oh, auto mute does not work with Speaker in ALSA either (regardless of Auto-mute Mode setting) , but it works with Line Out (if Auto-mute Mode is Line out+speaker).

Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Jarno Suni (jarnos) wrote :

With pulseaudio 6.0 (wily), when you unplug headphones, pulseaudio changes active port to Line Out, if plugged, or else to Speakers. Speakers and Headphones will mute, when active port changes to something else than respective port. Line out mixer level is not affected, when active port is change to something else. Line out is effectively muted, when headphone is plugged, and Auto-Mute Mode is set to "Line Out+Speaker" in alsamixer. As for auto muting setting for speaker, when headphone is plugged, I think auto muting speaker by pulseaudio is fine, especially, as auto muting setting for Speaker does not work in ALSA currently as noted above.

Changed in pulseaudio (Ubuntu):
status: New → Fix Committed
Changed in pulseaudio (Ubuntu):
status: Fix Committed → Fix Released
affects: pulseaudio → ubuntu
no longer affects: ubuntu
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.