1412:1712 Crackling Sound on PCI card

Bug #814426 reported by Erik Ackermann
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
New
Undecided
Unassigned
linux (Ubuntu)
Triaged
Low
Unassigned

Bug Description

On my CyberpowerPC Gamer Xtreme 1030 desktop running up-to-date Natty Narwhal 64bit on fresh install, there is a variable crackling overlaying the sound on my card when any sound is playing. It is invariable to the output, as looping the same clip does not cause crackling to loop. The output of sudo aplay -l is:

card 0: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Any idea's on what this is? Occurs with pulseaudio on or off (even with speaker-test), and only on my Delta 1010LT sound card. Jaunty livecd plays audio without crackles, while Natty livecd produces crackles.

WORKAROUND: intel_idle.max_cstate=3

WORKAROUND: nohz=off

---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: erik 2464 F.... pulseaudio
 /dev/snd/seq: erik 1737 F.... qjackctl
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'M1010LT'/'M Audio Delta 1010LT at 0xdf00, irq 18'
   Mixer name : 'ICE1712 - multitrack'
   Components : ''
   Controls : 85
   Simple ctrls : 57
DistroRelease: Ubuntu 11.04
HibernationDevice: RESUME=UUID=4362b0a7-9c03-48cc-a343-67976cd430cb
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. P55M-UD2
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-2.6.38-8-lowlatency root=UUID=903ba33e-b5c1-4749-ab76-e2f85a408b31 ro vga=769 quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-8.42~ppa2-lowlatency 2.6.38.2
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-8-lowlatency N/A
 linux-backports-modules-2.6.38-8-lowlatency N/A
 linux-firmware 1.52
RfKill:

Tags: natty
Uname: Linux 2.6.38-8-lowlatency x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin audio cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 06/23/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F11
dmi.board.name: P55M-UD2
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF11:bd06/23/2010:svnGigabyteTechnologyCo.,Ltd.:pnP55M-UD2:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP55M-UD2:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: P55M-UD2
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/controlC0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/midiC0D0', '/dev/snd/by-path', '/dev/snd/by-id', '/dev/snd/controlC1', '/dev/snd/pcmC1D0c', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'M1010LT'/'M Audio Delta 1010LT at 0xdf00, irq 18'
   Mixer name : 'ICE1712 - multitrack'
   Components : ''
   Controls : 85
   Simple ctrls : 57
Card1.Amixer.info:
 Card hw:1 'Camera'/'Vimicro Corp. Venus USB2.0 Camera at usb-0000:00:1a.7-4, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB0ac8:3420'
   Controls : 2
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'Mic',0
   Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
   Capture channels: Mono
   Limits: Capture 0 - 48
   Mono: Capture 37 [77%] [on]
CasperVersion: 1.272
DistroRelease: Ubuntu 11.10
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
LiveMediaBuild: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110801)
MachineType: Gigabyte Technology Co., Ltd. P55M-UD2
Package: linux (not installed)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: file=/cdrom/preseed/hostname.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-7-generic N/A
 linux-backports-modules-3.0.0-7-generic N/A
 linux-firmware 1.56
RfKill:

Tags: oneiric running-unity
Uname: Linux 3.0.0-7-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 06/23/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F11
dmi.board.name: P55M-UD2
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF11:bd06/23/2010:svnGigabyteTechnologyCo.,Ltd.:pnP55M-UD2:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP55M-UD2:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: P55M-UD2
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
---
ApportVersion: 2.12.6-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: ubuntu 3505 F.... pulseaudio
 /dev/snd/controlC2: ubuntu 3505 F.... pulseaudio
 /dev/snd/controlC3: ubuntu 3505 F.... pulseaudio
 /dev/snd/controlC0: ubuntu 3505 F.... pulseaudio
CasperVersion: 1.336ubuntu1
DistroRelease: Ubuntu 14.04
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
LiveMediaBuild: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20131111)
MachineType: Gigabyte Technology Co., Ltd. P55M-UD2
MarkForUpload: True
Package: linux (not installed)
ProcFB: 0 nouveaufb
ProcKernelCmdLine: initrd=/casper/initrd.lz file=/cdrom/preseed/username.seed boot=casper quiet splash -- BOOT_IMAGE=/casper/vmlinuz.efi
ProcVersionSignature: Ubuntu 3.12.0-2.5-generic 3.12.0
RelatedPackageVersions:
 linux-restricted-modules-3.12.0-2-generic N/A
 linux-backports-modules-3.12.0-2-generic N/A
 linux-firmware 1.117
RfKill:

Tags: trusty
Uname: Linux 3.12.0-2-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 06/23/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F11
dmi.board.name: P55M-UD2
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF11:bd06/23/2010:svnGigabyteTechnologyCo.,Ltd.:pnP55M-UD2:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP55M-UD2:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: P55M-UD2
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

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 814426

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
tags: added: natty
Revision history for this message
Erik Ackermann (domohawk) wrote : AcpiTables.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Erik Ackermann (domohawk) wrote : AlsaDevices.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : BootDmesg.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Lspci.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Lsusb.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : PciMultimedia.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcCpuinfo_.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcModules.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : UdevDb.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : UdevLog.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Erik Ackermann (domohawk) wrote : Re: Natty Narwhal Crackling Sound

I think I have found a workaround, by setting nohz=off. Will test more with the recording functionality of my card later, but so far have been unable to reproduce crackles (which happen constantly in all other settings tried).

I think this a manifestation of this kernel bug: https://bugzilla.kernel.org/show_bug.cgi?id=14426

I also see CE: hpet increasing min_delta_ns messages, but I haven't seen them higher than 22500. Until now I haven't really been looking for them, but will leave system on with nohz enabled to see if they stack up.

hpet=disable, and likewise acpi=off, greatly reduces the volume and consistency of crackles, but they are still there.

Are there any suggestions you have for identifying the bug? Should this bug be closed in favor of a bug against kernel? I will test a bit more in the coming days to see if I can repro with nohz=off.

Revision history for this message
Joe Burgess (joemburgess) wrote :

added bugwatch

Changed in linux:
importance: Unknown → Medium
status: Unknown → In Progress
Revision history for this message
Joe Burgess (joemburgess) wrote :

Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/daily/current/ . If the issue remains, please run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 814426

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

Revision history for this message
Erik Ackermann (domohawk) wrote : AcpiTables.txt

apport information

tags: added: oneiric running-unity
description: updated
Revision history for this message
Erik Ackermann (domohawk) wrote : AlsaDevices.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ArecordDevices.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : BootDmesg.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Lspci.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Lsusb.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : PciMultimedia.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcModules.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : UdevDb.gz

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : UdevLog.gz

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : WifiSyslog.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Re: Natty Narwhal Crackling Sound

Problem still exists on today's daily ISO build, apport information above.

Linux ubuntu 3.0.0-7-generic #9-Ubuntu SMP Fri Jul 29 21:27:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Erik Ackermann (domohawk) wrote :

Installed mainline kernel 3.0.0-0300 (v3.0-oneiric), but unable to get it to boot on Natty, even with 'single acpi=off'. (Syslog attached)

Would it be helpful to try the latest Natty mainline kernel (v2.6.38.8-natty/), or is there an easy way to boot the daily ISO live-cd with the mainline kernel (off /boot maybe), without installing ocelot?

Revision history for this message
Joe Burgess (joemburgess) wrote :

Erik,

Try the latest Natty mainline kernel please.

Thanks.

Revision history for this message
Erik Ackermann (domohawk) wrote :

Tested the latest Natty mainline kernel, and the issue is present. There is no needs-upstream-testing tag so leaving as is.

Linux balthasaar 2.6.38-02063808-generic #201106040910 SMP Sat Jun 4 09:13:01 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in linux:
status: In Progress → Fix Released
summary: - Natty Narwhal Crackling Sound
+ Crackling Sound on PCI card
Revision history for this message
Erik Ackermann (domohawk) wrote : Re: Crackling Sound on PCI card

Just did a fresh install of Quantal and this issue is still present, so thought I'd update the bug.

I am not seeing the "hpet increasing min_delta_ns" from the referenced bug, so while perhaps related it seems to be a different issue.

To reproduce:
    speaker-test -t sine -f 100

There will be intermittent periods of distortion in the left (0) channel, that sounds like a sort of mechanical mincing / comb filter. I could provide an audio sample if that would help.

The "nohz=off" boot param workaround still works.

tags: added: quantal
Revision history for this message
penalvch (penalvch) wrote :

Erik Ackermann, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available (not the daily folder, but the one all the way at the bottom) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.12

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: latest-bios-f11 needs-upstream-testing
description: updated
Changed in linux (Ubuntu):
importance: Medium → Low
status: Triaged → Incomplete
Revision history for this message
Erik Ackermann (domohawk) wrote :

The issue is still present on a fresh install of Saucy, and also just now tested with the daily livecd of Trusty with the same results. The "nohz=off" workaround still works in both cases.

I will upload the apport information for the Trusty daily livecd shortly.

I am uploading a direct line recording I just made of "speaker-test -c2 -tsine -f80" which shows the problem. The best way I can describe it is an intermittent "mincing" in the left channel only.

Revision history for this message
Erik Ackermann (domohawk) wrote : AlsaInfo.txt

apport information

tags: added: trusty
description: updated
Revision history for this message
Erik Ackermann (domohawk) wrote : BootDmesg.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : CRDA.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Lspci.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : Lsusb.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcEnviron.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : ProcModules.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : PulseList.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : UdevDb.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : UdevLog.txt

apport information

Revision history for this message
Erik Ackermann (domohawk) wrote : WifiSyslog.txt

apport information

penalvch (penalvch)
tags: added: sauc ynatty
removed: natty
tags: added: natty saucy
removed: sauc ynatty
tags: added: regression-release
penalvch (penalvch)
summary: - Crackling Sound on PCI card
+ 1412:1712 Crackling Sound on PCI card
Changed in linux:
importance: Medium → Undecided
status: Fix Released → New
Revision history for this message
Erik Ackermann (domohawk) wrote :

Tested with mainline kernel 3.12.0-031200-generic #201311071835 SMP x86_64, which also exhibits the problem. Updated tags. nohz=off workaround still works.

tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-v3.12
removed: needs-upstream-testing
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Erik Ackermann, the next step would be to fully commit bisect from Jaunty to Natty, in order to identify the offending commit. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection ?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Erik Ackermann (domohawk) wrote :

Okay so I think I mostly have a handle on the issue.

The hardware problem is caused by the cpu running the sound card driver entering the c6 idle state. Anecdotally the card does not appear to be able to handle the latency involved in waking from that state. Currently, both intel_idle and acpi_idle cpuidle drivers handle this poorly wrt to this particular card/motherboard combo.

intel_idle: chronologically the first “break” occurred at commit 2671717265ae6e720a9ba5f13fbec3a718983b65 which switched the default cpuidle driver for intel machines from acpi_idle to intel_idle. According to https://lkml.org/lkml/2010/7/22/511 it seems the correct solution here is register idle constraints explicitly via PM_QOS in the linux device driver, my guess is in snd_ice1712.

acpi_idle: the situation here is much less clear to me. The break here occurred at 718be4aaf3613cf7c2d097f925abc3d3553c0605 fixing bug 15886. That bug seems highly related since I have the same motherboard. I suspect the fault here lies in the bios, although since intel_idle was made the default before this commit, any bug introduced here would likely go unnoticed.

I have various turbostat logs but will save those for the specific bugs I file.

Also, the current “best workaround” is intel_idle.max_cstate=3. The reason nohz=off works is that it disables all cstates, but as long as we limit to c3 there is no apparent problem.

Revision history for this message
Erik Ackermann (domohawk) wrote :

I should note that by bug 15886 I was referring to https://bugzilla.kernel.org/show_bug.cgi?id=15886 and not a launchpad bug

Revision history for this message
penalvch (penalvch) wrote :

Erik Ackermann, thank you for performing the requested bisect. The issue you are reporting is an upstream one. Could you please report this problem through the appropriate channel by following the instructions _verbatim_ at https://wiki.ubuntu.com/Bugs/Upstream/kernel ?

Please provide a direct URL to your e-mail to the mailing list once you have made it so that it may be tracked.

Thank you for your understanding.

description: updated
tags: added: bisect-done
Changed in linux (Ubuntu):
status: Incomplete → Triaged
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.