Skip to contentSkip to conversation

linux 2.6.* sound problems

BUG 2579 Patrizio Bassi 6 participants 7 messages Oct 31, 2005 – Nov 2, 2005

lore
Share & tools
lore
#0 lore raw

starting from 2.6.0 (2 years ago) i have the following bug.

and https://bugtrack.alsa-project.org/alsa-bug/view.php?id=230

fast summary:
when playing audio and using a bit the harddisk (i.e. md5sum of a 200mb file)
i hear noises, related to disk activity. more hd is used, more chicks and ZZZZ noises happen.

linux 2.4.x and windows has no problems, perfect.
tried module/standalone alsa drivers.

Please fix that...2 years' bug!
Ready to test any patch/solution.

#1 lore raw
Quoted 1 line · Patrizio Bassi

starting from 2.6.0 (2 years ago) i have the following bug.

Well, the problem probably started before then.

Quoted 3 lines

Please fix that...2 years' bug!

Speaking as a programmer, that's not a lot to go off of to find the bug. I think everyone would agree it's a bug, but we'll need more help from you.

Quoted 4 lines

fast summary:
when playing audio and using a bit the harddisk (i.e. md5sum of a 200mb file) i hear noises, related to disk activity. more hd is used, more chicks and ZZZZ noises happen.

Does hdparm -i (or -I) show differences between the 2.4 kernels and 2.6? 2.6 has new IDE drivers, and so perhaps your system isn't using the best driver any more.

You may also want to compare lspci -vv of your IDE controller and sound card between 2.4 and 2.6, and see if there are any differences.

No guarantees, but this is where you'd start.

Quoted 1 line

Ready to test any patch/solution.

Try that. If nothing obvious appears in the examination, you may want to try the 2.6.14-rt1 patchset from Ingo Molnar. It's designed to reduce latency in the kernel, but also has a latency tracer that may be particularly useful for your problem. (Assuming it's a latency issue, and not a hardware misconfiguration due to 2.6 doing something wrong.)

Ray

#2 lore raw
Quoted 11 lines · Ray Lee
Quoted 1 line · Patrizio Bassi

starting from 2.6.0 (2 years ago) i have the following bug.

Well, the problem probably started before then.

Quoted 1 line
Quoted 13 lines
Quoted 1 line

Please fix that...2 years' bug!

Speaking as a programmer, that's not a lot to go off of to find the bug. I think everyone would agree it's a bug, but we'll need more help from you.

Quoted 4 lines

fast summary:
when playing audio and using a bit the harddisk (i.e. md5sum of a 200mb file) i hear noises, related to disk activity. more hd is used, more chicks and ZZZZ noises happen.

This to me sounds more like an interference issue, something I have seen on many laptops (I used to repair them in a previous incarnation). It is often referred to as "the 50Hz/60Hz hum" or the "ground loop" see any of these:

-http://www.pcmus.com/power-grounding.htm -http://en.wikipedia.org/wiki/Ground_loop_%28electricity%29

Signature · 6 lines
Mike Fowler
Registered Linux user: 379787

"I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it"
-PULP 'Glory Days'
#3 lore raw
In reply to Patrizio Bassi
Quoted 5 lines · Patrizio Bassi

starting from 2.6.0 (2 years ago) i have the following bug.

and https://bugtrack.alsa-project.org/alsa-bug/view.php?id=230

Quoted 8 lines

fast summary:
when playing audio and using a bit the harddisk (i.e. md5sum of a 200mb file)
i hear noises, related to disk activity. more hd is used, more chicks and ZZZZ noises happen.

linux 2.4.x and windows has no problems, perfect.
tried module/standalone alsa drivers.

Your problem is a "singing capacitor", caused by cheap motherboard components. The problem appeared in 2.6.0 because that's when the timer frequency changed from 100HZ to 1000HZ.

Starting with 2.6.14 you can work around this by compiling with HZ set to 250 or 100. But it's fundamentally a hardware problem.

Lee

#4 lore raw
In reply to Patrizio Bassi
Quoted 6 lines · Patrizio Bassi

when playing audio and using a bit the harddisk (i.e. md5sum of a 200mb file)
i hear noises, related to disk activity. more hd is used, more chicks and ZZZZ noises happen.

linux 2.4.x and windows has no problems, perfect.

I remeber similar problems with es1370 and OSS/ALSA driver. OSS were
fine, ALSA produced noise.
It turned to be PCI latency timer issues. OSS driver changed it's value
to working good values. ALSA didn't touch latency timer, and during hard disk activity sound stuttered.
Got rid of problem by running setpci -d CARD:ID latency_timer=40

Signature · 2 lines
Tomasz Torcz                                                       72->|   80->|
[email protected]                                          72->|   80->|
#5 lore raw

At Mon, 31 Oct 2005 23:10:03 +0100,

Quoted 8 lines · Tomasz Torcz

[1 <text/plain; us-ascii (quoted-printable)>]

Quoted 5 lines · Patrizio Bassi

when playing audio and using a bit the harddisk (i.e. md5sum of a 200mb file)
i hear noises, related to disk activity. more hd is used, more chicks and ZZZZ noises happen.

Quoted 7 lines
Quoted 1 line

linux 2.4.x and windows has no problems, perfect.

I remeber similar problems with es1370 and OSS/ALSA driver. OSS were
fine, ALSA produced noise.
It turned to be PCI latency timer issues. OSS driver changed it's value
to working good values. ALSA didn't touch latency timer, and during hard disk activity sound stuttered.

Hmm, I don't see any relevant code in OSS es137*.c.

Quoted 1 line

Got rid of problem by running setpci -d CARD:ID latency_timer=40

If this helps, the fix would be easy...

Takashi

#6 lore raw

Takashi Iwai ha scritto:

Quoted 28 lines

At Mon, 31 Oct 2005 23:10:03 +0100,

Quoted 9 lines · Tomasz Torcz

[1 <text/plain; us-ascii (quoted-printable)>]

Quoted 5 lines · Patrizio Bassi

when playing audio and using a bit the harddisk (i.e. md5sum of a 200mb file)
i hear noises, related to disk activity. more hd is used, more chicks and ZZZZ noises happen.

Quoted 10 lines
Quoted 3 lines

linux 2.4.x and windows has no problems, perfect.

I remeber similar problems with es1370 and OSS/ALSA driver. OSS were fine, ALSA produced noise.
It turned to be PCI latency timer issues. OSS driver changed it's value to working good values. ALSA didn't touch latency timer, and during hard disk activity sound stuttered.

Hmm, I don't see any relevant code in OSS es137*.c.

Quoted 11 lines
Quoted 3 lines

Got rid of problem by running setpci -d CARD:ID latency_timer=40

If this helps, the fix would be easy...

Takashi

i never talked about OSS.
i wrote the solution i found, check the ml