Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
emumpu401.c File Reference
#include <linux/time.h>
#include <linux/init.h>
#include <sound/core.h>
#include <sound/emu10k1.h>

Go to the source code of this file.

Macros

#define EMU10K1_MIDI_MODE_INPUT   (1<<0)
 
#define EMU10K1_MIDI_MODE_OUTPUT   (1<<1)
 
#define mpu401_write_data(emu, mpu, data)   mpu401_write(emu, mpu, data, 0)
 
#define mpu401_write_cmd(emu, mpu, data)   mpu401_write(emu, mpu, data, 1)
 
#define mpu401_read_data(emu, mpu)   mpu401_read(emu, mpu, 0)
 
#define mpu401_read_stat(emu, mpu)   mpu401_read(emu, mpu, 1)
 
#define mpu401_input_avail(emu, mpu)   (!(mpu401_read_stat(emu,mpu) & 0x80))
 
#define mpu401_output_ready(emu, mpu)   (!(mpu401_read_stat(emu,mpu) & 0x40))
 
#define MPU401_RESET   0xff
 
#define MPU401_ENTER_UART   0x3f
 
#define MPU401_ACK   0xfe
 

Functions

int __devinit snd_emu10k1_midi (struct snd_emu10k1 *emu)
 
int __devinit snd_emu10k1_audigy_midi (struct snd_emu10k1 *emu)
 

Macro Definition Documentation

#define EMU10K1_MIDI_MODE_INPUT   (1<<0)

Definition at line 27 of file emumpu401.c.

#define EMU10K1_MIDI_MODE_OUTPUT   (1<<1)

Definition at line 28 of file emumpu401.c.

#define MPU401_ACK   0xfe

Definition at line 58 of file emumpu401.c.

#define MPU401_ENTER_UART   0x3f

Definition at line 57 of file emumpu401.c.

#define mpu401_input_avail (   emu,
  mpu 
)    (!(mpu401_read_stat(emu,mpu) & 0x80))

Definition at line 53 of file emumpu401.c.

#define mpu401_output_ready (   emu,
  mpu 
)    (!(mpu401_read_stat(emu,mpu) & 0x40))

Definition at line 54 of file emumpu401.c.

#define mpu401_read_data (   emu,
  mpu 
)    mpu401_read(emu, mpu, 0)

Definition at line 50 of file emumpu401.c.

#define mpu401_read_stat (   emu,
  mpu 
)    mpu401_read(emu, mpu, 1)

Definition at line 51 of file emumpu401.c.

#define MPU401_RESET   0xff

Definition at line 56 of file emumpu401.c.

#define mpu401_write_cmd (   emu,
  mpu,
  data 
)    mpu401_write(emu, mpu, data, 1)

Definition at line 49 of file emumpu401.c.

#define mpu401_write_data (   emu,
  mpu,
  data 
)    mpu401_write(emu, mpu, data, 0)

Definition at line 48 of file emumpu401.c.

Function Documentation

int __devinit snd_emu10k1_audigy_midi ( struct snd_emu10k1 *  emu)

Definition at line 369 of file emumpu401.c.

int __devinit snd_emu10k1_midi ( struct snd_emu10k1 *  emu)

Definition at line 352 of file emumpu401.c.