Skip to Content.
Sympa Menu

baslinux - Re: [BL] BL2 sound device drivers not being created - kernel module bug

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: BasicLinux <baslinux AT lists.ibiblio.org>
  • Subject: Re: [BL] BL2 sound device drivers not being created - kernel module bug
  • Date: Sat, 4 Sep 2004 22:23:16 +0000 (UTC)

Corrections to my 'mksnddev', which you should put into /dev and run in order to make the device files /dev/psd* /dev/audio* /dev/mixer* and /dev/sndstat needed to play wav files and probably in general for sound.
The sb.o module for kernel 2.2.14 and other 2.2.x (maybe also 2.3.x) does not make these properly. Slackware 7.1 and at least one Redhat 6.x version had this problem which generated error messages trying to use play (sox), bplay, or splay, about audio sound buffer sizes, ioctl, etc.
The devices were not being made properly (dsp and audio were incorrect,
audio1 was there, but none of the others existed).

Here is the whole thing again:
#Creates sound files needed to play on SB16 with buggy 2.2.14 kernel
# that created these wrongly. You can also make midi* music patmgr
# sequencer but only dsp and mixer are needed to play. cat /dev/sndstat
# provides info about the sound hardware and software.

cd /dev
rm dsp
rm audio*
mknod audio0 c 14 4
mknod audio1 c 14 20
ln -s audio0 audio
mknod dsp0 c 14 3
mknod dsp1 c 14 19
ln -s dsp0 dsp
#mknod midi00 14 2
#mknod midi01 14 18
#mknod midi02 14 34
#mknod midi03 14 50
#mknod music c 14 8
mknod mixer c 14 0
mknod mixer1 c 14 16
#mknod patmgr0 c 14 17
#mknod patmgr1 c 14 33
#mknod sequencer c 14 1
#ln -s /dev/music sequencer2
mknod sndstat c 14 6
chmod +x *

# These will end up root root. Correct for audio is root sys. Works
# anyway, at least as root.

On Sat, 4 Sep 2004, sindi keesan wrote:

Someone please post for BL2 or kernel 2.2.14 users with SB16 cards (including imitations such as ESS 1370 and 1371) the script mkssnddev:

The script works without #!/bin/sh.

Please let me know which version of Redhat and SuSe use 2.2.14 or later.
SW7.0 uses 2.2.13 - I was going to try its kernel next.
------------------------

#Creates sound device files needed for SB16-type cards on buggy # 2.2.14 kernel (SW7.1, BL2, BL3, Redhat 6.x)
# that created these wrongly. Only dsp and mixer are needed to play.
# cat /dev/sndstat provides info about the sound hardware and software.
# Remove the # before other devices if you want to make those too.

cd /dev
rm dsp

## > rm audio
should be rm audio1

mknod audio0 c 14 4
mknod audio1 c 14 20
ln -s audio0 audio
mknod dsp0 c 14 3
mknod dsp1 c 14 19

####> ln -s dsp dsp0
Should be
ln -s dsp0 dsp

#mknod midi00 14 2
#mknod midi01 14 18
#mknod midi02 14 34
#mknod midi03 14 50
#mknod music c 14 8
mknod mixer c 14 0
mknod mixer1 c 14 16
#mknod patmgr0 c 14 17
#mknod patmgr1 c 14 33
#mknod sequencer c 14 1
#ln -s /dev/music sequencer2
mknod sndstat c 14 6
chmod +x *

# These will end up root root. Correct for audio is root sys. Works
# anyway, at least as root.
------------------------

On Sat, 4 Sep 2004, sindi keesan wrote:

I was able to create the dsp files in /dev without a script or MAKEDEV as follows:

mknod dsp0 c 14 3
mknod dsp1 c 14 19
rm dsp [there was an old incorrect file so I could not make a symlink]
ln -s dsp0 dsp
chmod +x dsp*

The files are root root, not root sys. Will this change itself or cause problems and if so what do I do about it?
The old audio1 is root sys, and the new audio0 is root root.
My index does not list mknod.
PLEASE HELP!!!!

Once I figure out how to change root to sys, I will try playing wav files again after rebooting with bare.i kernel, and then create /dev/mixer, which another site says is the only thing you need besides /dev/dsp to just play sound.

rm audio
mknod audio0 c 14 4
ln -s audio0 audio
chmod +x audio*

mknod mixer c 14 0
mknod mixer1 c 14 16
chmod +x mixer*

The numbers are major and minor numbers.

For anyone using this posting as a reference the numbers are:
mknod midi00 c 14 2
.... midi01 c 14 18
midi02 14 34
midi03 14 50
music 14 8
patmgr0 14 17
patmgr1 14 33
sequencer 14 1
sndstat 14 6

ln -s /dev/music sequencer2

You need other files to use the PC speaker sound driver.


Can I or modify these files manually to match what is in the book (plus adding the column with sys)? Looks like I need to assign root, sys, and two numbers and a name. I have the list of what they should be (on the other computer). Or I suppose I could plug in an ESS SOLO card and run esssolo1.o and maybe that will make the files for me. Might have been what miraculously helped someone else who was experimenting with this.

keesan AT sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org
_______________________________________________
_______________________________________________
BasLinux mailing list
BasLinux AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/baslinux


keesan AT sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org
_______________________________________________
BasLinux mailing list
BasLinux AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/baslinux


keesan AT sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org




Archive powered by MHonArc 2.6.24.

Top of Page