Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78327 - Audio for VT8233/A/8235/8237 AC97 Audio Controller under linux-2.6.10-gentoo-r5 does not work (works for linux-2.6.7-gentoo-r11)
Summary: Audio for VT8233/A/8235/8237 AC97 Audio Controller under linux-2.6.10-gentoo-...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 02:11 UTC by t35t0r
Modified: 2005-01-18 11:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description t35t0r 2005-01-17 02:11:44 UTC
I have the following ALSA modules enabled for linux-2.6.10-gentoo-r5 and loaded using /etc/modules.autoload.d/kernel-2.6 interface, lsmod gives:

snd_via82xx            29412  4
snd_ac97_codec         69124  1 snd_via82xx
gameport                4736  1 snd_via82xx

..yet the sound is not working. I have the exact same configuration for the kernel under 2.6.7-gentoo-r11 and the sound works fine.

Reproducible: Always
Steps to Reproduce:
1. Under alsa in sound drivers compile snd_via82xx as a module, put the appropriate modules in /etc/modules.autoload.d/kernel-2.6, reboot.
2. Increase the master and pcm volumes
3. Listen to whatever using xmms/mplayer/etc.

Actual Results:  
1. modules compiled and loaded on reboot
2. volume increased
3. frequency oscilloscope bars in xmms are changing but there is no audio output.
4. reboot to 2.6.7-gentoo-r11 and audio works fine

Expected Results:  
In step 3 there should be audio output.

Mobo is Asus A7V600 running v1008 bios.

0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host
Bridge (rev 80)
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
0000:00:09.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T
[Marvell] (rev 12)
0000:00:0d.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
0000:00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID
Controller (rev 80)
0000:00:0f.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [K8T800 South]
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 60)0000:01:00.0 VGA compatible
controller: ATI Technologies Inc RV350 AQ [Radeon 9600]
0000:01:00.1 Display controller: ATI Technologies Inc RV350 AQ [Radeon 9600]
(Secondary)
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-01-17 02:53:19 UTC
You'll need more ALSA modules loaded. On my system, I have, alongside my snd-intel8x0 driver:

snd_pcm_oss
snd_mixer_oss
snd_seq_oss
snd_seq_midi_event
snd_seq
snd_seq_device
snd_ac97_codec
snd_pcm
snd_timer
snd
snd_page_alloc

The OSS ones are optional. 

Which output plugin are you using in XMMS? Have you tried just playing a sound with aplay? Have you tried using alsaconf to configure your card?
Comment 2 t35t0r 2005-01-17 10:48:05 UTC
Listed below are the kernel .config settings and the sound still isn't working. As I said its pretty much the same config as in 2.6.7-gentoo-r11 which works. Any ideas on what's wrong now?

/root# cd /usr/src/linux
src/linux# pwd
src/linux-2.6.10-gentoo-r5
src/linux# grep SND .config
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_MPU401_UART=y
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
CONFIG_SND_MPU401=y
# CONFIG_SND_AD1848 is not set
# CONFIG_SND_CS4231 is not set
# CONFIG_SND_CS4232 is not set
# CONFIG_SND_CS4236 is not set
# CONFIG_SND_ES1688 is not set
# CONFIG_SND_ES18XX is not set
# CONFIG_SND_GUSCLASSIC is not set
# CONFIG_SND_GUSEXTREME is not set
# CONFIG_SND_GUSMAX is not set
# CONFIG_SND_INTERWAVE is not set
# CONFIG_SND_INTERWAVE_STB is not set
# CONFIG_SND_OPTI92X_AD1848 is not set
# CONFIG_SND_OPTI92X_CS4231 is not set
# CONFIG_SND_OPTI93X is not set
# CONFIG_SND_SB8 is not set
# CONFIG_SND_SB16 is not set
# CONFIG_SND_SBAWE is not set
# CONFIG_SND_WAVEFRONT is not set
# CONFIG_SND_CMI8330 is not set
# CONFIG_SND_OPL3SA2 is not set
# CONFIG_SND_SGALAXY is not set
# CONFIG_SND_SSCAPE is not set
CONFIG_SND_AC97_CODEC=m
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_SONICVIBES is not set
CONFIG_SND_VIA82XX=m
# CONFIG_SND_VX222 is not set
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-01-17 16:17:20 UTC
Which output plugin are you using in XMMS? Have you tried just playing a sound with aplay? Have you tried using alsaconf to configure your card?
Comment 4 t35t0r 2005-01-17 20:41:55 UTC
Since your last message these are the kernels I have tested:

2.6.11-rc1           SND_VIA82XX does not work, *upgrade*
2.6.10-gentoo-r5     SND_VIA82XX does not work, *upgrade*
2.6.10               SND_VIA82XX does not work, *upgrade*
2.6.9                SND_VIA82XX does not work, *upgrade*
2.6.8.1              SND_VIA82XX works!!! *upgrade*
2.6.7-gentoo-r11     SND_VIA82XX works!!! *original kernel*

This is with the configuration which i listed before. XMMS is using libALSA.so v1.2.10, alsaplayer works with the kernels where SND_VIA82XX is operation, I didn't use alsaconf /etc/modules.d/alsa or /etc/init.d/alsasound as these seem to be wrappers for loading the appropriate modules on boot and assigning mixers to the appropriate devices. I am using /etc/modules.autoload.d/kernel-2.6 interface to load the SND_VIA82XX and SND_VIA_CODEC, everything else is built into the kernel. I don't have any explanation for this, what's the big change between 2.6.8.1 and 2.6.9?  
Comment 5 t35t0r 2005-01-17 21:31:04 UTC
ok, I fixed the problem (I got sound working on all the kernels listed below), but I found another ?problem? with the SND_VIA82XX module. 

I was loading the SND_VIA82XX module in /etc/modules.autoload.d/kernel-2.6 with:
snd-via82xx ac97_clock=96000

..this worked for 2.6.7-gentoo-r11 and 2.6.8.1, but stopped working with kernels >=2.6.9. I simply took out the ac97_clock=96000 parameter and now it just reads:
snd-via82xx

..and this works for all kernels, but if you do:

modinfo snd_via82xx
author:         Jaroslav Kysela <perex@suse.cz>
description:    VIA VT82xx audio
license:        GPL
parm:           index:Index value for VIA 82xx bridge.
parm:           id:ID string for VIA 82xx bridge.
parm:           enable:Enable audio part of VIA 82xx bridge.
parm:           mpu_port:MPU-401 port. (VT82C686x only)
parm:           joystick:Enable joystick. (VT82C686x only)
parm:           ac97_clock:AC'97 codec clock (default 48000Hz).
parm:           ac97_quirk:AC'97 workaround for strange hardware.
parm:           dxs_support:Support for DXS channels (0 = auto, 1 = enable, 2 = disable, 3 = 48k only, 4 = no VRA)
vermagic:       2.6.11-rc1 preempt K7 4KSTACKS gcc-3.3
depends:        gameport,snd-ac97-codec
alias:          pci:v00001106d00003058sv*sd*bc*sc*i*
alias:          pci:v00001106d00003059sv*sd*bc*sc*i*

..you can see that setting ac97_clock should work because its still a valid parameter, so why has it stopped working after 2.6.8.1 ??
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-01-18 05:59:46 UTC
If it concerns you then you should probably ask the upstream ALSA developers. I believe the clock rate should also be mentioned in dmesg so you can check which one it is using.
Comment 7 t35t0r 2005-01-18 11:54:34 UTC
From: Jaroslav Kysela <perex@suse.cz>
To: t35t0r@gmail.com
Cc: Takashi Iwai <tiwai@suse.de>
Date: Tue, 18 Jan 2005 10:40:56 +0100 (CET)
Subject: Re: snd_via82xx ac97_clock=96000 parameter doesn't work for kernels >= linux-2.6.9 (fwd)

> > Dear sir:
> >
> > If you get a chance can you look at
> > http://bugs.gentoo.org/show_bug.cgi?id=78327 ...

It seems that the no-sound bug is caused with the AC'97 codec
initialization. Specifying 96000 as ac97_clock parameter won't help,
because this value must be from 8000 to 48000 otherwise it is ignored.
Please, fill a bug to our bugtrack system.

                                               Jaroslav

Additional comment from https://bugtrack.alsa-project.org/alsa-bug/view.php?id=833 (you'll need account to view)

(0003252)
tiwai
01-18-05 17:44

	I guess your problem has nothing to do with ac97_clock. Setting ac97_clock=96000 is simply wrong. If this really works, then something else is broken...