Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsaconf repeated modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ben_dash
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 239

PostPosted: Tue May 16, 2006 1:38 pm    Post subject: alsaconf repeated modules Reply with quote

I have been setting up a new MythFrontend over the past couple of days. In my exhausted state I stupidly ran alsaconf twice and now have repeated modules that are being complained about at boot time.

Does anyone know which file do I need to edit, or what I need to run, to clear out the repeated modules?

Thanks!

Here's a snippet of my dmesg output:

Code:
Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC).
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 56027 usecs
intel8x0: clocking to 41162
ALSA device list:
  #0: Intel 82801BA-ICH2 with AD1885 at 0xc800, irq 17
oprofile: using NMI interrupt.
NET: Registered protocol family 2
IP route cache hash table entries: 8192 (order: 3, 32768 bytes)
TCP established hash table entries: 32768 (order: 6, 393216 bytes)
TCP bind hash table entries: 32768 (order: 6, 393216 bytes)
TCP: Hash tables configured (established 32768 bind 32768)
TCP reno registered
ip_conntrack version 2.4 (4091 buckets, 32728 max) - 172 bytes per conntrack
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 212k freed
Adding 506036k swap on /dev/hda2.  Priority:-1 extents:1 across:506036k
EXT3 FS on hda3, internal journal
snd_page_alloc: exports duplicate symbol snd_dma_alloc_pages (owned by kernel)
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_timer: exports duplicate symbol snd_timer_open (owned by kernel)
snd_pcm: exports duplicate symbol snd_pcm_new (owned by kernel)
snd_ac97_bus: exports duplicate symbol ac97_bus_type (owned by kernel)
snd_ac97_codec: exports duplicate symbol snd_ac97_write (owned by kernel)
kobject_register failed for snd_intel8x0 (-17)
 [<c0218730>] kobject_register+0x67/0x75
 [<c01383fc>] mod_sysfs_setup+0x50/0x92
 [<c0139891>] load_module+0xac9/0xbdd
 [<c0139a1b>] sys_init_module+0x53/0x178
 [<c0102dc3>] sysenter_past_esp+0x54/0x75
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_seq_device: exports duplicate symbol snd_seq_device_load_drivers (owned by kernel)
snd_timer: exports duplicate symbol snd_timer_open (owned by kernel)
snd_seq: exports duplicate symbol snd_seq_create_kernel_client (owned by kernel)
snd_seq_midi_event: exports duplicate symbol snd_midi_event_new (owned by kernel)
kobject_register failed for snd_seq_oss (-17)
 [<c0218730>] kobject_register+0x67/0x75
 [<c01383fc>] mod_sysfs_setup+0x50/0x92
 [<c0139891>] load_module+0xac9/0xbdd
 [<c0139a1b>] sys_init_module+0x53/0x178
 [<c0102dc3>] sysenter_past_esp+0x54/0x75
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_mixer_oss: exports duplicate symbol snd_mixer_oss_ioctl_card (owned by kernel)
snd_page_alloc: exports duplicate symbol snd_dma_alloc_pages (owned by kernel)
snd_timer: exports duplicate symbol snd_timer_open (owned by kernel)
snd_pcm: exports duplicate symbol snd_pcm_new (owned by kernel)
kobject_register failed for snd_pcm_oss (-17)
 [<c0218730>] kobject_register+0x67/0x75
 [<c01383fc>] mod_sysfs_setup+0x50/0x92
 [<c0139891>] load_module+0xac9/0xbdd
 [<c0139a1b>] sys_init_module+0x53/0x178
 [<c0102dc3>] sysenter_past_esp+0x54/0x75
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_mixer_oss: exports duplicate symbol snd_mixer_oss_ioctl_card (owned by kernel)
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_seq_device: exports duplicate symbol snd_seq_device_load_drivers (owned by kernel)
snd_timer: exports duplicate symbol snd_timer_open (owned by kernel)
snd_seq: exports duplicate symbol snd_seq_create_kernel_client (owned by kernel)
snd_page_alloc: exports duplicate symbol snd_dma_alloc_pages (owned by kernel)
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_timer: exports duplicate symbol snd_timer_open (owned by kernel)
snd_pcm: exports duplicate symbol snd_pcm_new (owned by kernel)
snd_ac97_bus: exports duplicate symbol ac97_bus_type (owned by kernel)
snd_ac97_codec: exports duplicate symbol snd_ac97_write (owned by kernel)
kobject_register failed for snd_intel8x0 (-17)
 [<c0218730>] kobject_register+0x67/0x75
 [<c01383fc>] mod_sysfs_setup+0x50/0x92
 [<c0139891>] load_module+0xac9/0xbdd
 [<c0139a1b>] sys_init_module+0x53/0x178
 [<c0102dc3>] sysenter_past_esp+0x54/0x75
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_seq_device: exports duplicate symbol snd_seq_device_load_drivers (owned by kernel)
snd_timer: exports duplicate symbol snd_timer_open (owned by kernel)
snd_seq: exports duplicate symbol snd_seq_create_kernel_client (owned by kernel)
snd_seq_midi_event: exports duplicate symbol snd_midi_event_new (owned by kernel)
kobject_register failed for snd_seq_oss (-17)
 [<c0218730>] kobject_register+0x67/0x75
 [<c01383fc>] mod_sysfs_setup+0x50/0x92
 [<c0139891>] load_module+0xac9/0xbdd
 [<c0139a1b>] sys_init_module+0x53/0x178
 [<c0102dc3>] sysenter_past_esp+0x54/0x75
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_mixer_oss: exports duplicate symbol snd_mixer_oss_ioctl_card (owned by kernel)
snd_page_alloc: exports duplicate symbol snd_dma_alloc_pages (owned by kernel)
snd_timer: exports duplicate symbol snd_timer_open (owned by kernel)
snd_pcm: exports duplicate symbol snd_pcm_new (owned by kernel)
kobject_register failed for snd_pcm_oss (-17)
 [<c0218730>] kobject_register+0x67/0x75
 [<c01383fc>] mod_sysfs_setup+0x50/0x92
 [<c0139891>] load_module+0xac9/0xbdd
 [<c0139a1b>] sys_init_module+0x53/0x178
 [<c0102dc3>] sysenter_past_esp+0x54/0x75
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_mixer_oss: exports duplicate symbol snd_mixer_oss_ioctl_card (owned by kernel)
soundcore: exports duplicate symbol sound_class (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_seq_device: exports duplicate symbol snd_seq_device_load_drivers (owned by kernel)
snd_timer: exports duplicate symbol snd_timer_open (owned by kernel)
snd_seq: exports duplicate symbol snd_seq_create_kernel_client (owned by kernel)


Hmmm... Am I completely off base here? Is this nothing to do with repeated alsaconf commands:

Code:
# /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...                                          [ ok ]
 * Unloading ALSA ...                                                     [ ok ]
 * Unloading ALSA modules ...                                             [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting soundcore (/lib/modules/2.6.16-gentoo-r7/kernel/sound/soundcore.ko): Invalid module format
WARNING: Error inserting snd (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd-pcm.ko): Invalid module format
WARNING: Error inserting snd_ac97_bus (/lib/modules/2.6.16-gentoo-r7/kernel/sound/pci/ac97/snd-ac97-bus.ko): Invalid module format
WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.16-gentoo-r7/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format                    [ ok ]
 *   Loading: snd-seq-oss ...
WARNING: Error inserting soundcore (/lib/modules/2.6.16-gentoo-r7/kernel/sound/soundcore.ko): Invalid module format
WARNING: Error inserting snd (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_seq (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/seq/snd-seq.ko): Invalid module format
WARNING: Error inserting snd_seq_midi_event (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/seq/snd-seq-midi-event.ko): Invalid module format            [ ok ]
 *   Loading: snd-pcm-oss ...
WARNING: Error inserting soundcore (/lib/modules/2.6.16-gentoo-r7/kernel/sound/soundcore.ko): Invalid module format
WARNING: Error inserting snd (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/oss/snd-mixer-oss.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd-pcm.ko): Invalid module format                                      [ ok ]
 *   Loading: snd-mixer-oss ...
WARNING: Error inserting soundcore (/lib/modules/2.6.16-gentoo-r7/kernel/sound/soundcore.ko): Invalid module format
WARNING: Error inserting snd (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd.ko): Invalid module format
FATAL: Error inserting snd_mixer_oss (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/oss/snd-mixer-oss.ko): Invalid module format                        [ !! ]
 *   Loading: snd-seq ...
WARNING: Error inserting soundcore (/lib/modules/2.6.16-gentoo-r7/kernel/sound/soundcore.ko): Invalid module format
WARNING: Error inserting snd (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/snd-timer.ko): Invalid module format
FATAL: Error inserting snd_seq (/lib/modules/2.6.16-gentoo-r7/kernel/sound/core/seq/snd-seq.ko): Invalid module format                                    [ ok ]
 * Restoring Mixer Levels ...                                             [ ok ]


I'm pretty confident that I didn't get those errors before running alsaconf the second time, but perhaps I didn't start it manually and wasn't watching when it booted. ALSA sound is working fine and I just confirmed that I've compiled the sound drivers as modules in 2.6.16-gentoo-r7.

Any ideas?
Back to top
View user's profile Send private message
ben_dash
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 239

PostPosted: Fri Jun 02, 2006 3:00 am    Post subject: Reply with quote

bump :-)

As an alternative question, how would I go about removing the modules entirely and re-adding them, only doing so just once this time?

Thanks in advance for any ideas!

Ben
Back to top
View user's profile Send private message
gentsquash
l33t
l33t


Joined: 03 Nov 2004
Posts: 753
Location: Still a Gentoo beginner.

PostPosted: Fri Jun 09, 2006 2:51 pm    Post subject: Reply with quote

ben_dash wrote:
[H]ow would I go about removing the
modules entirely and re-adding them, only doing so just once this time?


(I'm no expert.) One can view with
Code:
user$  lsmod | grep snd_seq_oss
snd_seq_oss            24704  0
snd_seq_midi_event      4352  1 snd_seq_oss
snd_seq                34256  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          5772  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd                    33856  11 snd_mixer_oss,snd_seq_dummy,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer


Stop modules with
Code:
root# modprobe -v -r --dry-run  snd_seq_oss
rmmod /lib/modules/2.6.15.6/alsa-driver/acore/seq/oss/snd-seq-oss.ko

root# modprobe -v -r            snd_seq_oss
rmmod /lib/modules/2.6.15.6/alsa-driver/acore/seq/oss/snd-seq-oss.ko
rmmod /lib/modules/2.6.15.6/alsa-driver/acore/seq/snd-seq-midi-event.ko


---it is curious that the dry-run only mentions one module.

(Re)Start modules with
Code:
root# modprobe -v  --dry-run  snd_seq_oss
insmod /lib/modules/2.6.15.6/alsa-driver/acore/seq/snd-seq-midi-event.ko
insmod /lib/modules/2.6.15.6/alsa-driver/acore/seq/oss/snd-seq-oss.ko

root# modprobe -v             snd_seq_oss
insmod /lib/modules/2.6.15.6/alsa-driver/acore/seq/snd-seq-midi-event.ko
insmod /lib/modules/2.6.15.6/alsa-driver/acore/seq/oss/snd-seq-oss.ko

_________________
Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida
Back to top
View user's profile Send private message
ben_dash
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 239

PostPosted: Fri Jun 09, 2006 4:38 pm    Post subject: Reply with quote

Thanks for your response, I was beginning to think I was the only person using Gentoo suddenly :-)

Sorry, let me clarify thhe problem. It isn't that the ALSA modules are loaded more than once.

The problem is that I ran alsaconf more than once and that added something to a boot script that attempts to load the ALSA modules more than once at boot time.

Code:
mythtv@delta ~ $ lsmod
Module                  Size  Used by
snd_usb_audio          74560  0
snd_usb_lib            15360  1 snd_usb_audio
snd_rawmidi            21408  1 snd_usb_lib
snd_hwdep               8324  1 snd_usb_audio
snd_pcm_oss            49184  0
snd_mixer_oss          17920  1 snd_pcm_oss
snd_seq_oss            32640  0
snd_seq_midi_event      6912  1 snd_seq_oss
snd_seq                50512  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          7820  3 snd_rawmidi,snd_seq_oss,snd_seq
snd_intel8x0           30492  0
snd_ac97_codec         92448  1 snd_intel8x0
snd_ac97_bus            2944  1 snd_ac97_codec
snd_pcm                81540  4 snd_usb_audio,snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              22276  2 snd_seq,snd_pcm
snd                    47460  12 snd_usb_audio,snd_rawmidi,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               8672  1 snd
snd_page_alloc          9352  2 snd_intel8x0,snd_pcm
lirc_serial            12928  0
lirc_dev               13572  1 lirc_serial
pwc                    93088  0


This means that when ever I boot I get annoying messages about attempting to load modules that have already been loaded.

All I'd like to know is where this file is so I can delete the repeated module load commands.

Any ideas?
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Fri Jun 09, 2006 5:33 pm    Post subject: Reply with quote

check to see if your sound card modules are in /etc/modules.autoload.d/kernel-2.6
that would definetely cause it. If all else fails re-run alsaconf.
Back to top
View user's profile Send private message
ben_dash
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 239

PostPosted: Fri Jun 09, 2006 7:28 pm    Post subject: Reply with quote

Haha - I tried that already, that's what got me in this problem :-)

When I first noticed that I had the modules attempting to load twice I ran alsaconf again and now I have them attempting to load 3 times.

alsaconf didn't put them in modules.autoload, that would be much too easy :-)

It's also not in /etc/modules.d/alsa. The modules are only in there once.

It's a PITA!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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