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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
 
2
/* linux/drivers/sound/dmasound.h */
3
 
4
/*
5
 * Minor numbers for the sound driver.
6
 *
7
 * Unfortunately Creative called the codec chip of SB as a DSP. For this
8
 * reason the /dev/dsp is reserved for digitized audio use. There is a
9
 * device for true DSP processors but it will be called something else.
10
 * In v3.0 it's /dev/sndproc but this could be a temporary solution.
11
 */
12
 
13
#define SND_NDEVS       256     /* Number of supported devices */
14
#define SND_DEV_CTL     0        /* Control port /dev/mixer */
15
#define SND_DEV_SEQ     1       /* Sequencer output /dev/sequencer (FM
16
                                   synthesizer and MIDI output) */
17
#define SND_DEV_MIDIN   2       /* Raw midi access */
18
#define SND_DEV_DSP     3       /* Digitized voice /dev/dsp */
19
#define SND_DEV_AUDIO   4       /* Sparc compatible /dev/audio */
20
#define SND_DEV_DSP16   5       /* Like /dev/dsp but 16 bits/sample */
21
#define SND_DEV_STATUS  6       /* /dev/sndstat */
22
/* #7 not in use now. Was in 2.4. Free for use after v3.0. */
23
#define SND_DEV_SEQ2    8       /* /dev/sequencer, level 2 interface */
24
#define SND_DEV_SNDPROC 9       /* /dev/sndproc for programmable devices */
25
#define SND_DEV_PSS     SND_DEV_SNDPROC
26
 
27
#define DSP_DEFAULT_SPEED       8000
28
 
29
#define ON              1
30
#define OFF             0
31
 
32
#define MAX_AUDIO_DEV   5
33
#define MAX_MIXER_DEV   2
34
#define MAX_SYNTH_DEV   3
35
#define MAX_MIDI_DEV    6
36
#define MAX_TIMER_DEV   3

powered by: WebSVN 2.1.0

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