ALSA SPDIF Digital output clipping / crackling during playback
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alsa-driver (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When playing sound in Jaunty out of my HDA Intel SPDIF out, loud sounds clip. This is audible because from the strong distortion it produces, which I have seen some people characterize as "crackling". For example, if I go to system-
I looked around for solutions, this sounds similar to my problem:
https:/
However, as I noted, I've tried reducing my levels, and my PCM mixer level is all the way at 0 (-58.50 dB) anyway. Not to mention that these are digital outputs, so having them at the 0dB gain position (100% for the master and IEC958 sliders) should be fine...
Yes I am certain it's not my speakers clipping.
Oddly enough, at one point I was able to get it not to clip in the gnome sound settings control by going through some sequence of trying different backends (various options for ALSA, for OSS, etc.). I have not been able to reliably reproduce the non-clipping, but I will keep trying.
For some reason, I hear the clipping when I listen to music using gnome-listen, but not when using Amarok using Xine as the backend.
Please help me stop the clipping.
ProblemType: Bug
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/dsp', '/dev/snd/
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xfe020000 irq 17'
Mixer name : 'Analog Devices AD1984'
Components : 'HDA:11d41984,
Controls : 30
Simple ctrls : 19
DistroRelease: Ubuntu 9.04
Package: alsa-base 1.0.18.
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: alsa-driver
Uname: Linux 2.6.28-11-generic x86_64
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xfe020000 irq 17'
Mixer name : 'Analog Devices AD1984'
Components : 'HDA:11d41984,
Controls : 29
Simple ctrls : 18
Card29.Amixer.info:
Card hw:29 'ThinkPadEC'
Mixer name : 'ThinkPad EC 7KHT24WW-1.08'
Components : ''
Controls : 1
Simple ctrls : 1
Card29.
Simple mixer control 'Console',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
Package: alsa-driver (not installed)
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSign
Tags: lucid
Uname: Linux 2.6.32-21-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 11/14/2008
dmi.bios.vendor: LENOVO
dmi.bios.version: 7LETC5WW (2.25 )
dmi.board.name: 7732CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 7732CTO
dmi.product.
dmi.sys.vendor: LENOVO
Related branches
tags: | added: verification-done-quantal |
I have managed to make the problem disappear. And reappear.
On a fresh reboot, if I go to menu->System- >Preferences- >Sound, set one of the "Sound Playback" drop boxes to be the ALSA digital output, and hit the "test" button, the sine wave is usually (if not always) distorted. If I run alsamixer in a terminal while a distorted sound is playing and mute and then unmute the digital output, the distortion disappears. In general, I can make the described distortion disappear using this method. For example when I run gnome-listen and the loud parts in the music are incorrectly distorting, muting/unmuting the digital output fixes it.
As long as the sound remains continuous, the distortion stays away. However, if I stop sound playback, and start it up later, the distortion sometimes reappears. In the sound preferences panel, this happens after an indeterminate number of hitting "test" followed by "okay". Distortion also reappears if I "fix" the disortion issue while playing test sounds in the sound settings dialog, then close that dialog and start something playing using gnome-listen, it is always distorted.
Also, once I use the sound prefs dialog or listen to "make" my sound distorted, sound playback through "aplay" is also distorted. If I then mute/unmute the digital output, "aplay" will then play undistorted sound. Seems like this proves that this is an ALSA problem, no?
So as of right now, loud passages of sound audibly distort, and the only way to "fix" it is to mute/unmute the digital output. Help?