Thank you very much for that wonderful explanation of how this works
Fedor.  I really appreciate it!  I found out by accident after I posted
the questions that it all works correctly, autoloaded and all.
Everything works great and its even saving the settings when the system
shuts down. Im going to save that explanation in my "saved" folder, for
reference.  

On Sun, 2003-06-08 at 22:25, Fedor G. Pikus wrote:
> If your devices are present, this modules-conf should work.
> The whole autoloading thing is done by these two lines:
> alias char-major-116 snd
> alias char-major-14 soundcore
> 
> What this does is tells the kernel loader to load snd.o when someone
> accesses char device with major 116 (and that's all devices in your
> /dev/snd/ directory, stuff like pcmC0D0p)
> Also, when char device with major 14 is accessed (that's all OSS devices,
> like dsp0) soundcore.o should be loaded. If you did not forget to run
> "depmod -a" after installing alsa, and your devices are created and you
> have permissions to access them, the dependencies should resolve in the
> end to loading snd-card-0 which is really snd-via82xx.o
> 
> If you boot up and modules don't load, try to play some sound while you
> watch the output of
> tail -f /var/log/messages
> You may see somethign like this:
> modprobe: modprobe: Can't locate module char-major-116
> This means that either there is no alias for char-major-116 (but you have
> it) or the file it's aliased to does not exist (or exists in the wrong
> place). Do "uname -a" to make sure you run the kernel you think you run,
> then do "find /lib/modules -name '*snd-via82xx*'", you should find it in
> /lib/modules/2.4.20-13.7/kernel/sound/snd-via82xx.o
> or whatever your kernel version is.
> 
> If it's there, and "depmod -a" completes without any error messages, the
> module will load. Rather, it'll attempt to load it. You may see in your
> /var/log/messages that instead of not being able to locate the module, it
> says that there were errors and module was not loaded. Post the error
> messages, then may be we can help you.
> 
> As for your second question, it's a bit premature to tackle it, what you
> are trying to do relies strongly on modules autoloading and dependencies,
> get it working first.
> 
> There is another way. You can start ALSA like a service, from init.d.
> I attached the alsasound script I use, put it into /etc/init.d and symlink
> it to /etc/rc5.d as /etc/rc5.d/S87alsasound (or rc3.d if you come up into
> runlevel 3). Don't forged to add another link, /etc/rc0.d/K14alsasound
> (and rc6.d and rc1.d).
> 
> Now try /etc/init.d/alsasound start, and you should have it all working.
> 
> 
> On 8 Jun 2003, Michael Williams wrote:
> > Hi guys, thanks to help from Fedor Pikus and Boris Goldowsky, I was able
> > to build ALSA successfully and it works.  I currently am stymied by 2
> > other small issues though.  I have searched the documentation on the
> > www.alsa-project.org site, but havent come up with a solution.  My ALSA
> > modules arent loading automatically. I have attached my modules.conf to
> > the bottom.  I cut and pasted the examples from the section on the
> > snd-via82xx driver as instructed, but its not loading automatically.
> > One thing I dont understand is the last 2 lines in my example. I couldnt
> > find any mention of them on the documentation, are they for OSS and not
> > ALSA? Or are they just wrong for ALSA? Also, does their placement
> > matter?  What do they do? Also, after I reboot and modprobe snd-via82xx
> > I get sound, but first I have to go into the "volume control" applet in
> > Gnome and adjust some of the volumes up, they all default to 0. Anyway
> > to have the sound system remember your settings across reboots, or at
> > least default to a certain value that is audible?
> >
> > I know thats a lot of questions, thanks a ton for your help so far.
> >
> > #<modules.conf follows:>
> >
> > alias eth0 3c59x
> > alias usb-controller usb-uhci
> > alias char-major-195 nvidia
> >
> > # ALSA portion
> > alias char-major-116 snd
> > alias snd-card-0 snd-via82xx
> > # module options should go here
> >
> > # OSS/Free portion
> > alias char-major-14 soundcore
> > alias sound-slot-0 snd-card-0
> >
> > # card #1
> > alias sound-service-0-0 snd-mixer-oss
> > alias sound-service-0-1 snd-seq-oss
> > alias sound-service-0-3 snd-pcm-oss
> > alias sound-service-0-8 snd-seq-oss
> > alias sound-service-0-12 snd-pcm-oss
> >
> > #BTTV Line
> > alias char-major-81 bttv card=64 type=2
> >
> > post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L
> > >/dev/null 2>&1 || :
> > pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S
> > >/dev/null 2>&1 || :
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> > thread debugger on the planet. Designed with thread debugging features
> > you've never dreamed of, try TotalView 6 free at www.etnus.com.
> > _______________________________________________
> > Alsa-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/alsa-user
> >



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to