Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 178549
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Honza Macháček <Hloupy.Honza@centrum.cz>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
emerge.info emerge --info text/plain Honza Macháček 2007-05-15 20:51 0000 4.54 KB Details
lsmod.txt lsmod text/plain Honza Macháček 2007-05-15 20:56 0000 1.45 KB Details
lspci-vv.txt lspci -vv text/plain Honza Macháček 2007-05-15 20:57 0000 1.26 KB Details
amixer.scontents amixer scontents text/plain Honza Macháček 2007-05-15 20:58 0000 4.26 KB Details
emerge.info emerge --info text/plain Honza Macháček 2007-06-19 19:05 0000 4.52 KB Details
lsmod.txt lsmod text/plain Honza Macháček 2007-06-19 19:06 0000 1.78 KB Details
amixer.scontents amixer scontents text/plain Honza Macháček 2007-06-19 19:07 0000 4.25 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 178549 depends on: Show dependency tree
Bug 178549 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-14 19:38 0000
I have Asus A8V-VM motherboard, VIA K8M890 chipset with HDA audio.No matter
what version of kernel I use, playing 2 channel sound has always high-pitch
background noise, like feedback in an amplifier, and attempts to manipulate PCM
during playback silence the card. Multiple (perhaps all) channels must be muted
then in alsamixer, and then unmuted again to resume work.

Interestingly feeding a 6 channel sample up the card works well, I get clear
sound without noise and PCM can be manipulated freely without risk. I use a
simple workaround in mplayer, just adding "-af channels=6" to the command line
(or rather "af=channels=6" to the config file), but it is not so easy with
other programs.

From Bug #166149 I understand that I should report that upstream. Yet I hope at
least my workaround might possibly help to others who have similar problem.

Reproducible: Always

Steps to Reproduce:
Play any 2 channel (stereo) sound sample. Try to change volume.
Actual Results:  
High pitch noise. Manipulating PCM (changing volume) brings about silence.

Expected Results:  
Clear playback, adjustable volume.

6 channel OK.

------- Comment #1 From Jeremy K. Truax 2007-05-15 14:59:36 0000 -------
When you say no matter what kernel you use, I'm guessing you mean 2.6.20 and
2.6.21? Please clarify to make sure.

Could you also post your dmesg, emerge --info, kernel config, lspci, and lsmod?

Also just to see if it might have a resemblence to a similar bug, could you
post the output of alsamixer scontents? 

Thanks

------- Comment #2 From Jeremy K. Truax 2007-05-15 15:04:57 0000 -------
Make that : amixer scontents


not alsamixer

------- Comment #3 From Honza Macháček 2007-05-15 20:48:27 0000 -------
(In reply to comment #1)
> When you say no matter what kernel you use, I'm guessing you mean 2.6.20 and
> 2.6.21? Please clarify to make sure.

  From 2.6.18-gentoo-r6 to 2.6.21.


> Could you also post your dmesg, emerge --info, kernel config, lspci, and lsmod?

  There is nothing interesting in dmesg. lspci says:
00:00.0 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:00.5 PIC: VIA Technologies, Inc. K8M890CE I/O APIC Interrupt Controller
00:00.6 Host bridge: VIA Technologies, Inc. Unknown device 6290
00:00.7 Host bridge: VIA Technologies, Inc. K8M890CE Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890
South]
00:02.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:0f.0 SATA controller: VIA Technologies, Inc. VT8251 AHCI/SATA 4-Port
Controller
00:0f.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 07)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 90)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 90)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 90)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 90)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 90)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8251 PCI to ISA Bridge
00:11.7 Host bridge: VIA Technologies, Inc. VT8251 Ultra VLINK Controller
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7c)
00:13.0 PCI bridge: VIA Technologies, Inc. VT8251 Host Bridge
00:13.1 PCI bridge: VIA Technologies, Inc. VT8251 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address
Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM
Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Miscellaneous Control
02:00.0 VGA compatible controller: ATI Technologies Inc RV370 5B60 [Radeon X300
(PCIE)]
02:00.1 Display controller: ATI Technologies Inc RV370 [Radeon X300SE]
04:01.0 Audio device: VIA Technologies, Inc. VIA High Definition Audio
Controller
05:09.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)

All the other things I'm going to post as attachements.

------- Comment #4 From Honza Macháček 2007-05-15 20:51:59 0000 -------
Created an attachment (id=119394) [details]
emerge --info

emerge --info

------- Comment #5 From Honza Macháček 2007-05-15 20:56:07 0000 -------
Created an attachment (id=119395) [details]
lsmod

The output of lsmod.

------- Comment #6 From Honza Macháček 2007-05-15 20:57:21 0000 -------
Created an attachment (id=119397) [details]
lspci -vv

The audio portion of lspci -vv.

------- Comment #7 From Honza Macháček 2007-05-15 20:58:17 0000 -------
Created an attachment (id=119399) [details]
amixer scontents

The output of amixer scontents.

------- Comment #8 From Maarten Bressers 2007-05-20 22:08:36 0000 -------
You said the bug appears from 2.6.18-gentoo-r6 to 2.6.21, does that mean that
earlier kernel versions did work for you? If so, which was the latest one?

Also, you say this happens with the in-kernel driver. Does the problem still
exist if you use an out-of-kernel driver, ie. alsa-driver?

------- Comment #9 From Daniel Drake 2007-05-20 22:47:04 0000 -------
There's no need to test alsa-driver specifically. We're just interested to know
if have ever found a working configuration, or if it's always been broken for
you.

------- Comment #10 From Honza Macháček 2007-05-21 08:52:58 0000 -------
(In reply to comment #9)
> There's no need to test alsa-driver specifically. We're just interested to know
> if have ever found a working configuration, or if it's always been broken for
> you.

I don't think it ever worked correctly.

As far as I remember, the eldest kernel I tried was of 2.6.17 series. That time
my hardware was relatively new, and especially its SATA controller just
starting to be recognised at all in the newest kernel versions. The problems
with sound were just a minor annoyance.

I don't remember when I first tried to play six channel sound, so I'm not sure
if that always worked, but with all the kernel versions I keep now the case is
all the same: Six channels good, two channels bad.

Since playing two channels, adding four empty tracks is always possible, I can
live well with the present driver status; its in fact a real problem only when
I try to use a program that I don't know how to configure for such a trick. At
the same time, however, I wonder what makes the difference, why not feeding
four channels with anything is not the same as feeding them with nothing.

------- Comment #11 From Daniel Drake 2007-06-09 15:23:41 0000 -------
Thanks for the info. Can you reproduce this on the latest development kernel,
currently 2.6.22-rc4?

------- Comment #12 From Honza Macháček 2007-06-19 19:03:41 0000 -------
(In reply to comment #11)
  It took me some time to find a while for kernel compilation and reboot. Now I
have sys-kernel/git-sources-2.6.22_rc4 installed and kernel compiled -- and I
see no difference
  Six channels work, two channels not. Even if I mute everything except PCM and
Front, I'm getting high pitch noise as a sound background, and if I try to
manipulate PCM during two channel playback, all sound gets lost. Then muting
and unmuting of PCM and Front is necessary -- both of them, either at a time or
one after another -- to enable playback again.
  No error message anywhere I have looked.

------- Comment #13 From Honza Macháček 2007-06-19 19:05:30 0000 -------
Created an attachment (id=122547) [details]
emerge --info

------- Comment #14 From Honza Macháček 2007-06-19 19:06:21 0000 -------
Created an attachment (id=122548) [details]
lsmod

------- Comment #15 From Honza Macháček 2007-06-19 19:07:04 0000 -------
Created an attachment (id=122549) [details]
amixer scontents

------- Comment #16 From Doug Goldstein 2007-06-21 14:07:06 0000 -------
I'd still be interested in out of kernel alsa-driver works for you.

------- Comment #17 From Honza Macháček 2007-06-21 20:53:08 0000 -------
(In reply to comment #16)
  Compiling kernel (sys-kernel/gentoo-sources-2.6.21-r2) with just bare sound
support, and then installing media-sound/alsa-driver-1.0.14_rc3 helped
partially. No background noise this time, nevertheless manipulating PCM during
playback still kicks the sound out, and muting of PCM and Front, followed by
their unmuting, is required to get sound back.

------- Comment #18 From Daniel Drake 2007-06-29 01:42:30 0000 -------
OK. please file this bug upstream at
http://https://bugtrack.alsa-project.org/alsa-bug/ and post the new URL here.

------- Comment #19 From Honza Macháček 2007-07-05 15:13:18 0000 -------
I took my time to report the bug upstreams (and to skim through those many
intel-hda bugs already reported there, looking for something similar), but
finaly I've filed my report:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3219

Verifying the bug again for the report I found the high-pitch background noise
is back, even with the standalone alsa-driver -- so the problem is probably
consistently persistent.

------- Comment #20 From Daniel Drake 2007-07-05 15:28:07 0000 -------
Thanks, will monitor that.

------- Comment #21 From Honza Macháček 2007-11-27 20:59:32 0000 -------
Looks like sys-kernel/gentoo-sources-2.6.23-r2 with
media-sound/alsa-driver-9999 installed on November 27th works OK. I've just
tested that and reported my comfortable findings upstream. (May be the driver
has even been in order for some time already, I've been letting my computer
work undisturbed until lately.)

------- Comment #22 From Daniel Drake 2007-11-27 21:44:53 0000 -------
reportedly fixed in 2.6.23 (see upstream bug)

------- Comment #23 From Daniel Drake 2007-11-27 21:46:40 0000 -------
oh wait, you're not using the in-kernel ALSA, so we should try and backport the
patch.

Any chance you can test the latest 2.6.24-rc release (use the in-kernel ALSA)
and confirm if the bug is fixed there?

------- Comment #24 From Honza Macháček 2007-11-28 07:58:10 0000 -------
(In reply to comment #23)
> Any chance you can test the latest 2.6.24-rc release (use the in-kernel ALSA)
> and confirm if the bug is fixed there?

Unfortunately the in-kernel ALSA of sys-kernel/vanilla-sources-2.6.24-rc3 still
has the problem.

------- Comment #25 From Daniel Drake 2008-02-13 16:40:30 0000 -------
Please see if the in-kernel driver in 2.6.25-rc1 is any better.

Also, if you have already tried 2.6.24 final, I'd be interested to know the
results.

------- Comment #26 From Honza Macháček 2008-02-13 19:42:28 0000 -------
(In reply to comment #25)
I don't reboot my amd64 box often, but recently after a crash I used the
opportunity to update my kernel to gentoo-sources-2.6.24. The ALSA driver there
seems to play two channel samples well. I'm sorry for neglecting to report
that.

So the bug is probably fixed in sys-kernel/gentoo-sources-2.6.24. Unfortunately
I've omitted experimenting with vanilla-sources, and now I have long
calculations running again, so I'm not sure when I'll be able to test other
kernel flavours.

------- Comment #27 From Daniel Drake 2008-02-13 21:53:30 0000 -------
OK, thanks. No need to test anything else.

Unless anyone has some insight on which post-2.6.23 patch fixes this, I think
we'll just wait for 2.6.24 to go stable for this to be 100% fixed. Not worth
the time backporting given the low impact and the fact that 2.6.24 will
hopefully be stable within a week or 2.

Thanks for all the testing.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug