LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-22-2006, 03:38 AM   #1
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Rep: Reputation: 15
Automatic load of snd modules


Hello
I need some help with my new mobo.
It is a ASRock AM2NF6G-VSTA, with an integrated sound card:
Realtek ALC888 7.1 channel CODEC with High Definition Audio
The problem is that as soon as I cat anything onto /dev/dsp, or as soon as I try to read /dev/sndstat, the modules of my old soundcard (snd-sb16-*) are loaded.
I do not want them to be loaded. How can I prevent it?
I couldn't find which file should I edit (and how).
I found reference to the snd-sbawe module in one file only:
Code:
debian:~# grep --recursive "alias snd-card-0" /etc/* 2>/dev/null 
/etc/modprobe.d/sound:alias snd-card-0 snd-sbawe
but setting it to my new module (snd-hda-intel) do not prevent the old modules to be loaded.
Actually, all modules ("old" and "new") are loaded.
Audio does not work.

See below for details.

Thanks

Code:
debian:~# rmmod `lsmod | grep snd | cut -d " " -f 1`
debian:~# `locate snddev`
Creating /dev/mixer?... done
Creating /dev/sequencer... done
Creating /dev/midi0?... done
Creating /dev/dsp?... done
Creating /dev/audio?... done
Creating /dev/sndstat... done
Creating /dev/music... done
Creating /dev/dmmidi?... done
Creating /dev/dmfm?... done
Creating /dev/amixer?... done
Creating /dev/adsp?... done
Creating /dev/amidi?... done
Creating /dev/admmidi?... done
create symbolic link `/dev/mixer' to `/dev/mixer0'
create symbolic link `/dev/midi' to `/dev/midi00'
create symbolic link `/dev/dsp' to `/dev/dsp0'
create symbolic link `/dev/audio' to `/dev/audio0'
create symbolic link `/dev/sequencer2' to `/dev/music'
create symbolic link `/dev/adsp' to `/dev/adsp0'
create symbolic link `/dev/amidi' to `/dev/amidi0'
rm: cannot remove `/dev/snd': Is a directory
Creating /dev/snd/control?... done
Creating /dev/snd/seq... done
Creating /dev/snd/timer... done
Creating /dev/snd/hw??... done
Creating /dev/snd/midi??... done
Creating /dev/snd/pcm??p... done
Creating /dev/snd/pcm??c... done
ALSA loader devices
Creating /dev/aload?... done
Creating /dev/aloadSEQ... done
debian:~# 
guldo:~$ mplayer pippo.wav
[...]
ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM default
[AO SDL] Unable to open audio: No available audio device
Could not open/initialize audio device -> no sound.
[...]
debian:~# lsmod | grep snd
snd_opl3_lib           10240  0 
snd_sb16_dsp           10176  0 
snd_sb16_csp           18752  0 
snd_sb_common          16320  2 snd_sb16_dsp,snd_sb16_csp
snd_hwdep               9156  2 snd_opl3_lib,snd_sb16_csp
snd_mpu401_uart         8384  0 
snd_rawmidi            23200  1 snd_mpu401_uart
snd_seq_device          8140  2 snd_opl3_lib,snd_rawmidi
snd_hda_intel          17620  0 
snd_hda_codec         138816  1 snd_hda_intel
snd_pcm_oss            39200  0 
snd_mixer_oss          15552  1 snd_pcm_oss
snd_pcm                68996  4 snd_sb16_dsp,snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              21316  2 snd_opl3_lib,snd_pcm
snd_page_alloc          9928  2 snd_hda_intel,snd_pcm
snd                    47524  14 snd_opl3_lib,snd_sb16_dsp,snd_sb16_csp,snd_sb_common,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               9568  1 snd
 
Old 12-22-2006, 07:44 AM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I usually just run alsaconf which zips through an automated config script, asks me WHICH of my two sound cards I'd like to use, it then loads the modules for that card.

Run the mixer and adjust levels..

alsactl store to save the setting so they will be there on next reboot, whenever that may be...
 
Old 12-22-2006, 01:27 PM   #3
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer
I usually just run alsaconf
Thanks for the answer.
I forgot to mention that alsaconf finds no soundcards.
Code:
No supported PnP or PCI card found.
Would you like to probe legacy ISA sound cards/chips?
and I answered no.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Q: Can't load snd-ca0106 module WHILE IT's RIGHT THERE steefje Linux - Hardware 2 01-18-2009 12:45 PM
snd-* modules disappeared after kernel recompile Soulstealer Linux - Software 7 03-27-2005 02:48 PM
Issue with snd-pcm-oss and snd-mixer-oss; OSS load failed EnigmaX Slackware 3 07-26-2004 03:26 PM
How to load modules on demand (automatic loading)? Cyb3rPr0 Linux - Software 4 07-07-2004 11:07 PM
can't load snd-via82xx module splinter889 Linux - Hardware 13 01-08-2004 06:20 PM


All times are GMT -5. The time now is 08:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration