Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound problems are driving me absolutely insane
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
roarkh
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2003
Posts: 92
Location: Bellingham, Washington

PostPosted: Sun Feb 01, 2004 8:21 am    Post subject: Sound problems are driving me absolutely insane Reply with quote

I am trying to get audio drivers working with my new Gentoo install. I have an MSI K8T Neo motherboard and an Athlon64 3200 processor. So far everything seems to be working fairly well but I can not get audio to work. A run of lspci reveals the following information about my sound controller...

Code:
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235 AC97 Audio Controller (rev 60)


I have selected the following in my kernel configuration

Code:
<M> Sound card support
   <M> Advanced Linux Sound Architecture
   <M> Emulation for 32-bit applications
   < > Sequencer support
   [*] OSS API emulation
   <M> OSS Mixer API
   <M> OSS PCM (digital audio) API
   < > RTC Timer support
   [ ] Verbose printk
   [ ] Debug
   PCI Devices --->
      < > ALi PCI Audio M5451
      .
      .
      .
      <M> VIA 82C686A/B, 8233 South Bridge
      < > Digigram VX222


/etc/modules.d/alsa contains the following:

Code:
   alias char-major-116 snd
   alias snd-card-0 snd-via82xx

   alias char-major-14 soundcore
   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


I have emerged media-libs/alsa-lib, media-libs/alsa-oss and media-sound/alsa-utils

I then ran

Code:
   rc-update add alsasound boot


Upon booting I get the following error message...

Code:
   FATAL: Error inserting snd_via82xx (/lib/modules/2.6.1-gentoo-r1/kernel/sound/pci/snd-via82xx.ko): Unknown symbol in module, or unknown parameter (see dmesg)


dmesg reveals the following:

Code:
   snv_via82xx: Unknown symbol snd_ac97_set_rate
   snd_via82xx: Unknown symbol snd_ac97_update_bits
   snd_via82xx: Unknown symbol snd_ac97_mixer
   snd_via82xx: Unknown symbol snd_ac97_bus
   snd_via82xx: Unknown symbol snd_mpu401_uart_inerrupt
   snd_via82xx: Unknown symbol snd_mpu401_uart_new
   snd_via82xx: Unknown symbol snd_ac97_tune_hardware


I am probably doing something really stupid but am just not seeing it. I have search the forums here and used google to try to find a solution but am completely stumped.

If someone here can point me in the right direction I would be eternally grateful.

Thanks in advance.

Roark Holz
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Sun Feb 01, 2004 9:41 am    Post subject: Reply with quote

This is why I hate modules. Try

Code:
lsmod


see if it lists SND_VIA82XX as ready to go. If it is listed, it's ready, I think. Then type in this

Code:
modprobe SND_VIA82XX


Then see if that sound works. I have never been real good at modules, so I compile everythng into the kernel. The only mods I have are for the on board nvidia crap. They suck to BTW.

Then you will need to add that module to the file in this path:

Code:
/etc/modules.autoload.d/kernel-<your version here>


Should look like this:

Code:
# For example:
# 3c59x
nvnet
nvidia


See if that works. I hope.

8O 8O :D :D
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
roarkh
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2003
Posts: 92
Location: Bellingham, Washington

PostPosted: Sun Feb 01, 2004 4:53 pm    Post subject: Reply with quote

The module is definitely being built.

When I try

Code:
modprobe via_snd82xx


it attempts to load the module but fails with the same error message I get on boot.

However lsmod shows that some of the alsa modules are getting loaded.

Code:

snd_pcm_oss            51492  0
snd_pcm                90060  1  snd_pcm_oss
snd_page_alloc         10248  1  snd_pcm
snd_timer              21832  1  snd_pcm
snd_timer_oss          17216  1  snd_pcm_oss
snd                    46760  4  snd_pcm_oss,snd_pcm_timer,snd_mixer_oss


Thanks for your reply
Back to top
View user's profile Send private message
ballyn
n00b
n00b


Joined: 14 Aug 2003
Posts: 73

PostPosted: Sun Feb 01, 2004 6:13 pm    Post subject: Reply with quote

Looks like you might need snd_ac97_codec... dunno where that's built. Do you have the module?
Back to top
View user's profile Send private message
roarkh
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2003
Posts: 92
Location: Bellingham, Washington

PostPosted: Sun Feb 01, 2004 7:34 pm    Post subject: Reply with quote

Well I recompiled my kernel but this time did not compile the alsa stuff as modules. Now things are somewhat better. XMMS will now play stuff but periodically the song will skip or sound very strange (almost like it is coming from under water).

Thanks for the suggestions.

Roark
Back to top
View user's profile Send private message
ryanCD
n00b
n00b


Joined: 28 Aug 2003
Posts: 60

PostPosted: Mon Feb 02, 2004 5:06 pm    Post subject: Reply with quote

I personally think modules are real handy, don't have to re-compile the whole kernel, reboot etc., but that's besides the point.

The oss module works for the via chipset, so you could give that a shot. Xmms does skip for me if the computer is under load. I guess you could renice xmms, that might give you better results, but I just plug in my laptop and listen to that while somthing's compiling.
_________________
The new scum
Back to top
View user's profile Send private message
ultraslacker
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2002
Posts: 124
Location: lazy fairy land

PostPosted: Fri Feb 06, 2004 3:12 am    Post subject: Reply with quote

Did you run modules-update to make /etc/modules.conf current?

For the underwater warbling, try muting 3d output in alsamixer.
Back to top
View user's profile Send private message
roarkh
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2003
Posts: 92
Location: Bellingham, Washington

PostPosted: Mon Feb 09, 2004 7:54 am    Post subject: Problem appears to be solved Reply with quote

Well I seem to have sound working pretty well now. I recompiled my kernel again with snd_via82xx compiled as a module and for some reason things are working better this time.

The sound quality problems I was having appear to come from the fact that this sound card will only output at 48000khz while xmms was attempting to output sound at 44100khz. I unmasked and installed the xmms-crossfade package and set it up to resample at 48000khz and sound from xmms is very good now.

I found this website which helped quite a bit, http://alsa.opensrc.org/index.php?page=via8233.

Setting dxs_support=1 works best for me, here is part of my "alsa" configuration file in /etc/modules.d

Code:
alias char-major-116 snd
alias sound-card-0 snd-via82xx
options snd-via82xx index=0 dxs_support=1

#OSS/Free portion
alias char-major-14 soundcore
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


I thank all of you for your suggestions.

Roark Holz
Back to top
View user's profile Send private message
C.M
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2003
Posts: 132
Location: Göteborg - Sweden

PostPosted: Sat Mar 13, 2004 4:18 pm    Post subject: Reply with quote

I have the same MSI K8T Neo motherboard and I can't get alsa working in xmms. I'm using the 2.6.3-gentoo-r2 kernel and have compiled alsa into the kernel. I do get sound, but only when using the oss-emulation. When trying the alsa output plugin I just get 'broken pipe'. The crossfade plugin doesn't seem to do much good either. Should I use /dev/sound/dsp or /dev/sound/adsp? My alsa conf is:
Code:

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
##  ALSA portion
alias snd-card-0 snd-via82xx
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
# OSS/Free portion - card #1
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                                                                               
# Set this to the correct number of cards.
options snd cards_limit=1
options snd-pcm-oss dsp_map=1

The last row is a tip from the http://alsa.opensrc.org homepage.
What should I do to get alsa working as output? The sound seems ok now, but I'm not sure about the 44100/48000 kHz thing.
Back to top
View user's profile Send private message
roarkh
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2003
Posts: 92
Location: Bellingham, Washington

PostPosted: Sun Mar 14, 2004 4:46 am    Post subject: Reply with quote

Have you compiled the audio drivers into the kernel or as modules? I don't know if this will help but this is exactly how I have set things up in my kernel config.

Code:
<M> Sound card support
     Advanced Linux Sound Architecture
          <M> Advanced Linux Sound Architecture
          <M> Emulation for 32-bit applications
          < > Sequencer support
          [*] OSS API Emulation
          <M> OSS Mixer API
          <M> OSS PCM (digital audio) API
          <M> RTC Timer support
          [ ] Verbose printk
          [ ] Debug
          Generic devices ---> (none selected)
          PCI devices ---> (only the line below selected)
               <M> VIA 82C686A/B, 8233 South Bridge
          ALSA USB devices ---> (none selected)


In /etc/modules.autoload.d I load the following modules related to sound.

Code:
snd-via82xx
snd-ac97-codec


My /etc/modules.d/alsa file contents can be seen in my above post. Remeber to run update-modules after editing this file.

I hope this helps out.

Roark
Back to top
View user's profile Send private message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Thu Mar 25, 2004 9:28 am    Post subject: Reply with quote

if you compile sound into the kernel insteadof as a module do you still need to configure /etc/moudles.d/alsa? How do you configure alsa if you don't need to edit this?

Also how do you get the snd_codec_97 to work? Is it a kernel compile option that can be compiled into the kernel or as a module?

thanks
Back to top
View user's profile Send private message
ryker
Guru
Guru


Joined: 28 May 2003
Posts: 412
Location: Portage, IN

PostPosted: Wed Apr 14, 2004 6:02 pm    Post subject: Reply with quote

Thanks roarkh! I have the same motherboard and had the same problems. Sound has been working for 2 minutes now. That's 2 more minutes than it has in the past week.

Gentoo 64 bit is great! WinXP 64 sucks big time!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum