lpib position_fix ssid quirk addition breaks existing hardware

Bug #572146 reported by Martin Wolf
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Invalid
Medium
Daniel T Chen

Bug Description

Description: Ubuntu 10.04 LTS
Release: 10.04
yesterday i upgraded to 10.04
and now my microphone records together with my voice a constant crackling.
this only happens if i used the shipped kernel 2.6.32-21. if i boot the latest
9.10 kernel (2.6.31-21) the recording works in normal quality.

the microphone is connected to an onboard hda intel card.
i also have an audigy 2 in my system. also my webcam has a mono usb soundcard.

lspci:
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation GT200 [GeForce GTX 260] (rev a1)
03:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
03:00.1 IDE interface: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
05:00.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
05:00.1 Input device controller: Creative Labs SB Audigy Game Port (rev 04)
05:00.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
05:06.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)

affects: ubuntu → alsa-driver (Ubuntu)
Revision history for this message
markku.vesala (markku-vesala) wrote :

HOW TO GET FIXEX NO SOUND IS NO FUN I NEED CRISPY SOUND SYSTEM 5.1

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

i updated to the most recent kernel (2.6.32-22) but the problem is still present.
(i did also a fresh installation of 10.04 to eliminate upgrade problems)
the sound works but random noise kills the sound recording quality.
i would really appreciate if someone would take this bug and help me.

amixer settings:

http://pastebin.com/hdSnWdM3

description: updated
description: updated
Revision history for this message
Daniel T Chen (crimsun) wrote :

Hi Martin, we'll need to step through a multiprocess here if you're willing to bear with me.

Firstly, please try installing linux-alsa-driver-modules-$(uname -r) from ppa:ubuntu-audio-dev and rebooting. If that resolves the issue, I have a good idea which change was effective.

Secondly, if that package above was insufficient, please *purge* it (linux-alsa-driver-modules*) and add the following line to /etc/modprobe.d/alsa-base.conf (create if necessary), then reboot:

options snd-hda-intel position_fix=1

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

hello again,
sorry for the delay.

i tested both options but both did not help with my problem.
i still get a choppy recording quality.
im sure i did the changes correctly.
i was able to install and purge the package for my 2.6.32.22 kernel
and also edited the file with nano and put the "options" in the last line.

the only thing i remember that was not 100% smooth was the purge
because it mentioned that the update folder could not be deleted
because it is not empty.

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

the bug is still present with recent kernel.
i even removed my audigy2 in the meantime but the crackling on the microphoneport is still there.
it would be really nice if someone give me a hand.

Revision history for this message
mikewhatever (mikewhatever) wrote :

Same issue here, though on different hardware.
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 3: INTEL HDMI [INTEL HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Revision history for this message
AceLan Kao (acelankao) wrote :

Martin,

Could you use apport-collect to upload more logs here, thanks.
   apport-collect 572146

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

im unable to complete the task, launchpad claims that something does wrong after my login on the website.

Revision history for this message
AceLan Kao (acelankao) wrote :

Martin,

Could you use the following script to collect your audio info and upload the result here?
   http://www.alsa-project.org/alsa-info.sh

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

this is the alsa-info file.

Revision history for this message
El_Presidente (natoforce) wrote :

tested with 2.6.32-24 kernel, same error.

do you need more info?

Revision history for this message
David Henningsson (diwic) wrote :

@Martin, you said that it was working under Karmic. Is it possible for you to post an alsa-info being run from Karmic as well? We might be able to figure out the difference between them then. Thanks!

Revision history for this message
El_Presidente (natoforce) wrote :

*sigh* ;)

yes i will reinstall karmic ;)

Revision history for this message
David Henningsson (diwic) wrote :

@El_Presidente: are you the same person as Martin? Anyway, you don't have to install it - just run it from a Live-CD.

Revision history for this message
El_Presidente (natoforce) wrote :

yup i am, will try the live-cd

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

ubuntu@ubuntu:~$ uname -r
2.6.31-14-generic

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

i tested it with the live-cd and it works flawlessly.
sorry for using my "old account" it seems i accidentally logged in with the wrong email address.

Revision history for this message
David Henningsson (diwic) wrote :

Thanks!
I think this could be position_fix and/or enable_msi related. Since you've tried position_fix=1 already (according to #3), could you instead try to add the following to /etc/modprobe.d/alsa-base.conf:

options snd-hda-intel enable_msi=1

and reboot, see if it helps, then

options snd-hda-intel enable_msi=0

and reboot and see if it helps?

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

im sorry but it didnt help.

at first i tried:
options snd-hda-intel enable_msi=1

then:
options snd-hda-intel enable_msi=0

after that:
options snd-hda-intel enable_msi=1
options snd-hda-intel position_fix=1

and in the end
options snd-hda-intel position_fix=1
options snd-hda-intel enable_msi=0

but none of these quirks helped.

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

alsa-info file for ubuntu 10.10 alpha
(the error is also present here)

i really hope we find a solution for this, since im unable to use
my ubuntu installation now for more than 4 months ...

Revision history for this message
David Henningsson (diwic) wrote :

@Martin, if you use the following command to record:

pasuspender -- arecord -D plughw:Intel -f cd

...is recording still crackling?

I'm afraid we're about to run out of easy debug options - unless somebody here sees something that I don't. Harder debug options include
1) http://www.alsa-project.org/main/index.php/XRUN_Debug and trying to understand what comes out of it.
2) Bisecting to find out what package, and ultimately commit, that is causing the problem. (E g running Karmic with a Lucid kernel)

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

unfortunately it did not help.
i used this line according to your suggestions.
pasuspender -- arecord -D plughw:Intel -f cd test.wav

there is still a noise inside the file.

i did a lot of bisecting for several problems in wine so i know how this works.
but a little assistance would be nice.

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

does it have to be a lucid kernel on karmic or is the other way round also possible?
since if you remember my first post it worked with 2.6.31-21 on lucid as well.

Revision history for this message
David Henningsson (diwic) wrote :

Right, so first thing would be to try a mainline build: https://wiki.ubuntu.com/Kernel/MainlineBuilds

Assuming it is there, you can then use "git bisect" to find out the bad commit, see here: http://www.kernel.org/pub/software/scm/git/docs/v1.3.3/howto/isolate-bugs-with-bisect.txt

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

how do i start from the self compiled kernel?
is there a script to put the kernel in grub and install it?

Revision history for this message
David Henningsson (diwic) wrote :

Martin, would you mind asking in #ubuntu-kernel? There are people there who are more qualified than I when it comes to compiling and installing kernels and I hope they have time to answer you.

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

i tried now 5 hours to get a bootable kernel. i really dont know what goes wrong ...
i have ext4, ahci and the intel controller built in but ubuntu claims it does not find /
(i used config-2.6.32-24)

would it be possible to get a working config with less "modules" since it takes ages to build
the standard ubuntu config.

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

finally i was able to create a working config. i found out that the error is not present in 2.6.32 but in 2.6.32.21
now im bisecting between these two versions.

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

git bisect visualize of the last bisection step

Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

git bisect visualize

Revision history for this message
Daniel T Chen (crimsun) wrote :

18:53 < crimsun_> El_Presidente: well, reverting that commit breaks the original reporter's
18:53 < crimsun_> El_Presidente: so, there is no good way to go about this.
18:53 < crimsun_> El_Presidente: just use position_fix=0

Changed in alsa-driver (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → Medium
assignee: nobody → Daniel T Chen (crimsun)
summary: - crackling sound from microphone with 2.6.32-21 kernel
+ lpib position_fix ssid quirk addition breaks existing hardware
Revision history for this message
Martin Wolf (mwolf-adiumentum) wrote :

position_fix=2 fixes the problem

the quirk added for ma-770-ud3 is for ALC888
my mainboard P35-ds4 has an ALC889A onboard.

Revision history for this message
Alessio Gaeta (meden) wrote :

I own an ASrock ConRoeXFire-eSATA2 with a Realtec ALC888 and I had the same crackling problem (very annoying for audio calls, codec gets crazy...). Using the fix by Martin Wolf (comment #32) solved the problem.

Revision history for this message
Cachapa (cachapa) wrote :

I have a Sony VAIO S-series (S12C5E).

The fix in comment #32 also fixed the problem for me.

Revision history for this message
gcc (chris+ubuntu-qwirx) wrote :

Also affects Jay's laptop, with horrible crackling sound making Skype chats unusable. The fix in comment #32 (position_fix=2) worked for us as well.

jay@rootworks-M90:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation G71 [Quadro FX 2500M] (rev a1)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express (rev 02)
0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in alsa-driver (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This issue has sat incomplete for more than 60 days now. I'm going to close it as invalid. Please feel free re-open if this is still an issue for you. Thank you.

Changed in alsa-driver (Ubuntu):
status: Incomplete → Invalid
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.