Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
f_midi.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/rawmidi.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/usb/audio.h>
#include <linux/usb/midi.h>

Go to the source code of this file.

Data Structures

struct  gmidi_in_port
struct  f_midi


#define MAX_PORTS   16
#define STATE_UNKNOWN   0
#define STATE_1PARAM   1
#define STATE_2PARAM_1   2
#define STATE_2PARAM_2   3
#define STATE_SYSEX_0   4
#define STATE_SYSEX_1   5
#define STATE_SYSEX_2   6
#define STRING_FUNC_IDX   0


 MODULE_AUTHOR ("Ben Williamson")
int __init f_midi_bind_config (struct usb_configuration *c, int index, char *id, unsigned int in_ports, unsigned int out_ports, unsigned int buflen, unsigned int qlen)

Macro Definition Documentation

#define MAX_PORTS   16

Definition at line 46 of file f_midi.c.

#define STATE_1PARAM   1

Definition at line 59 of file f_midi.c.

#define STATE_2PARAM_1   2

Definition at line 60 of file f_midi.c.

#define STATE_2PARAM_2   3

Definition at line 61 of file f_midi.c.

#define STATE_SYSEX_0   4

Definition at line 62 of file f_midi.c.

#define STATE_SYSEX_1   5

Definition at line 63 of file f_midi.c.

#define STATE_SYSEX_2   6

Definition at line 64 of file f_midi.c.

#define STATE_UNKNOWN   0

Definition at line 58 of file f_midi.c.

#define STRING_FUNC_IDX   0

Definition at line 177 of file f_midi.c.

Function Documentation

int __init f_midi_bind_config ( struct usb_configuration c,
int  index,
char id,
unsigned int  in_ports,
unsigned int  out_ports,
unsigned int  buflen,
unsigned int  qlen 

f_midi_bind_config - add USB MIDI function to a configuration : the configuration to supcard the USB audio function : the soundcard index to use for the ALSA device creation : the soundcard id to use for the ALSA device creation : the buffer length to use the number of read requests to pre-allocate Context: single threaded during gadget setup

Returns zero on success, else negative errno.

Definition at line 920 of file f_midi.c.

MODULE_AUTHOR ( "Ben Williamson"  )