[AV200 - Xonar STX, playback] Loud pop when switching to headphones

Bug #1380046 reported by Michael Lawton
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Confirmed
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When switching the port to either headphone ports from the speaker port there is a loud pop in the headphones. When I am playing music through the speakers at 100% volume and then switch, I can hear the music at a very loud volume through the headphones for a fraction of a second before dropping to the proper headphones volume which is much lower. Even if I mute the output before switching ports there is still a pop although not nearly as loud.

I believe this is a driver issue (oxygen/virtuoso). The Essense STX uses a relay to switch between the speaker and headphones ports. I am guessing the the power for the speaker (line out) port is much higher than that used for the headphones port and the drivers need to mute the sound at a hardware level before switching to elmininate the pop. On Windows when switching to and from speaker and headphones port the output would be muted for almost a second as the port was switched so there was no pop. On Ubuntu there is no delay when switching ports. I have looked at the driver source code and there is an anti_pop_delay of 800 milliseconds used on the Xonar init method. I think this same delay should probably be added when switching to the headphone ports.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7
Uname: Linux 3.13.0-37-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: michael 20842 F.... pulseaudio
 /dev/snd/controlC0: michael 20842 F.... pulseaudio
 /dev/snd/pcmC0D0p: michael 20842 F...m pulseaudio
 /dev/snd/controlC1: michael 20842 F.... pulseaudio
CurrentDesktop: Unity
Date: Sat Oct 11 22:50:15 2014
InstallationDate: Installed on 2014-10-07 (3 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:STX successful
Symptom_Card: HD Webcam C910 - USB Device 0x46d:0x821
Symptom_PulsePlaybackTest: PulseAudio playback test successful
Symptom_Type: None of the above
Title: [AV200 - Xonar STX, playback] Playback problem
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/20/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1401
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8H77-M PRO
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1401:bd08/20/2013:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnP8H77-MPRO:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
---
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: michael 2404 F.... pulseaudio
 /dev/snd/controlC2: michael 2404 F.... pulseaudio
 /dev/snd/controlC1: michael 2404 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=89201542-3d78-4588-9f0f-3725c7c22875
InstallationDate: Installed on 2014-10-07 (5 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
MachineType: System manufacturer System Product Name
NonfreeKernelModules: fglrx
Package: linux (not installed)
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-37-generic root=UUID=fbc05121-3d98-42ce-8073-986171e4b73f ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-37-generic N/A
 linux-backports-modules-3.13.0-37-generic N/A
 linux-firmware 1.127.7
RfKill:

Tags: trusty trusty
Uname: Linux 3.13.0-37-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 08/20/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1401
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8H77-M PRO
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1401:bd08/20/2013:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnP8H77-MPRO:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Michael Lawton (flangefrog) wrote :
tags: added: kernel-sound
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1380046

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

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

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Lawton (flangefrog) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Michael Lawton (flangefrog) wrote : BootDmesg.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : CRDA.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : Lspci.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : Lsusb.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : ProcEnviron.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : ProcModules.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : PulseList.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : UdevDb.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : UdevLog.txt

apport information

Revision history for this message
Michael Lawton (flangefrog) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Raymond (superquad-vortex2) wrote :

this mean you need to add mute, delay and unmute when this control is changed by user

Simple mixer control 'Analog Output',0
  Capabilities: enum
  Items: 'Speakers' 'Headphones' 'FP Headphones'
  Item0: 'Speakers'

Revision history for this message
Michael Lawton (flangefrog) wrote :

Raymond, I've tried muting with pacmd set-sink-mute 1 1 and although it helps there is still a click. I think it may require muting at a lower level or even at the hardware level.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
sniglom (sniglom) wrote :

I'm also affected of this issue.

I found this partial(?) solution to this on github:
https://gist.github.com/kevinlekiller/f533f4d1f7318a7cf81a

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Apparently this line
gpio &= GPIO_ST_OUTPUT_ENABLE;

Should be
gpio |= GPIO_ST_OUTPUT_ENABLE;

instead.

Please ask the author to send the patch to upstream Linux

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.