Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving from devfs to udev sound problem! [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
eanavarro
n00b
n00b


Joined: 26 Jan 2005
Posts: 17

PostPosted: Sat Mar 19, 2005 7:12 pm    Post subject: Moving from devfs to udev sound problem! [SOLVED] Reply with quote

Kernel: 2.6.11-r3 (gentoo-dev-sources)

Compiled without devfs, udev 0.45

Used to have sound working dandy in devfs, now its not working with UDEV.


First of all, its weird I dont have /proc/asound

lsmod output after running /etc/init.d/alsasound restart

Code:
bash-2.05b# lsmod
Module                  Size  Used by
snd_page_alloc          8520  0
soundcore               8672  0
nvnet                  69160  0
nvidia               4558652  12
agpgart                29028  1 nvidia


Output of actual command.

Code:
 *   Loading: snd-card-0...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd-timer.ko): Unknown symbol inmodule, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.11-gentoo-r3/kernel/sound/pci/ac97/snd-ac97-codec.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_intel8x0 (/lib/modules/2.6.11-gentoo-r3/kernel/sound/pci/snd-intel8x0.ko): Unknown symbolin module, or unknown parameter (see dmesg)                                                                    [ !! ]

 *   Loading: snd-seq-oss...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/seq/snd-seq-device.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd-timer.ko): Unknown symbol inmodule, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/seq/snd-seq.ko): Unknown symbol inmodule, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq_midi_event (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/seq/snd-seq-midi-event.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_seq_oss (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/seq/oss/snd-seq-oss.ko): Unknownsymbol in module, or unknown parameter (see dmesg)                                                             [ !! ]

 *   Loading: snd-pcm-oss...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/oss/snd-mixer-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd-timer.ko): Unknown symbol inmodule, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_pcm_oss (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/oss/snd-pcm-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg)                                                                 [ !! ]

 *   Loading: snd-mixer-oss...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_mixer_oss (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/oss/snd-mixer-oss.ko): Unknownsymbol in module, or unknown parameter (see dmesg)                                                             [ !! ]

 *   Loading: snd-seq...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/seq/snd-seq-device.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd-timer.ko): Unknown symbol inmodule, or unknown parameter (see dmesg)
FATAL: Error inserting snd_seq (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/seq/snd-seq.ko): Unknown symbol in module, or unknown parameter (see dmesg)                                                                         [ !! ]

 *   Loading: snd-ioctl32...
WARNING: Error inserting snd (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd-timer.ko): Unknown symbol inmodule, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_ioctl32 (/lib/modules/2.6.11-gentoo-r3/kernel/sound/core/ioctl32/snd-ioctl32.ko): Unknownsymbol in module, or unknown parameter (see dmesg)                                                             [ !! ]

 * ERROR: Failed to load necessary drivers     


in my /etc/modules.d/alsa I have

Code:

# --- ALSACONF verion 1.0.8 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0


this is how my dev/snd looks like:
Code:
bash-2.05b# ls -l /dev/snd
total 0
crw-------  1 root audio 116,  0 Mar 19  2005 controlC0
crw-------  1 root audio 116, 24 Mar 19  2005 pcmC0D0c
crw-------  1 root audio 116, 16 Mar 19  2005 pcmC0D0p
crw-------  1 root audio 116, 25 Mar 19  2005 pcmC0D1c
crw-------  1 root audio 116, 18 Mar 19  2005 pcmC0D2p
crw-------  1 root audio 116,  1 Mar 19  2005 seq
crw-------  1 root audio 116, 33 Mar 19  2005 timer


I dont know what to do. I have tried some other stuff with no luck.
_________________
"This is the beginning of the end"


Last edited by eanavarro on Sun Mar 20, 2005 6:14 am; edited 1 time in total
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Sat Mar 19, 2005 11:32 pm    Post subject: Reply with quote

Your alsa modules are not loaded, soundcore module is the OSS one, /proc/asound appears only after they
are loaded.

Your output shows that loading alsa module failed. Where they compiled together with the kernel, or separately ?
Back to top
View user's profile Send private message
eanavarro
n00b
n00b


Joined: 26 Jan 2005
Posts: 17

PostPosted: Sun Mar 20, 2005 4:37 am    Post subject: Reply with quote

dmpogo wrote:
Your alsa modules are not loaded, soundcore module is the OSS one, /proc/asound appears only after they
are loaded.

Your output shows that loading alsa module failed. Where they compiled together with the kernel, or separately ?


Well, I compiled the kernel with support for those modules. I specified intel 8x0 since its compatible with the chipset. I even did a make distclean before recompiling without devfs support to make sure that everything was recompiled. I also deleted the /lib/modules/<kernel> directory before remaking and reinstalling all modules. Any idea how ot know if udev is dong the proper loading?

I have a feeling that it has to do with udev solely, but dont know of proper troubleshooting techniques. I cant find the proper path or name for *anything* related to a sound device in udevinfo. I do have both oss and alsa compiled as kernel modules... I only use the alsa ones. I left it in case I needed OSS for backward compatibility or something.

I compiled them built-in the kernel and they seem to be working. So I would be inclined to say that its something else.

Code:
bash-2.05b# ls -l /proc/asound/
total 1
lrwxrwxrwx  1 root root 5 Mar 20 02:03 CK8S -> card0
dr-xr-xr-x  7 root root 0 Mar 20 02:03 card0
-r--r--r--  1 root root 0 Mar 20 02:03 cards
-r--r--r--  1 root root 0 Mar 20 02:03 devices
-r--r--r--  1 root root 0 Mar 20 02:03 hwdep
dr-xr-xr-x  2 root root 0 Mar 20 02:03 oss
-r--r--r--  1 root root 0 Mar 20 02:03 pcm
dr-xr-xr-x  2 root root 0 Mar 20 02:03 seq
-r--r--r--  1 root root 0 Mar 20 02:03 timers
-r--r--r--  1 root root 0 Mar 20 02:03 version


I will retry building them outside then. I do prefer to have them as modules :)
_________________
"This is the beginning of the end"
Back to top
View user's profile Send private message
eanavarro
n00b
n00b


Joined: 26 Jan 2005
Posts: 17

PostPosted: Sun Mar 20, 2005 6:18 am    Post subject: Reply with quote

Solution:

After building everything in the kernel I started systematically turning modules/off and on and stumbled upon this:

Code:

Device Drivers-->
Sound-->
[b] <*> Sound card support[/b]
       Advanced Linux Sound Architecture  --->
       Open Sound System  --->


So once this *Sound Card Support* was built in the kernel, udev picked up from there. Alsaconf worked flawlessly as lsmod shows below.

Code:
snd_ioctl32            26368  0
snd_pcm_oss            51488  0
snd_mixer_oss          17280  1 snd_pcm_oss
snd_seq_oss            32832  0
snd_seq_midi_event      7680  1 snd_seq_oss
snd_seq                53504  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          7760  2 snd_seq_oss,snd_seq
snd_intel8x0           30528  1
snd_ac97_codec         76128  1 snd_intel8x0
snd_pcm                84620  4 snd_ioctl32,snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              22152  2 snd_seq,snd_pcm
snd_page_alloc          8520  2 snd_intel8x0,snd_pcm
nvidia               4558652  12
agpgart                29028  1 nvidia
nvnet                  69160  0


This of course makes sense since sound card support being in the kernel seems to have some magical effect :)
_________________
"This is the beginning of the end"
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Tue Mar 22, 2005 5:06 am    Post subject: Reply with quote

:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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