I don't claim to be an expert in devfs, but I've used it for a while, and
this works for me. The thing to know about devfs is that the files inside
it aren't real; that is, they go away after each reboot. If you have devfs
setup, you should notice that a /dev/snd directory appears when you load
your alsa sound modules and is not there when you don't. Also, if most of
the files in /dev appear to be symlinks, or you have very few files in
that directory, you probably have devfs enabled in the kernel.

To get a dev/sequencer working, you could just insert the appropriate
module (snd-seq-oss) and do a 'ln -s /dev/sound/sequencer /dev/sequencer',
but that's not the best solution. What you have to convince devfsd, a
program that adds missing symlinks, permissions, etc. automatically to the
devfs mount, to add what you want. Be sure that you have devfsd installed
and ready on your system (if you have devfs, you probably have devfsd.)

Now edit /etc/devfsd.conf. Be sure to have at least this (taylor to your
needs) :

# Enable full compatibility mode for old device names.
REGISTER    .*      MKOLDCOMPAT
UNREGISTER  .*      RMOLDCOMPAT

# Gives all users r/w permissions on sound devices
REGISTER ^sound/.* PERMISSIONS root.users 660
REGISTER ^snd/.* PERMISSIONS root.users 660

Combine this with the appropriate entries in modules.conf

alias char-major-116 snd
options snd snd_cards_limit=1 snd_major=116
alias snd-card-0 snd-ad1816a

alias sound-slot-0 snd-card-0
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-11 snd-mixer-oss
alias sound-service-0-12 snd-pcm-oss

And load the OSS compatibility modules:

/sbin/modprobe snd-ad1816a
/sbin/modprobe snd-opl3-synth
/sbin/modprobe snd-pcm-oss
/sbin/modprobe snd-seq-oss

And viola (again!), you get this in /dev

lr-xr-xr-x    1 root     root           11 Jun 12 09:54 audio ->
sound/audio
lr-xr-xr-x    1 root     root           10 Jun 12 09:54 dmfm -> sound/dmfm
lr-xr-xr-x    1 root     root           12 Jun 12 09:54 dmmidi ->
sound/dmmidi
lr-xr-xr-x    1 root     root            9 Jun 12 09:54 dsp -> sound/dsp
lr-xr-xr-x    1 root     root           10 Jun 12 09:54 midi -> sound/midi
lr-xr-xr-x    1 root     root           11 Jun 12 09:54 mixer ->
sound/mixer
lr-xr-xr-x    1 root     root           15 Jun 12 11:14 sequencer ->
sound/sequencer
lr-xr-xr-x    1 root     root           16 Jun 12 11:14 sequencer2 ->
sound/sequencer2

Can you follow?

 - Brent

On Wed, 12 Jun 2002, Bernez K wrote:

> Hi,
>
> I am still desesperately trying to install and configure alsa in order
> to play MIDI files. I already posted a number of messages to Alsa-user
> list and I thank all the people who tried to help me but I am still
> worried.
>
> I have'nt got /dev/sequencer.
>
> The install file in alsa-driver directory gives: 5) Run the
> './snddevices' script to create new sound devices in /dev directory.
>    Skip this step, if you have a kernel with the DEVFS support.
>
> Does this mean that './snddevices' MUST NOT be used to create new sound
> devices when using DEVFS support ? If yes (do not use snddevices) how to
> create them ?
>
>
> Bernez
> ------------------------------------------------------------------------
> Mandrale-Linux-8.2 (Kernel-2.4.18-6mdk) with DEVFS support
> CreativeLabs SoundBlaster Live! - alsa-0.9.0beta12
>
> _______________________________________________________________
>
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> _______________________________________________
> Alsa-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/alsa-user
>



_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to