OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [sound/] [Readme.linux] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
Installation
2
------------
3
 
4
IMPORTANT!      Read this if you are installing a separately
5
                distributed version of this driver.
6
 
7
                Check that your kernel version works with this
8
                release of the driver (see Readme). Also verify
9
                that your current kernel version doesn't have more
10
                recent sound driver version than this one. IT'S HIGHLY
11
                RECOMMENDED THAT YOU USE THE SOUND DRIVER VERSION THAT
12
                IS DISTRIBUTED WITH KERNEL SOURCES.
13
 
14
- When installing separately distributed sound driver you should first
15
  read the above notice. Then try to find proper directory where and how
16
  to install the driver sources. You should not try to install a separately
17
  distributed driver version if you are not able to find the proper way
18
  yourself (in this case use the version that is distributed with kernel
19
  sources). Remove old version of linux/drivers/sound directory before
20
  installing new files.
21
 
22
- To build the device files you need to run the enclosed shell script
23
  (see below). You need to do this only when installing sound driver
24
  first time or when upgrading to much recent version than the earlier
25
  one.
26
 
27
- Configure and compile Linux as normally (remember to include the
28
  sound support during "make config"). Please refer to kernel documentation
29
  for instructions about configuring and compiling kernel. File Readme.cards
30
  contains card specific instructions for configuring this driver for
31
  use with various sound cards.
32
 
33
Boot time configuration (using lilo and insmod)
34
-----------------------------------------------
35
 
36
This information has been removed. Too many users didn't believe
37
that it's really not necessary to use this method. Please look at
38
Readme of sound driver version 3.0.1 if you still want to use this method.
39
 
40
Problems
41
--------
42
 
43
If you have any kind of problems, there is a debugging feature which
44
could help you to solve the problem. To use it, just execute the
45
command:
46
 
47
        cat /dev/sndstat
48
 
49
and look at the output. It should display some useful info about the
50
driver configuration. If there is no /dev/sndstat
51
(/dev/sndstat: No such file or directory), ensure that you have executed the
52
soundinstall script (at the end of this file).
53
 
54
Common error messages:
55
 
56
- /dev/???????: No such file or directory.
57
Run the script at the end of this file.
58
 
59
- /dev/???????: No such device.
60
You are not running kernel which contains the sound driver. When using
61
modularized sound driver this error means that the sound driver is not
62
loaded.
63
 
64
- /dev/????: No such device or address.
65
Sound driver didn't detect suitable card when initializing. Please look at
66
Readme.cards for info about configuring the driver with your card. Also
67
check for possible boot (insmod) time error messages in /var/adm/messages.
68
 
69
- Other messages or problems
70
Please check http://www.4front-tech.com/ossfree for more info.
71
 
72
Hannu Savolainen
73
hannu@4front-tech.com
74
 
75
----------------- cut here ------------------------------
76
#!/bin/sh
77
echo Error: Read the notice in the beginning of this script before executing.
78
exit -1
79
Notice! Remove this notice and the above two lines before trying to execute.
80
        Trying to run this script is normally useless. The device files are
81
        almost certainly already set up correctly.
82
# *****************************************
83
# * NOTICE!
84
# *
85
# * For security reasons read access to /dev/dsp* and /dev/audio* has been
86
# * disabled from other than root. Otherwise any user may be able to spy
87
# * what is being talked about near the microphone.
88
# * This effectively disables audio recording by other than root. In case
89
# * this capability is required, you should change AUDIOPERMS (below) to 666
90
# * before executing this script.
91
# *****************************************
92
AUDIOPERMS=622
93
#
94
#
95
#
96
#
97
# Create the devices
98
#
99
#       Mixer devices
100
#
101
if [ -e /dev/mixer ]; then
102
        rm -f /dev/mixer
103
fi
104
 
105
if [ -e /dev/mixer0 ]; then
106
        rm -f /dev/mixer0
107
fi
108
 
109
mknod -m 666 /dev/mixer0 c 14 0
110
ln -sf /dev/mixer0 /dev/mixer
111
 
112
if [ -e /dev/mixer1 ]; then
113
        rm -f /dev/mixer1
114
fi
115
mknod -m 666 /dev/mixer1 c 14 16
116
 
117
 
118
#       Sequencer       (14, 1)
119
#
120
if [ -e /dev/sequencer ]; then
121
        rm -f /dev/sequencer
122
fi
123
mknod -m 666 /dev/sequencer c 14 1
124
 
125
if [ -e /dev/patmgr0 ]; then
126
        rm -f /dev/patmgr0
127
fi
128
mknod -m 666 /dev/patmgr0 c 14 17
129
if [ -e /dev/patmgr1 ]; then
130
        rm -f /dev/patmgr1
131
fi
132
mknod -m 666 /dev/patmgr1 c 14 33
133
 
134
        #       music   (14, 8)
135
        #
136
        if [ -e /dev/music ]; then
137
                rm -f /dev/music
138
        fi
139
 
140
        mknod -m 666 /dev/music c 14 8
141
        if [ -e /dev/sequencer2 ]; then
142
                rm -f /dev/sequencer2
143
        fi
144
        ln -s /dev/music /dev/sequencer2
145
 
146
#       Midi devices
147
#
148
if [ -e /dev/midi ]; then
149
        rm -f /dev/midi         # Old name. Don't use it
150
fi
151
        if [ -e /dev/midi00 ]; then
152
                rm -f /dev/midi00
153
        fi
154
        mknod -m 666 /dev/midi00 c 14 2
155
        ln -sf /dev/midi00 /dev/midi
156
 
157
        if [ -e /dev/midi01 ]; then
158
                rm -f /dev/midi01
159
        fi
160
        mknod -m 666 /dev/midi01 c 14 18
161
 
162
        if [ -e /dev/midi02 ]; then
163
                rm -f /dev/midi02
164
        fi
165
        mknod -m 666 /dev/midi02 c 14 34
166
 
167
        if [ -e /dev/midi03 ]; then
168
                rm -f /dev/midi03
169
        fi
170
        mknod -m 666 /dev/midi03 c 14 50
171
#
172
#       DSP             (14, 3)
173
#
174
if [ -e /dev/dsp ]; then
175
        rm -f /dev/dsp
176
fi
177
if [ -e /dev/dsp0 ]; then
178
        rm -f /dev/dsp0
179
fi
180
mknod -m $AUDIOPERMS /dev/dsp0 c 14 3
181
ln -s /dev/dsp0 /dev/dsp
182
 
183
#
184
#       DSPW            (14, 5)
185
#
186
if [ -e /dev/dspW ]; then
187
        rm -f /dev/dspW
188
fi
189
if [ -e /dev/dspW0 ]; then
190
        rm -f /dev/dspW0
191
fi
192
mknod -m $AUDIOPERMS /dev/dspW0 c 14 5
193
ln -s /dev/dspW0 /dev/dspW
194
 
195
if [ -e /dev/dspW1 ]; then
196
        rm -f /dev/dspW1
197
fi
198
mknod -m $AUDIOPERMS /dev/dspW1 c 14 37
199
 
200
#
201
#       SPARC compatible /dev/audio     (14, 4)
202
#
203
if [ -e /dev/audio ]; then
204
        rm -f /dev/audio
205
fi
206
if [ -e /dev/audio0 ]; then
207
        rm -f /dev/audio0
208
fi
209
mknod -m $AUDIOPERMS /dev/audio0 c 14 4
210
ln -s /dev/audio0 /dev/audio
211
 
212
#
213
#       DSP1            (14, 19) /dev/dsp for the second soundcard.
214
#                               Also the SB emulation part of the
215
#                               PAS16 card.
216
#
217
if [ -e /dev/dsp1 ]; then
218
        rm -f /dev/dsp1
219
fi
220
mknod -m $AUDIOPERMS /dev/dsp1 c 14 19
221
#
222
#       SPARC audio1    (14, 20)
223
#                               /dev/audio for the second soundcard.
224
#                               Also the SB emulation part of the
225
#                               PAS16 card.
226
#
227
if [ -e /dev/audio1 ]; then
228
        rm -f /dev/audio1
229
fi
230
mknod -m $AUDIOPERMS /dev/audio1 c 14 20
231
#
232
#       /dev/sndstat    (14,6)  For debugging purposes
233
#
234
if [ -e /dev/sndstat ]; then
235
        rm -f /dev/sndstat
236
fi
237
mknod -m 666 /dev/sndstat c 14 6
238
exit 0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.