patch-2.1.41 linux/drivers/sound/Readme.linux

Next file: linux/drivers/sound/Readme.v30
Previous file: linux/drivers/sound/Readme.cards
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.40/linux/drivers/sound/Readme.linux linux/drivers/sound/Readme.linux
@@ -72,171 +72,14 @@
 Hannu Savolainen
 hannu@voxware.pp.fi
 
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-NOTE!
-
-Running the script enclosed below is usually not required. All known Linux
-distributions build them automaticly during installation. You need to run
-this script only if "ls /dev/sndstat" displays "No such file or directory".
-In case of any other error message you should start looking for the reason
-from somewhere else (see above).
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 ----------------- cut here ------------------------------
-#!/bin/sh
-# *****************************************
-# * NOTICE!
-# *
-# * For security reasons read access to /dev/dsp* and /dev/audio* has been
-# * disabled from other than root. Otherwise any user may be able to spy
-# * what is being talked about near the microphone.
-# * This effectively disables audio recording by other than root. In case
-# * this capability is required, you should change AUDIOPERMS (below) to 666
-# * before executing this script.
-# *****************************************
-AUDIOPERMS=622
-#
-#
-#
-#
-# Create the devices
-#
-#	Mixer devices
-#
-if [ -e /dev/mixer ]; then 
-	rm -f /dev/mixer 
-fi
-
-if [ -e /dev/mixer0 ]; then 
-	rm -f /dev/mixer0 
-fi
- 
-mknod -m 666 /dev/mixer0 c 14 0
-ln -sf /dev/mixer0 /dev/mixer
-
-if [ -e /dev/mixer1 ]; then 
-	rm -f /dev/mixer1 
-fi
-mknod -m 666 /dev/mixer1 c 14 16
-
-
-#	Sequencer	(14, 1)
-#
-if [ -e /dev/sequencer ]; then
-	rm -f /dev/sequencer
-fi
-mknod -m 666 /dev/sequencer c 14 1
-
-if [ -e /dev/patmgr0 ]; then
-	rm -f /dev/patmgr0
-fi
-mknod -m 666 /dev/patmgr0 c 14 17
-if [ -e /dev/patmgr1 ]; then
-	rm -f /dev/patmgr1
-fi
-mknod -m 666 /dev/patmgr1 c 14 33
-
-	#	music	(14, 8)
-	#
-	if [ -e /dev/music ]; then
-		rm -f /dev/music
-	fi
-
-	mknod -m 666 /dev/music c 14 8
-	if [ -e /dev/sequencer2 ]; then
-		rm -f /dev/sequencer2
-	fi
-	ln -s /dev/music /dev/sequencer2
-
-#	Midi devices
-#
-if [ -e /dev/midi ]; then
-	rm -f /dev/midi		# Old name. Don't use it
-fi
-	if [ -e /dev/midi00 ]; then
-		rm -f /dev/midi00
-	fi
-	mknod -m 666 /dev/midi00 c 14 2
-	ln -sf /dev/midi00 /dev/midi
-	
-	if [ -e /dev/midi01 ]; then
-		rm -f /dev/midi01
-	fi
-	mknod -m 666 /dev/midi01 c 14 18
-	
-	if [ -e /dev/midi02 ]; then
-		rm -f /dev/midi02
-	fi
-	mknod -m 666 /dev/midi02 c 14 34
-	
-	if [ -e /dev/midi03 ]; then
-		rm -f /dev/midi03
-	fi
-	mknod -m 666 /dev/midi03 c 14 50
-#
-#	DSP		(14, 3)
-#
-if [ -e /dev/dsp ]; then
-	rm -f /dev/dsp
-fi
-if [ -e /dev/dsp0 ]; then
-	rm -f /dev/dsp0
-fi
-mknod -m $AUDIOPERMS /dev/dsp0 c 14 3
-ln -s /dev/dsp0 /dev/dsp
-
-#
-#	DSPW		(14, 5)
-#
-if [ -e /dev/dspW ]; then
-	rm -f /dev/dspW
-fi
-if [ -e /dev/dspW0 ]; then
-	rm -f /dev/dspW0
-fi
-mknod -m $AUDIOPERMS /dev/dspW0 c 14 5
-ln -s /dev/dspW0 /dev/dspW
+SURPRISE SURPRISE!!!
 
-if [ -e /dev/dspW1 ]; then
-	rm -f /dev/dspW1
-fi
-mknod -m $AUDIOPERMS /dev/dspW1 c 14 37
+The device file creation script that used to be here earlier is 
+obviously not here any more.
 
-#
-#	SPARC compatible /dev/audio	(14, 4)	
-#
-if [ -e /dev/audio ]; then
-	rm -f /dev/audio
-fi
-if [ -e /dev/audio0 ]; then
-	rm -f /dev/audio0
-fi
-mknod -m $AUDIOPERMS /dev/audio0 c 14 4
-ln -s /dev/audio0 /dev/audio
+Why?
 
-#
-#	DSP1		(14, 19) /dev/dsp for the second soundcard.
-#				Also the SB emulation part of the
-#				PAS16 card.
-#
-if [ -e /dev/dsp1 ]; then
-	rm -f /dev/dsp1
-fi
-mknod -m $AUDIOPERMS /dev/dsp1 c 14 19
-#
-#	SPARC audio1	(14, 20) 
-#				/dev/audio for the second soundcard.
-#				Also the SB emulation part of the
-#				PAS16 card.
-#
-if [ -e /dev/audio1 ]; then
-	rm -f /dev/audio1
-fi
-mknod -m $AUDIOPERMS /dev/audio1 c 14 20
-#
-#	/dev/sndstat	(14,6)	For debugging purposes
-#
-if [ -e /dev/sndstat ]; then
-	rm -f /dev/sndstat
-fi
-mknod -m 666 /dev/sndstat c 14 6
-exit 0
+Because you do not need it. All Linux distributions have the
+device files properly created (yes they are) so you should not
+try to run any scripts which create them.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov