#include <linux/time.h>
#include <linux/init.h>
#include <sound/core.h>
#include <sound/emu10k1.h>
#define EMU10K1_MIDI_MODE_INPUT …
#define EMU10K1_MIDI_MODE_OUTPUT …
static inline unsigned char mpu401_read(struct snd_emu10k1 *emu,
struct snd_emu10k1_midi *mpu, int idx)
{ … }
static inline void mpu401_write(struct snd_emu10k1 *emu,
struct snd_emu10k1_midi *mpu, int data, int idx)
{ … }
#define mpu401_write_data(emu, mpu, data) …
#define mpu401_write_cmd(emu, mpu, data) …
#define mpu401_read_data(emu, mpu) …
#define mpu401_read_stat(emu, mpu) …
#define mpu401_input_avail(emu,mpu) …
#define mpu401_output_ready(emu,mpu) …
#define MPU401_RESET …
#define MPU401_ENTER_UART …
#define MPU401_ACK …
static void mpu401_clear_rx(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *mpu)
{ … }
static void do_emu10k1_midi_interrupt(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, unsigned int status)
{ … }
static void snd_emu10k1_midi_interrupt(struct snd_emu10k1 *emu, unsigned int status)
{ … }
static void snd_emu10k1_midi_interrupt2(struct snd_emu10k1 *emu, unsigned int status)
{ … }
static int snd_emu10k1_midi_cmd(struct snd_emu10k1 * emu, struct snd_emu10k1_midi *midi, unsigned char cmd, int ack)
{ … }
static int snd_emu10k1_midi_input_open(struct snd_rawmidi_substream *substream)
{ … }
static int snd_emu10k1_midi_output_open(struct snd_rawmidi_substream *substream)
{ … }
static int snd_emu10k1_midi_input_close(struct snd_rawmidi_substream *substream)
{ … }
static int snd_emu10k1_midi_output_close(struct snd_rawmidi_substream *substream)
{ … }
static void snd_emu10k1_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
{ … }
static void snd_emu10k1_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
{ … }
static const struct snd_rawmidi_ops snd_emu10k1_midi_output = …;
static const struct snd_rawmidi_ops snd_emu10k1_midi_input = …;
static void snd_emu10k1_midi_free(struct snd_rawmidi *rmidi)
{ … }
static int emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name)
{ … }
int snd_emu10k1_midi(struct snd_emu10k1 *emu)
{ … }
int snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu)
{ … }