2005-02-02 02:35:13

by Timothy Normand Miller

[permalink] [raw]
Subject: ALSA HELP: Crackling and popping noises with via82xx

I've mentioned this problem before. It seemed to go away around the
2.6.8 timeframe, but when I started using 2.6.9, it came back. I'm
using 2.6.10, and it's still happening.

Basically, I get random poppling and crackling noises out of my
speakers. Sometimes it's silent, and sometimes, it crackles and pops
for minutes at a time. It's really disturbing, really, because it
happens suddenly, sometimes very loudly, and usually when I'm
concentrating. :)

Normal sound playback works, but sometimes, it's distorted. Also note
that I'm having the same problems both on my KT400 board (Athlon XP)
at home and worse problems with the same driver on a Dell box at work
with a P4 and a chipset I'll have to tell you about when I get to work
if you need to know.

Here's some background from my earlier posts:

http://lkml.org/lkml/2004/7/5/2
http://www.ussg.iu.edu/hypermail/linux/kernel/0407.2/0064.html
http://forums.gentoo.org/viewtopic.php?t=193711

I have an ABIT KD7, which has the KT400 chipset. I have determined
that the applicable
driver is "via82xx". Note that the links mention MIDI. Don't get
confused by that. I care ONLY about getting rid of the noises.

lspci says:

0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600
AGP] Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
0000:00:0b.0 RAID bus controller: 3ware Inc 3ware Inc 3ware
7xxx/8xxx-series PATA/SATA-RAID (rev 01)
0000:00:0d.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro
100] (rev 0c)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102
[Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV280
[Radeon 9200 SE] (rev 01)
0000:01:00.1 Display controller: ATI Technologies Inc RV280 [Radeon
9200 SE] (Secondary) (rev 01)


Here are the uncommented bits of /etc/modules.d/alsa:

options snd device_mode=0666
alias snd-card-0 snd-via82xx
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
options snd cards_limit=1


Please help!


2005-02-02 03:05:32

by Lincoln Dale

[permalink] [raw]
Subject: Re: ALSA HELP: Crackling and popping noises with via82xx

At 01:34 PM 2/02/2005, Timothy Miller wrote:
>I've mentioned this problem before. It seemed to go away around the
>2.6.8 timeframe, but when I started using 2.6.9, it came back. I'm
>using 2.6.10, and it's still happening.

almost identical system here, other than i'm using an ASUS A7V600
motherboard but otherwise have identical chipset, graphics card.
(although the ASUS board has a rev60 version of the sound driver).

no problems with audio crackling at all, using 2.6.10 and 2.6.1-rc2-mm2
with audio compiled into the kernel (not using modules for OSS/ALSA).

perhaps the interrupt is shared with some other device?
perhaps your speakers are dying?

this is my mythtv box so i'd certainly notice if the audio was bung.

[root@spam root]# uname -a
Linux spam 2.6.10ltd1 #1 Sun Jan 30 21:06:01 EST 2005 i686 athlon i386
GNU/Linux

[root@spam root]# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host
Bridge (rev 80)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
00:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture
(rev 11)
00:0e.0 Multimedia video controller: Conexant Winfast TV2000 XP (rev 05)
00:0e.2 Multimedia controller: Conexant: Unknown device 8802 (rev 05)
00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID
Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [K8T800 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
00:13.0 Multimedia video controller: Brooktree Corporation Bt848 Video
Capture (rev 12)
01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200
SE] (rev 01)
01:00.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200 SE]
(Secondary) (rev 01)

[root@spam root]# cat /proc/interrupts
CPU0
0: 160440190 IO-APIC-edge timer
1: 6157 IO-APIC-edge i8042
7: 118047 IO-APIC-edge parport0
9: 0 IO-APIC-level acpi
12: 165567 IO-APIC-edge i8042
14: 403308 IO-APIC-edge ide0
15: 1685009 IO-APIC-edge ide1
16: 59442009 IO-APIC-level bttv0, bt878
17: 0 IO-APIC-level cx88[0], cx88[0]
18: 3 IO-APIC-level bttv1
21: 37 IO-APIC-level ehci_hcd, uhci_hcd, uhci_hcd, uhci_hcd,
uhci_hcd
22: 48672 IO-APIC-level VIA8237
23: 139365 IO-APIC-level eth0


cheers,

lincoln.

2005-02-02 03:55:10

by Timothy Normand Miller

[permalink] [raw]
Subject: Re: ALSA HELP: Crackling and popping noises with via82xx

On Wed, 02 Feb 2005 13:55:23 +1100, Lincoln Dale <[email protected]> wrote:
> At 01:34 PM 2/02/2005, Timothy Miller wrote:
> >I've mentioned this problem before. It seemed to go away around the
> >2.6.8 timeframe, but when I started using 2.6.9, it came back. I'm
> >using 2.6.10, and it's still happening.
>
> almost identical system here, other than i'm using an ASUS A7V600
> motherboard but otherwise have identical chipset, graphics card.
> (although the ASUS board has a rev60 version of the sound driver).

Thanks for responding. I may have neglected to mention that I'm not
subscribed, in case anyone else wants to respond.

>
> no problems with audio crackling at all, using 2.6.10 and 2.6.1-rc2-mm2
> with audio compiled into the kernel (not using modules for OSS/ALSA).
>
> perhaps the interrupt is shared with some other device?
> perhaps your speakers are dying?

Definitely not. I can use this same box for days on end in Windows,
and everything works great (well, sound anyway). I boot Linux and it
makes noises.

>
> this is my mythtv box so i'd certainly notice if the audio was bung.
>
> [root@spam root]# uname -a
> Linux spam 2.6.10ltd1 #1 Sun Jan 30 21:06:01 EST 2005 i686 athlon i386
> GNU/Linux
>
> [root@spam root]# lspci
> 00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host
> Bridge (rev 80)
> 00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
> 00:0a.0 Multimedia video controller: Brooktree Corporation Bt878 Video
> Capture (rev 11)
> 00:0a.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture
> (rev 11)
> 00:0e.0 Multimedia video controller: Conexant Winfast TV2000 XP (rev 05)
> 00:0e.2 Multimedia controller: Conexant: Unknown device 8802 (rev 05)
> 00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID
> Controller (rev 80)
> 00:0f.1 IDE interface: VIA Technologies, Inc.
> VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
> 00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
> Controller (rev 81)
> 00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
> Controller (rev 81)
> 00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
> Controller (rev 81)
> 00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
> Controller (rev 81)
> 00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
> 00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [K8T800 South]
> 00:11.5 Multimedia audio controller: VIA Technologies, Inc.
> VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
> 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
> 00:13.0 Multimedia video controller: Brooktree Corporation Bt848 Video
> Capture (rev 12)
> 01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200
> SE] (rev 01)
> 01:00.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200 SE]
> (Secondary) (rev 01)
>
> [root@spam root]# cat /proc/interrupts
> CPU0
> 0: 160440190 IO-APIC-edge timer
> 1: 6157 IO-APIC-edge i8042
> 7: 118047 IO-APIC-edge parport0
> 9: 0 IO-APIC-level acpi
> 12: 165567 IO-APIC-edge i8042
> 14: 403308 IO-APIC-edge ide0
> 15: 1685009 IO-APIC-edge ide1
> 16: 59442009 IO-APIC-level bttv0, bt878
> 17: 0 IO-APIC-level cx88[0], cx88[0]
> 18: 3 IO-APIC-level bttv1
> 21: 37 IO-APIC-level ehci_hcd, uhci_hcd, uhci_hcd, uhci_hcd,
> uhci_hcd
> 22: 48672 IO-APIC-level VIA8237
> 23: 139365 IO-APIC-level eth0
>
> cheers,
>
> lincoln.
>

Here's my /proc/interrupts:

CPU0
0: 9862457 IO-APIC-edge timer
1: 17739 IO-APIC-edge i8042
7: 0 IO-APIC-edge parport0
9: 0 IO-APIC-level acpi
12: 259939 IO-APIC-edge i8042
14: 7 IO-APIC-edge ide0
15: 22 IO-APIC-edge ide1
169: 369851 IO-APIC-level radeon@pci:0000:01:00.0
177: 51422 IO-APIC-level 3w-xxxx, eth0
193: 3165 IO-APIC-level VIA8233
NMI: 0
LOC: 9862333
ERR: 0
MIS: 0

2005-02-02 06:05:12

by ross

[permalink] [raw]
Subject: Re: ALSA HELP: Crackling and popping noises with via82xx

On Tue, Feb 01, 2005 at 09:34:59PM -0500, Timothy Miller wrote:
> Basically, I get random poppling and crackling noises out of my
> speakers. Sometimes it's silent, and sometimes, it crackles and pops
> for minutes at a time. It's really disturbing, really, because it
> happens suddenly, sometimes very loudly, and usually when I'm
> concentrating. :)

The few times I've used the via82xx on my mobo (ASUS KT400, forget the
model number), I've run into some applications that behave similarly.
I never got it randomly - it always happened when an app (ie, xmms)
would open the device and think it was in 44.1kHz when it was really
running at 48kHz.

I do music work on my box, so I've gotta stick with ALSA, but I've
found for common stuff the ALSA interfaces suck pretty bad - nothing
seems to know how to open the devices properly. As a result, I mostly
use OSS emulation for non-music related things - Frank Barknecht has
info at http://alsa.opensrc.org/index.php?page=DmixPlugin on setting
this up. Runing all my audio through that fixes the problem, since it
just resample everything to the running rate.

--
Ross Vandegrift
[email protected]

"The good Christian should beware of mathematicians, and all those who
make empty prophecies. The danger already exists that the mathematicians
have made a covenant with the devil to darken the spirit and to confine
man in the bonds of Hell."
--St. Augustine, De Genesi ad Litteram, Book II, xviii, 37

2005-02-02 06:38:16

by Tomasz Torcz

[permalink] [raw]
Subject: Re: ALSA HELP: Crackling and popping noises with via82xx

On Tue, Feb 01, 2005 at 09:34:59PM -0500, Timothy Miller wrote:
> Basically, I get random poppling and crackling noises out of my
> speakers. Sometimes it's silent, and sometimes, it crackles and pops
> for minutes at a time. It's really disturbing, really, because it
> happens suddenly, sometimes very loudly, and usually when I'm
> concentrating. :)

Try to play with sound card's latency timer using setpci. For me,
that's the only way to silent unwanted pops on ens1370. It may work
with via, too.

Magic command is: /sbin/setpci -v -s 01:09.0 latency_timer=40
You have to substitute 01:09.0 with your card's PCI location and play
around with latency_time value.

--
Tomasz Torcz "Never underestimate the bandwidth of a station
[email protected] wagon filled with backup tapes." -- Jim Gray

2005-02-02 10:28:05

by Takashi Iwai

[permalink] [raw]
Subject: Re: ALSA HELP: Crackling and popping noises with via82xx

At Tue, 1 Feb 2005 21:34:59 -0500,
Timothy Miller wrote:
>
> I've mentioned this problem before. It seemed to go away around the
> 2.6.8 timeframe, but when I started using 2.6.9, it came back. I'm
> using 2.6.10, and it's still happening.
>
> Basically, I get random poppling and crackling noises out of my
> speakers. Sometimes it's silent, and sometimes, it crackles and pops
> for minutes at a time. It's really disturbing, really, because it
> happens suddenly, sometimes very loudly, and usually when I'm
> concentrating. :)

Check the kernel message whether the driver mentions about DXS
channels. If yes, try to add dxs_support=4 (or dxs_support=1) module
option. See ALSA-Configuration.txt for details.


Takashi