LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-09-2003, 06:35 AM   #1
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Rep: Reputation: 15
Question How to make Alsa driver loading?


Hi!

After making all necessary compiling and so on jobs with ALsa I have still one problem : during booting something (kmod?, pnp?) loads by default kernel drivers for my maestro2 sound card. What and where should I change to load Alsa drivers instead?
Step by step guide would be appreciated.
 
Old 04-09-2003, 07:04 AM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
If Slack 8.1 then probably /etc/rc.d/rc.modules. Edit the script and look for the module names. If they are not remarked out then remark them. You could also add your alsa driver commands here in this script to load them when the system boots. But also, check the /etc/rc.d/rc.local file as well. You may have added the modules there instead.

If Slack 9.0 and hotplug is enabled, then add the maestro kernel modules to the end of the /etc/hotplug/blacklist to prevent the modules from loading. You could then add your alsa drivers to the /etc/rc.d/rc.modules script or the /etc/rc.d/rc.local script.
 
Old 04-09-2003, 10:27 AM   #3
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
Thanks Excalibur.

I use Slack 9.0, your way seems to be OK, but isn't it possible to force hotplug (if it is really responsible for loading sound card module) to "see" Alsa modules instead of kernel ones? I think it would be more elegant (result probably the same).
 
Old 04-09-2003, 11:53 AM   #4
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
Prefered way to load alsa modules is through /etc/modules.conf (this way you'll be able to setup all sound related services and options in a consistent way) unless you have specific requirements on the order of the modules loading (check out recent thread started by neenee a few days ago). In any case I strongly recomend to visit the project's website: www.alsa-project.org and browse documentation both general and specific to your sound card (such as writing /etc/modules.conf and ~/.asoundrc files).
Best of luck,
Nick.
 
Old 04-09-2003, 02:12 PM   #5
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
I would think the method would probably be to add the kernel modules to the blacklist and then setup the aliases for the alsa modules in the /etc/modules.conf file. Since this file is normally blank in Slackware and not normally used I am not familar with the syntax of the statements. But I would agree with the prior post by Nick that the Alsa project page would have the info on how to setup the modules.conf file. I would be interested in knowing if Slack would actually use it. For my part it has always been easier to add it to rc.local.
 
Old 04-10-2003, 04:37 AM   #6
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
Hi

You are right, Excalibur, problem is not in inserting proper statments in modules.conf (it is really well described on Alsa project page) but if modules.conf is used by Slackware. I didn't find any calls to this file in init scripts or hotplug (but maybe I missed something or this file is used directly by kmod).
Do yo have any idea, which scripts (exept rc.modules and hotplug) are responsible for loading modules?
 
Old 04-10-2003, 05:21 AM   #7
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Rep: Reputation: 30
/etc/modules.conf is used by slackware.

i recommend adding your soundcard module to
your blacklist, even though you might find it an
ugly method. first get it to work. you can always
polish the process afterwards.

good luck.
 
Old 04-10-2003, 07:51 AM   #8
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
I am not sure since I do not use the modules.conf, but I suspect it is used by the kernel module autoloader that has been around for quite awhile. If the stock kernels enable that feature then I suspect it would use the file. If I recall from what I remember reading, the modules.conf only contains statements to create alias assignment. In your case I think the alias is for "sound". I do not know if the different alias assignments are distro dependent or not. Since the file has always been empty in Slack I have never had a reason to really investigate it. Loading the modules from the rc.local script appears to be just fine and polished to me. But I tend to avoid any process that starts with the word "auto".
 
Old 04-11-2003, 04:28 AM   #9
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
Talking

Thanks a lot, guys!!!

I inserted my "old" (kernel) sound module in hotplug's blacklist, how you advised, and modproped proper Alsa modules in rc.local and ...yabadabado!!!! It works!!!! I haven't touched modules conf (it remains empty).
But, by the way, what for is this modules.conf? Is it alternative way of inserting modules? What for are all of these aliases in this file, if it looks like Slackware works pretty good without them?
 
Old 04-11-2003, 08:44 AM   #10
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
I believe it is there for compatibilty purposes. If a program or script wants to locate the file, then it would be present.
 
Old 04-15-2003, 03:34 AM   #11
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
I made some experiments recently and I discovered, that modules.conf is also suitable place to load Alsa drivers (I inserted all necessary statements and aliases to modules.conf according advices on www.alsa-project.org). All modules are loaded correctly and it works. Just one strange problem (it was the same when I used rc.local to start Alsa). In /proc/asound/cards it says, that I have two sound cards (both maestro2). Naturally, I have only one. And in syslog it complains about missing devices for sound_card_1 and sound_slot_1......bla, bla, bla.
Why it tries to load second card, which is not present ?
By the way, sound quality is really much better with Alsa drivers, and no dropouts anymore.
 
Old 04-15-2003, 09:22 AM   #12
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Modprobe looks at /etc/modules.conf when loading modules and applies any options and/or post module install commands, this is mine as an example,
Code:
# I2C module options
alias char-major-89 i2c-dev
options adm1021 ignore=2, 0x18

#SoundBlaster Live! 5.1
alias char-major-116      emu10k1
alias sound-slot-0        emu10k1
alias sound-service-0-0   emu10k1
alias sound-service-0-1   emu10k1
alias sound-service-0-3   emu10k1
alias sound-service-0-8   emu10k1
alias sound-service-0-12  emu10k1
post-install enu10k1 /usr/local/etc/emu-script


# DXR3 MPEG decoder
alias char-major-121      em8300
alias sound-slot-1        em8300
alias sound-service-1-0   em8300
alias sound-service-1-1   em8300
alias sound-service-1-3   em8300
alias sound-service-1-8   em8300
alias sound-service-1-12  em8300

below em8300 adv717x
below adv717x sound-slot-0 sound-service-0-3
options adv717x pixelport_16bit=0 pixelport_other_pal=0 swap_redblue_pal=0
options em8300 dicom_fix=1 dicom_control=1 dicom_other_pal=0
post-install em8300 /usr/local/bin/em8300setup

alias char-major-195 nvidia
 
Old 04-16-2003, 08:30 AM   #13
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
OK, Aussie, but how I see you have a device (em8300) inserted in "sound_slot_1". I have nothing (just one sundcard maestro2) inserted (it is laptop CA6300). So what tries to find any device inserted in "sound_slot_1", why it complains (in syslog) about missing "sound_card_1" and how to stop it from doing this?
 
Old 04-16-2003, 08:54 AM   #14
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
I have a soundblaster live 5.1 sound card and a hollywood+ dvd decoder card that also has sound components, thus the two sound slots, the other em8300 entries are to do with the mpeg decoder and tv out chips on the card.

What brand is your laptop?
A search on linux-laptop.net may shed some light on the problem.
 
Old 04-16-2003, 09:13 AM   #15
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
Thanks, Aussie for quick reply.
It is California Access 6300, rather old one (Pentium II 266Mhz), but still working, I use it generally for testing different distros (Vector recently - as it is Slackware based I "dropped" into Slack 9). It contains maestro2 as sound device and nothing more is added, except pcimcia modem (but the last one is properly detected and works OK). Is it possible that hotplug (or other init script) expects something in sound _slot_1 and complains when nothing is found?
Or maybe I should insert something like "alias sound-slot-1 off", but I don't know if this is possible in "modules.conf".
I will try link you adviced me a.s.a.p.
 
  


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
unable to make alsa-driver: error 1 chirayan Red Hat 7 06-02-2005 04:48 AM
'make' error compiling alsa driver rickh Debian 3 05-14-2005 12:28 AM
Help,how can I install alsa driver and make it work? LittlesnowLinux Debian 2 11-25-2004 08:36 AM
Fc2 How To Make Alsa Driver Woking . vashistvishal Fedora - Installation 2 08-01-2004 07:49 AM
Unable to boot into Mandrake - ALSA driver loading problem jianneng Linux - Newbie 1 02-13-2003 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:28 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