using hda-emu pin ctl of rear panels jack are set to zero when you plugged the headphone and set to OUT when you unplugged the headphone
> jack NID 0x14: cfg 0x01014010: [Jack] Line Out at Ext Rear NID 0x15: cfg 0x01011012: [Jack] Line Out at Ext Rear NID 0x16: cfg 0x01016011: [Jack] Line Out at Ext Rear NID 0x18: cfg 0x01a19840: [Jack] Mic at Ext Rear NID 0x19: cfg 0x02a19850: [Jack] Mic at Ext Front NID 0x1a: cfg 0x0181304f: [Jack] Line In at Ext Rear NID 0x1b: cfg 0x02214020: [Jack] HP Out at Ext Front NID 0x1e: cfg 0x01452130: [Jack] SPDIF Out at Ext Rear > jack 0x1b 1 send: NID=0x1b, VERB=0x709(exec_pin_sense), PARM=0x0 receive: 0x0 send: NID=0x1b, VERB=0xf09(get_pin_sense), PARM=0x0 receive: 0x80000000 send: NID=0x14, VERB=0x707(set_pin_ctl), PARM=0x0 send: NID=0x15, VERB=0x707(set_pin_ctl), PARM=0x0 send: NID=0x16, VERB=0x707(set_pin_ctl), PARM=0x0 CTL Notify: Front Headphone Jack:0, mask=1 JACK report Front Headphone, status 1 JACK report Rear Mic, status 0 JACK report Front Mic, status 0 JACK report Line, status 0 JACK report Line Out Front, status 0 JACK report Line Out Surround, status 0 JACK report Line Out CLFE, status 0 > jack 0x1b 0 send: NID=0x1b, VERB=0x709(exec_pin_sense), PARM=0x0 receive: 0x0 send: NID=0x1b, VERB=0xf09(get_pin_sense), PARM=0x0 receive: 0x0 send: NID=0x14, VERB=0x707(set_pin_ctl), PARM=0x40 send: NID=0x15, VERB=0x707(set_pin_ctl), PARM=0x40 send: NID=0x16, VERB=0x707(set_pin_ctl), PARM=0x40 CTL Notify: Front Headphone Jack:0, mask=1 JACK report Front Headphone, status 0 JACK report Rear Mic, status 0 JACK report Front Mic, status 0 JACK report Line, status 0 JACK report Line Out Front, status 0 JACK report Line Out Surround, status 0 JACK report Line Out CLFE, status 0 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pulseaudio in Ubuntu. https://bugs.launchpad.net/bugs/1208218 Title: intermittent left-channel audio distortion Status in “pulseaudio” package in Ubuntu: New Bug description: Since I installed this version of Ubuntu (Xubuntu 12.04 upgraded to Ubuntu Studio), I occasionally get crackly or fuzzy distortion in the left audio channel. It doesn't happen completely consistently, but it often happens while playing Flash videos in Firefox or editing audio in Audacity. It also happens pretty much every time I try to use Pure Data with JACK, and I can also replicate it by opening Audacity while using JACK (which will create distortion in all audio playing through JACK). But JACK doesn't need to be running at all for the problem to occur. Entering this command: rm -r ~/.pulse ~/.asound* ~/.pulse-cookie in the terminal is the only way I can fix the problem, and sometimes it takes several tries. I also have to restart some open applications after doing that to get them to play audio again. I tried the suggestions on https://wiki.ubuntu.com/Audio/PositionReporting , but that didn't solve the problem. I have PulseAudio 1:1.1-0ubuntu15.3 installed. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: pulseaudio 1:1.1-0ubuntu15.3 ProcVersionSignature: Ubuntu 3.2.0-51.53-lowlatency 3.2.48 Uname: Linux 3.2.0-51-lowlatency x86_64 AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24. ApportVersion: 2.0.1-0ubuntu17.3 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: stefan 2004 F.... xfce4-volumed stefan 2051 F.... pulseaudio Card0.Amixer.info: Card hw:0 'SB'/'HDA ATI SB at 0xfe7f4000 irq 16' Mixer name : 'Realtek ALC892' Components : 'HDA:10ec0892,18491892,00100302' Controls : 41 Simple ctrls : 20 CurrentDmesg: [ 38.380324] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 48.962046] eth0: no IPv6 routers present Date: Sun Aug 4 13:13:19 2013 InstallationMedia: Xubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120822.1) MarkForUpload: True ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: pulseaudio UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 06/24/2010 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: P1.20 dmi.board.name: 880GXH/USB3 dmi.board.vendor: ASRock dmi.chassis.asset.tag: To Be Filled By O.E.M. dmi.chassis.type: 3 dmi.chassis.vendor: To Be Filled By O.E.M. dmi.chassis.version: To Be Filled By O.E.M. dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.20:bd06/24/2010:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rn880GXH/USB3:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.: dmi.product.name: To Be Filled By O.E.M. dmi.product.version: To Be Filled By O.E.M. dmi.sys.vendor: To Be Filled By O.E.M. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1208218/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp