LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-01-2005, 03:35 PM   #1
lengau
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Rep: Reputation: 15
ALSA with Via soundcard on Gentoo


Hi,

Okay, so I just switched to Gentoo recently, and everything's as good as or better than before, except......... I don't have sound.

I followed the instructions up to teh initscript at http://www.gentoo.org/doc/en/alsa-guide.xml, but still don't have sound.

I used to be able to get alsamixer to run and is would say it's uding the dummy output, but now (after recompiling the kernel without dummy support and re-emerging alsa-utils), whenever I run alsamixer, it says
Quote:
# alsamixer

alsamixer: function snd_ctl_open failed for default: No such device or address
Any suggestions? have my previous details at
http://forums.gentoo.org/viewtopic-t...ighlight-.html
 
Old 07-02-2005, 06:17 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Did you build the sound card support as modules or directly into the kernel?
Are the settings for amixer muted? (they are by default)

GENTOO ROCKS!!!!!
 
Old 07-03-2005, 10:18 AM   #3
lengau
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 15
This time I built it as modular support. I've put the snd-via82xx module into the /etc/modulesautoload.d/kernel-2.6 file. Is there anythinhg else I need?

Quote:
# amixer
amixer: Mixer attach default error: No such device or address
and

Quote:
# alsamixer

alsamixer: function snd_ctl_open failed for default: No such device or address
So I can't tell you. I'm running 2005.0 on kernel-2.6.11-gentoo-r11.

Thanks for the quick reply.
 
Old 07-03-2005, 06:42 PM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Now that its a module, type lsmod and verify that its loaded.
 
Old 07-04-2005, 11:16 PM   #5
lengau
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Fancy that. Soundcore is loaded, but via82xx or snd-via82xx arent. They're both in /etc/modules.autoload.d/kernel-2.6 though. And I did compile them in.

which module is correct?
 
Old 07-05-2005, 12:14 AM   #6
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
Take all of your sound modules out of the autoload.d config file.

Build/run ALSA this way
Make SURE you've included all sound options of the kernel as modules, as well as your correct hardware module.
emerge alsa-utils
run alsaconf as root, from the cli to make sure your wm isn't trying to use the soundcard.
rc-update add alsasound default
/etc/init.d/alsasound start
add ALSA and oss to your /etc/make.conf
re-emerge any audio apps with the --NEWUSE flag.
 
Old 07-06-2005, 02:28 PM   #7
lengau
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 15
When I run alsaconf, it comes up with the following when it's updating the modules etc.

Quote:
Running modules-update...
Loading driver...
* Loading ALSA modules ...
* Loading: snd-card-0 ...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-rawmidi.ko): Invalid module format
WARNING: Error inserting snd_mpu401_uart (/lib/modules/2.6.11-gentoo-r11/alsa-driver/drivers/mpu401/snd-mpu401-uart.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-pcm.ko): Invalid module format
WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.11-gentoo-r11/alsa-driver/pci/ac97/snd-ac97-codec.ko): Invalid module format
FATAL: Error inserting snd_via82xx (/lib/modules/2.6.11-gentoo-r11/alsa-driver/pci/snd-via82xx.ko): Invalid module format [ !! ]
* Loading: snd-seq-oss ...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_seq (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/snd-seq.ko): Invalid module format
WARNING: Error inserting snd_seq_midi_event (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/snd-seq-midi-event.ko): Invalid module format
FATAL: Error inserting snd_seq_oss (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/oss/snd-seq-oss.ko): Invalid module format [ !! ]
* Loading: snd-pcm-oss ...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/oss/snd-mixer-oss.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-pcm.ko): Invalid module format
FATAL: Error inserting snd_pcm_oss (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/oss/snd-pcm-oss.ko): Invalid module format [ !! ]
* Loading: snd-mixer-oss ...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd.ko): Invalid module format
FATAL: Error inserting snd_mixer_oss (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/oss/snd-mixer-oss.ko): Invalid module format [ !! ]
* Loading: snd-mixer-oss ...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd.ko): Invalid module format
FATAL: Error inserting snd_mixer_oss (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/oss/snd-mixer-oss.ko): Invalid module format [ !! ]
* Loading: snd-pcm-oss ...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/oss/snd-mixer-oss.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-pcm.ko): Invalid module format
FATAL: Error inserting snd_pcm_oss (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/oss/snd-pcm-oss.ko): Invalid module format [ !! ]
* Loading: snd-seq ...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-timer.ko): Invalid module format
FATAL: Error inserting snd_seq (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/snd-seq.ko): Invalid module format [ !! ]
* Loading: snd-seq ...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/snd-timer.ko): Invalid module format
FATAL: Error inserting snd_seq (/lib/modules/2.6.11-gentoo-r11/alsa-driver/acore/seq/snd-seq.ko): Invalid module format [ !! ]
* ERROR: Failed to load necessary drivers [ ok ]
* Restoring Mixer Levels ...
cat: /proc/asound/cards: No such file or directory [ ok ]
Setting default volumes...
It looks like everything's an invalid module.

I used the genkernel --menuconfig --udev all command to compile my kernel.
 
Old 07-06-2005, 03:12 PM   #8
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
I'm not a genkernel user, so bear with me on some silly questions.
Are you using the kernel modules or the alsa-drivers modules?
If you're using alsa-drivers, what version?
Are the modules still listed in /etc/modules.autoload.d/<kernel version>?

For refernece - here's a working lsmod output using the same card
Code:
Module                  Size  Used by
savage                 33728  1 
drm                    66136  2 savage
snd_pcm_oss            50592  0 
snd_mixer_oss          18048  1 snd_pcm_oss
snd_seq_oss            32960  0 
snd_seq_midi_event      6592  1 snd_seq_oss
snd_seq                51536  4 snd_seq_oss,snd_seq_midi_event
rtc                    11064  0 
snd_via82xx            23328  0 
snd_ac97_codec         74616  1 snd_via82xx
snd_pcm                85960  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              22660  2 snd_seq,snd_pcm
snd_page_alloc          7556  2 snd_via82xx,snd_pcm
snd_mpu401_uart         6400  1 snd_via82xx
snd_rawmidi            21216  1 snd_mpu401_uart
snd_seq_device          6860  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    47652  11 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               7712  1 snd
8139too                21184  0 
via_agp                 7488  1 
agpgart                28712  2 drm,via_agp
video                  13828  0 
fan                     3140  0 
button                  4880  0 
ntfs                  104496  1
 
Old 07-06-2005, 03:38 PM   #9
lengau
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 15
I'm using the kernel 2.6.11-gentoo-r11 kernel modules.
The modules are no longer listed in /etc/modules.autoload.d/kernel-2.6

What modules should I add? It looks like I need:
snd_pcm_oss, snd_mixer_oss, snd_seq_oss, snd_seq_midi_event, snd_seq, snd_via82xx, snd_ac97_codec, snd_pcm, snd_timer, snd_page_alloc, snd_mpu401_uart, snd_rawmidi, snd_seq_device, and snd

Is that everything and do I need all of that?
 
Old 07-06-2005, 08:52 PM   #10
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
it looks like you might need to un-emerge alsa-driver.
alsaconf is still trying to load modules from it apparently.
alsa-driver modules are in /lib/modules/2.6.11-gentoo-r11/alsa-driver
and
kernel modules are in /lib/modules/2.6.11-gentoo-r11/kernel/sound

Here's the steps I'd take now
emerge -Cp alsa-driver alsa-utils
IF /lib/modules/2.6.11-gentoo-r11/alsa-driver still exists:
mv -r /lib/modules/2.6.11-gentoo-r11/alsa-driver /root/2.6.11-gentoo-r11/alsa-driver

rebuild the kernel, and check that the kernel modules are in lib/modules/2.6.11-gentoo-r11/kernel/sound.
Use="oss" emerge -a alsa-utils
try alsaconf again.
 
Old 07-09-2005, 07:52 AM   #11
lengau
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you!

ALSA now works perfectly!

Actually, my music sounds better than in Windows.
 
Old 07-09-2005, 01:12 PM   #12
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
excellent! I'm glad you got it sorted out
 
Old 07-09-2005, 05:33 PM   #13
lengau
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Yeah. I'm now back into the habit of listening to my music every second of every minute of every hour of every day.

Not meaning to be a pain, but I have an non-linux-compatible (at least not yet, but I'm gonna help making a driver for it) Sony camera (DSC-P200). Do you happen to know how I can (cheaply) get the pictures off the Memory stick? I'm willing to spend up to $50, but the cheaper the better.
 
Old 07-09-2005, 08:32 PM   #14
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
First thing to try with the camera , with the memory stick inserted, plug it into your PC and turn it on.
look at the last few lines of the output from dmesg.

there's a chance you can just mount the camera like a hard drive and grab the images right off the card, without spending a dime. Post the output from the end of the dmesg file and we'll have a look-see
 
Old 07-09-2005, 11:21 PM   #15
lengau
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
$ sudo mount -t vfat /dev/sda1 /mnt/camera
Heh. Look at that. MY PICTURES!!!!!!!!!!! w00t!!!

Thanks!

any idea how to get it to show up in media:/ in konqueror?

Last edited by lengau; 07-09-2005 at 11:24 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA and Azalia soundcard mary Linux - Hardware 10 03-31-2011 08:17 PM
Need Soundcard/ALSA help gooball Linux - Hardware 1 09-14-2005 08:16 AM
alsa -- soundcard problem ankurkumar78 Debian 6 06-28-2005 08:25 AM
ALSA help - set soundcard TazG Linux - Hardware 1 09-24-2004 02:59 PM
new soundcard not found by ALSA hadoque Linux - Hardware 2 08-13-2004 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration