Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
seq_oss_device.h File Reference
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <sound/core.h>
#include <sound/seq_oss.h>
#include <sound/rawmidi.h>
#include <sound/seq_kernel.h>
#include <sound/info.h>

Go to the source code of this file.

Data Structures

struct  seq_oss_chinfo
 
struct  seq_oss_synthinfo
 
struct  seq_oss_devinfo
 

Macros

#define SNDRV_SEQ_OSS_DEBUG
 
#define SNDRV_SEQ_OSS_MAX_CLIENTS   16
 
#define SNDRV_SEQ_OSS_MAX_SYNTH_DEVS   16
 
#define SNDRV_SEQ_OSS_MAX_MIDI_DEVS   32
 
#define SNDRV_SEQ_OSS_MAJOR_VERSION   0
 
#define SNDRV_SEQ_OSS_MINOR_VERSION   1
 
#define SNDRV_SEQ_OSS_TINY_VERSION   8
 
#define SNDRV_SEQ_OSS_VERSION_STR   "0.1.8"
 
#define SNDRV_SEQ_OSS_DEVNAME   "seq_oss"
 
#define SNDRV_SEQ_OSS_PROCNAME   "oss"
 
#define is_read_mode(mode)   ((mode) & SNDRV_SEQ_OSS_FILE_READ)
 
#define is_write_mode(mode)   ((mode) & SNDRV_SEQ_OSS_FILE_WRITE)
 
#define is_nonblock_mode(mode)   ((mode) & SNDRV_SEQ_OSS_FILE_NONBLOCK)
 
#define debug_printk(x)   do { if (seq_oss_debug > 0) snd_printd x; } while (0)
 

Typedefs

typedef unsigned int reltime_t
 
typedef unsigned int abstime_t
 

Functions

int snd_seq_oss_create_client (void)
 
int snd_seq_oss_delete_client (void)
 
int snd_seq_oss_open (struct file *file, int level)
 
void snd_seq_oss_release (struct seq_oss_devinfo *dp)
 
int snd_seq_oss_ioctl (struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long arg)
 
int snd_seq_oss_read (struct seq_oss_devinfo *dev, char __user *buf, int count)
 
int snd_seq_oss_write (struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt)
 
unsigned int snd_seq_oss_poll (struct seq_oss_devinfo *dp, struct file *file, poll_table *wait)
 
void snd_seq_oss_reset (struct seq_oss_devinfo *dp)
 
void snd_seq_oss_drain_write (struct seq_oss_devinfo *dp)
 
void snd_seq_oss_process_queue (struct seq_oss_devinfo *dp, abstime_t time)
 
void snd_seq_oss_system_info_read (struct snd_info_buffer *buf)
 
void snd_seq_oss_midi_info_read (struct snd_info_buffer *buf)
 
void snd_seq_oss_synth_info_read (struct snd_info_buffer *buf)
 
void snd_seq_oss_readq_info_read (struct seq_oss_readq *q, struct snd_info_buffer *buf)
 
charenabled_str (int bool)
 

Variables

int seq_oss_debug
 

Macro Definition Documentation

#define debug_printk (   x)    do { if (seq_oss_debug > 0) snd_printd x; } while (0)

Definition at line 184 of file seq_oss_device.h.

#define is_nonblock_mode (   mode)    ((mode) & SNDRV_SEQ_OSS_FILE_NONBLOCK)

Definition at line 149 of file seq_oss_device.h.

#define is_read_mode (   mode)    ((mode) & SNDRV_SEQ_OSS_FILE_READ)

Definition at line 147 of file seq_oss_device.h.

#define is_write_mode (   mode)    ((mode) & SNDRV_SEQ_OSS_FILE_WRITE)

Definition at line 148 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_DEBUG

Definition at line 35 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_DEVNAME   "seq_oss"

Definition at line 49 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_MAJOR_VERSION   0

Definition at line 43 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_MAX_CLIENTS   16

Definition at line 38 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_MAX_MIDI_DEVS   32

Definition at line 40 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_MAX_SYNTH_DEVS   16

Definition at line 39 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_MINOR_VERSION   1

Definition at line 44 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_PROCNAME   "oss"

Definition at line 50 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_TINY_VERSION   8

Definition at line 45 of file seq_oss_device.h.

#define SNDRV_SEQ_OSS_VERSION_STR   "0.1.8"

Definition at line 46 of file seq_oss_device.h.

Typedef Documentation

typedef unsigned int abstime_t

Definition at line 58 of file seq_oss_device.h.

typedef unsigned int reltime_t

Definition at line 57 of file seq_oss_device.h.

Function Documentation

char* enabled_str ( int  bool)
int snd_seq_oss_create_client ( void  )

Definition at line 67 of file seq_oss_init.c.

int snd_seq_oss_delete_client ( void  )

Definition at line 161 of file seq_oss_init.c.

void snd_seq_oss_drain_write ( struct seq_oss_devinfo dp)

Definition at line 453 of file seq_oss_init.c.

int snd_seq_oss_ioctl ( struct seq_oss_devinfo dp,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 74 of file seq_oss_ioctl.c.

void snd_seq_oss_midi_info_read ( struct snd_info_buffer buf)
int snd_seq_oss_open ( struct file file,
int  level 
)

Definition at line 176 of file seq_oss_init.c.

unsigned int snd_seq_oss_poll ( struct seq_oss_devinfo dp,
struct file file,
poll_table wait 
)

Definition at line 200 of file seq_oss_rw.c.

void snd_seq_oss_process_queue ( struct seq_oss_devinfo dp,
abstime_t  time 
)
int snd_seq_oss_read ( struct seq_oss_devinfo dev,
char __user buf,
int  count 
)

Definition at line 44 of file seq_oss_rw.c.

void snd_seq_oss_readq_info_read ( struct seq_oss_readq q,
struct snd_info_buffer buf 
)
void snd_seq_oss_release ( struct seq_oss_devinfo dp)

Definition at line 424 of file seq_oss_init.c.

void snd_seq_oss_reset ( struct seq_oss_devinfo dp)

Definition at line 470 of file seq_oss_init.c.

void snd_seq_oss_synth_info_read ( struct snd_info_buffer buf)
void snd_seq_oss_system_info_read ( struct snd_info_buffer buf)
int snd_seq_oss_write ( struct seq_oss_devinfo dp,
const char __user buf,
int  count,
struct file opt 
)

Definition at line 96 of file seq_oss_rw.c.

Variable Documentation

int seq_oss_debug

Definition at line 45 of file seq_oss.c.