Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
dev_table.h File Reference
#include <linux/spinlock.h>

Go to the source code of this file.

Data Structures

struct  driver_info
 
struct  card_info
 
struct  dma_buffparms
 
struct  coproc_operations
 
struct  audio_driver
 
struct  audio_operations
 
struct  mixer_operations
 
struct  synth_operations
 
struct  midi_input_info
 
struct  midi_operations
 
struct  sound_lowlev_timer
 
struct  sound_timer_operations
 

Macros

#define SNDCARD_DESKPROXL   27 /* Compaq Deskpro XL */
 
#define SNDCARD_VIDC   28 /* ARMs VIDC */
 
#define SNDCARD_SBPNP   29
 
#define SNDCARD_SOFTOSS   36
 
#define SNDCARD_VMIDI   37
 
#define SNDCARD_OPL3SA1   38 /* Note: clash in msnd.h */
 
#define SNDCARD_OPL3SA1_SB   39
 
#define SNDCARD_OPL3SA1_MPU   40
 
#define SNDCARD_WAVEFRONT   41
 
#define SNDCARD_OPL3SA2   42
 
#define SNDCARD_OPL3SA2_MPU   43
 
#define SNDCARD_WAVEARTIST   44 /* Waveartist */
 
#define SNDCARD_OPL3SA2_MSS   45 /* Originally missed */
 
#define SNDCARD_AD1816   88
 
#define MAX_SUB_BUFFERS   (32*MAX_REALTIME_FACTOR)
 
#define DMODE_NONE   0
 
#define DMODE_OUTPUT   PCM_ENABLE_OUTPUT
 
#define DMODE_INPUT   PCM_ENABLE_INPUT
 
#define DMA_BUSY   0x00000001
 
#define DMA_RESTART   0x00000002
 
#define DMA_ACTIVE   0x00000004
 
#define DMA_STARTED   0x00000008
 
#define DMA_EMPTY   0x00000010
 
#define DMA_ALLOC_DONE   0x00000020
 
#define DMA_SYNCING   0x00000040
 
#define DMA_DIRTY   0x00000080
 
#define DMA_POST   0x00000100
 
#define DMA_NODMA   0x00000200
 
#define DMA_NOTIMEOUT   0x00000400
 
#define DMA_MAP_MAPPED   0x00000001
 
#define BUFF_EOF   0x00000001 /* Increment eof count */
 
#define BUFF_DIRTY   0x00000002 /* Buffer written */
 
#define NOTHING_SPECIAL   0x00
 
#define NEEDS_RESTART   0x01
 
#define DMA_AUTOMODE   0x02
 
#define DMA_DUPLEX   0x04
 
#define DMA_PSEUDO_AUTOMODE   0x08
 
#define DMA_HARDSTOP   0x10
 
#define DMA_EXACT   0x40
 
#define DMA_NORESET   0x80
 
#define AM_NONE   0
 
#define AM_WRITE   OPEN_WRITE
 
#define AM_READ   OPEN_READ
 
#define CNV_MU_LAW   0x00000001
 
#define EMU_GM   1 /* General MIDI */
 
#define EMU_XG   2 /* Yamaha XG */
 
#define MAX_SYSEX_BUF   64
 
#define MI_MAX   10
 
#define MST_INIT   0
 
#define MST_DATA   1
 
#define MST_SYSEX   2
 
#define AUDIO_DRIVER_VERSION   2
 
#define MIXER_DRIVER_VERSION   2
 

Typedefs

typedef struct coproc_operations coproc_operations
 

Functions

intload_mixer_volumes (char *name, int *levels, int present)
 
int sound_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info)
 
void sound_timer_init (struct sound_lowlev_timer *t, char *name)
 
void sound_dma_intr (int dev, struct dma_buffparms *dmap, int chan)
 
int sound_install_audiodrv (int vers, char *name, struct audio_driver *driver, int driver_size, int flags, unsigned int format_mask, void *devc, int dma1, int dma2)
 
int sound_install_mixer (int vers, char *name, struct mixer_operations *driver, int driver_size, void *devc)
 
void sound_unload_audiodev (int dev)
 
void sound_unload_mixerdev (int dev)
 
void sound_unload_mididev (int dev)
 
void sound_unload_synthdev (int dev)
 
void sound_unload_timerdev (int dev)
 
int sound_alloc_mixerdev (void)
 
int sound_alloc_timerdev (void)
 
int sound_alloc_synthdev (void)
 
int sound_alloc_mididev (void)
 

Variables

struct sound_timer_operations default_sound_timer
 
struct audio_operationsaudio_devs [MAX_AUDIO_DEV]
 
int num_audiodevs
 
struct mixer_operationsmixer_devs [MAX_MIXER_DEV]
 
int num_mixers
 
struct synth_operationssynth_devs [MAX_SYNTH_DEV+MAX_MIDI_DEV]
 
int num_synths
 
struct midi_operationsmidi_devs [MAX_MIDI_DEV]
 
int num_midis
 
struct sound_timer_operationssound_timer_devs [MAX_TIMER_DEV]
 
int num_sound_timers
 

Macro Definition Documentation

#define AM_NONE   0

Definition at line 230 of file dev_table.h.

#define AM_READ   OPEN_READ

Definition at line 232 of file dev_table.h.

#define AM_WRITE   OPEN_WRITE

Definition at line 231 of file dev_table.h.

#define AUDIO_DRIVER_VERSION   2

Definition at line 372 of file dev_table.h.

#define BUFF_DIRTY   0x00000002 /* Buffer written */

Definition at line 146 of file dev_table.h.

#define BUFF_EOF   0x00000001 /* Increment eof count */

Definition at line 145 of file dev_table.h.

#define CNV_MU_LAW   0x00000001

Definition at line 237 of file dev_table.h.

#define DMA_ACTIVE   0x00000004

Definition at line 96 of file dev_table.h.

#define DMA_ALLOC_DONE   0x00000020

Definition at line 99 of file dev_table.h.

#define DMA_AUTOMODE   0x02

Definition at line 202 of file dev_table.h.

#define DMA_BUSY   0x00000001

Definition at line 94 of file dev_table.h.

#define DMA_DIRTY   0x00000080

Definition at line 101 of file dev_table.h.

#define DMA_DUPLEX   0x04

Definition at line 203 of file dev_table.h.

#define DMA_EMPTY   0x00000010

Definition at line 98 of file dev_table.h.

#define DMA_EXACT   0x40

Definition at line 206 of file dev_table.h.

#define DMA_HARDSTOP   0x10

Definition at line 205 of file dev_table.h.

#define DMA_MAP_MAPPED   0x00000001

Definition at line 135 of file dev_table.h.

#define DMA_NODMA   0x00000200

Definition at line 103 of file dev_table.h.

#define DMA_NORESET   0x80

Definition at line 207 of file dev_table.h.

#define DMA_NOTIMEOUT   0x00000400

Definition at line 104 of file dev_table.h.

#define DMA_POST   0x00000100

Definition at line 102 of file dev_table.h.

#define DMA_PSEUDO_AUTOMODE   0x08

Definition at line 204 of file dev_table.h.

#define DMA_RESTART   0x00000002

Definition at line 95 of file dev_table.h.

#define DMA_STARTED   0x00000008

Definition at line 97 of file dev_table.h.

#define DMA_SYNCING   0x00000040

Definition at line 100 of file dev_table.h.

#define DMODE_INPUT   PCM_ENABLE_INPUT

Definition at line 74 of file dev_table.h.

#define DMODE_NONE   0

Definition at line 72 of file dev_table.h.

#define DMODE_OUTPUT   PCM_ENABLE_OUTPUT

Definition at line 73 of file dev_table.h.

#define EMU_GM   1 /* General MIDI */

Definition at line 287 of file dev_table.h.

#define EMU_XG   2 /* Yamaha XG */

Definition at line 288 of file dev_table.h.

#define MAX_SUB_BUFFERS   (32*MAX_REALTIME_FACTOR)

Definition at line 70 of file dev_table.h.

#define MAX_SYSEX_BUF   64

Definition at line 289 of file dev_table.h.

#define MI_MAX   10

Definition at line 297 of file dev_table.h.

#define MIXER_DRIVER_VERSION   2

Definition at line 373 of file dev_table.h.

#define MST_DATA   1

Definition at line 303 of file dev_table.h.

#define MST_INIT   0

Definition at line 302 of file dev_table.h.

#define MST_SYSEX   2

Definition at line 304 of file dev_table.h.

#define NEEDS_RESTART   0x01

Definition at line 201 of file dev_table.h.

#define NOTHING_SPECIAL   0x00

Definition at line 200 of file dev_table.h.

#define SNDCARD_AD1816   88

Definition at line 37 of file dev_table.h.

#define SNDCARD_DESKPROXL   27 /* Compaq Deskpro XL */

Definition at line 24 of file dev_table.h.

#define SNDCARD_OPL3SA1   38 /* Note: clash in msnd.h */

Definition at line 29 of file dev_table.h.

#define SNDCARD_OPL3SA1_MPU   40

Definition at line 31 of file dev_table.h.

#define SNDCARD_OPL3SA1_SB   39

Definition at line 30 of file dev_table.h.

#define SNDCARD_OPL3SA2   42

Definition at line 33 of file dev_table.h.

#define SNDCARD_OPL3SA2_MPU   43

Definition at line 34 of file dev_table.h.

#define SNDCARD_OPL3SA2_MSS   45 /* Originally missed */

Definition at line 36 of file dev_table.h.

#define SNDCARD_SBPNP   29

Definition at line 26 of file dev_table.h.

#define SNDCARD_SOFTOSS   36

Definition at line 27 of file dev_table.h.

#define SNDCARD_VIDC   28 /* ARMs VIDC */

Definition at line 25 of file dev_table.h.

#define SNDCARD_VMIDI   37

Definition at line 28 of file dev_table.h.

#define SNDCARD_WAVEARTIST   44 /* Waveartist */

Definition at line 35 of file dev_table.h.

#define SNDCARD_WAVEFRONT   41

Definition at line 32 of file dev_table.h.

Typedef Documentation

Function Documentation

int* load_mixer_volumes ( char name,
int levels,
int  present 
)

Definition at line 85 of file soundcard.c.

int sound_alloc_mididev ( void  )

Definition at line 170 of file dev_table.c.

int sound_alloc_mixerdev ( void  )

Definition at line 197 of file dev_table.c.

int sound_alloc_synthdev ( void  )

Definition at line 182 of file dev_table.c.

int sound_alloc_timerdev ( void  )

Definition at line 209 of file dev_table.c.

void sound_dma_intr ( int  dev,
struct dma_buffparms dmap,
int  chan 
)
int sound_install_audiodrv ( int  vers,
char name,
struct audio_driver driver,
int  driver_size,
int  flags,
unsigned int  format_mask,
void devc,
int  dma1,
int  dma2 
)

Definition at line 51 of file dev_table.c.

int sound_install_mixer ( int  vers,
char name,
struct mixer_operations driver,
int  driver_size,
void devc 
)

Definition at line 110 of file dev_table.c.

int sound_map_buffer ( int  dev,
struct dma_buffparms dmap,
buffmem_desc info 
)
void sound_timer_init ( struct sound_lowlev_timer t,
char name 
)

Definition at line 306 of file sound_timer.c.

void sound_unload_audiodev ( int  dev)

Definition at line 149 of file dev_table.c.

void sound_unload_mididev ( int  dev)

Definition at line 234 of file dev_table.c.

void sound_unload_mixerdev ( int  dev)

Definition at line 224 of file dev_table.c.

void sound_unload_synthdev ( int  dev)

Definition at line 243 of file dev_table.c.

void sound_unload_timerdev ( int  dev)

Definition at line 250 of file dev_table.c.

Variable Documentation

Definition at line 18 of file dev_table.c.

struct sound_timer_operations default_sound_timer

Definition at line 273 of file sys_timer.c.

Definition at line 35 of file dev_table.c.

Definition at line 24 of file dev_table.c.

int num_audiodevs

Definition at line 21 of file dev_table.c.

int num_midis

Definition at line 38 of file dev_table.c.

int num_mixers

Definition at line 27 of file dev_table.c.

int num_sound_timers

Definition at line 46 of file dev_table.c.

int num_synths

Definition at line 33 of file dev_table.c.

Definition at line 41 of file dev_table.c.

Definition at line 30 of file dev_table.c.