[Z87N-WIFI, Realtek ALC892, Green Line Out, Rear] Sound is distorted

Bug #1277846 reported by Stefan Grabowski on 2014-02-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Undecided
Unassigned

Bug Description

Sound quality is poor, especially at high volumes. Within the sound settings menu an output flicks on and off causing a slight crackle in the speakers but noticeably interrupts music. It disappears too fast for me to be able to identify what it is, but it coincides with the crackles.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.11.0-15.25-generic 3.11.10
Uname: Linux 3.11.0-15-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: stefan 2385 F.... pulseaudio
 /dev/snd/controlC0: stefan 2385 F.... pulseaudio
Date: Sat Feb 8 11:19:08 2014
InstallationDate: Installed on 2013-10-31 (99 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed
Symptom_Card: Built-in Audio - HDA Intel PCH
Symptom_Jack: Green Line Out, Rear
Symptom_Type: Digital clip or distortion, or "overdriven" sound
Title: [Z87N-WIFI, Realtek ALC892, Green Line Out, Rear] Sound is distorted
UpgradeStatus: Upgraded to saucy on 2013-10-31 (99 days ago)
dmi.bios.date: 05/16/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F2
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: Z87N-WIFI
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF2:bd05/16/2013:svnGigabyteTechnologyCo.,Ltd.:pnZ87N-WIFI:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnZ87N-WIFI:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: Z87N-WIFI
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Stefan Grabowski (s-grabowski) wrote :
Stefan Grabowski (s-grabowski) wrote :

Pulse Log attached.

I tried the suggestions in the included post, but they did not work. What I did manage to see though was that the entry that flickers on and off is 'Headphones'. I'd happily just disable the jack if I could. Just for clarification I am not using any front panel connectors, just the line out (green jack) on the back of the motherboard.

Raymond (superquad-vortex2) wrote :

you need to set bit 8 of pin default of headphone node to disable jack detection by hdajackretask or early patching

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

from 0x02214020 to 0x02214120

the driver disable unsolicited event and create "Front Headphone Phantom Jack" instead of "Front Headphone Jack"

  Unsolicited: tag=01, enabled=0

Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Front Headphone Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001373e: IN OUT HP EAPD Detect Trigger
    Vref caps: HIZ 50 GRD 80 100
  EAPD 0x2: EAPD
  Pin Default 0x02214020: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP VREF_HIZ
  Unsolicited: tag=01, enabled=1

seem only headphone unplugged and plugged , the front mic seem not affected

{ 0.199| 0.000) D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
( 0.199| 0.000) D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status no

( 0.466| 0.192) D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged in
( 0.466| 0.000) D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status yes
( 0.466| 0.000) D: [pulseaudio] module-switch-on-port-available.c: finding port analog-output-headphones
( 0.466| 0.000) D: [alsa-sink-ALC892 Analog] alsa-mixer.c: Activating path analog-output-headphones

( 0.487| 0.019) D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
( 0.487| 0.000) D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status no
( 0.487| 0.000) D: [pulseaudio] module-switch-on-port-available.c: finding port analog-output-headphones
( 0.487| 0.000) D: [alsa-sink-ALC892 Analog] alsa-mixer.c: Activating path analog-output

( 1.820| 1.331) D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged in
( 1.820| 0.000) D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status yes
( 1.820| 0.000) D: [pulseaudio] module-switch-on-port-available.c: finding port analog-output-headphones
( 1.820| 0.000) D: [alsa-sink-ALC892 Analog] alsa-mixer.c: Activating path analog-output-headphones

Stefan Grabowski (s-grabowski) wrote :

Can you confirm how I might go about applying this patch? I've never had to do something like this, and if you can point me in the direction of a tutorial it would be much appreciated.

Raymond (superquad-vortex2) wrote :

http://voices.canonical.com/david.henningsson/2011/11/29/turn-your-mic-jack-into-a-headphone-jack/

select alc892 codec

check advanced override to allow you to change more the pin default

select headphone node 0x1b

Chang Jack detection from present to not present

Stefan Grabowski (s-grabowski) wrote :

Wow. Thank you so much Raymond, this worked perfectly. I can't believe that this did not turn up in any of my previous searches. It's so nice to be able to use my speakers again without the crackling problem.

Giorgio (georg91) wrote :

I had the same audio problem. This procedure works perfectly. Excellent!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers