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

Go to the source code of this file.

Macros

#define ca_midi_write_data(midi, data)   midi->write(midi, data, 0)
 
#define ca_midi_write_cmd(midi, data)   midi->write(midi, data, 1)
 
#define ca_midi_read_data(midi)   midi->read(midi, 0)
 
#define ca_midi_read_stat(midi)   midi->read(midi, 1)
 
#define ca_midi_input_avail(midi)   (!(ca_midi_read_stat(midi) & midi->input_avail))
 
#define ca_midi_output_ready(midi)   (!(ca_midi_read_stat(midi) & midi->output_ready))
 

Functions

int __devinit ca_midi_init (void *dev_id, struct snd_ca_midi *midi, int device, char *name)
 

Macro Definition Documentation

#define ca_midi_input_avail (   midi)    (!(ca_midi_read_stat(midi) & midi->input_avail))

Definition at line 39 of file ca_midi.c.

#define ca_midi_output_ready (   midi)    (!(ca_midi_read_stat(midi) & midi->output_ready))

Definition at line 40 of file ca_midi.c.

#define ca_midi_read_data (   midi)    midi->read(midi, 0)

Definition at line 37 of file ca_midi.c.

#define ca_midi_read_stat (   midi)    midi->read(midi, 1)

Definition at line 38 of file ca_midi.c.

#define ca_midi_write_cmd (   midi,
  data 
)    midi->write(midi, data, 1)

Definition at line 36 of file ca_midi.c.

#define ca_midi_write_data (   midi,
  data 
)    midi->write(midi, data, 0)

Definition at line 35 of file ca_midi.c.

Function Documentation

int __devinit ca_midi_init ( void dev_id,
struct snd_ca_midi midi,
int  device,
char name 
)

Definition at line 289 of file ca_midi.c.