Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
midi.c File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/bitops.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <linux/usb.h>
#include <linux/wait.h>
#include <linux/usb/audio.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/rawmidi.h>
#include <sound/asequencer.h>
#include "usbaudio.h"
#include "midi.h"
#include "power.h"
#include "helper.h"

Go to the source code of this file.

Data Structures

struct  usb_ms_header_descriptor
 
struct  usb_ms_endpoint_descriptor
 
struct  usb_protocol_ops
 
struct  snd_usb_midi
 
struct  snd_usb_midi::snd_usb_midi_endpoint
 
struct  snd_usb_midi_out_endpoint
 
struct  snd_usb_midi_out_endpoint::out_urb_context
 
struct  snd_usb_midi_out_endpoint::usbmidi_out_port
 
struct  snd_usb_midi_in_endpoint
 
struct  snd_usb_midi_in_endpoint::usbmidi_in_port
 
struct  port_info
 

Macros

#define ERROR_DELAY_JIFFIES   (HZ / 10)
 
#define OUTPUT_URBS   7
 
#define INPUT_URBS   7
 
#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 dump_urb(type, data, length)   /* nothing */
 
#define MAX_AKAI_SYSEX_LEN   9
 
#define PORT_INFO(vendor, product, num, name_, voices_, flags)
 
#define EXTERNAL_PORT(vendor, product, num, name)
 
#define CONTROL_PORT(vendor, product, num, name)
 
#define ROLAND_SYNTH_PORT(vendor, product, num, name, voices)
 
#define SOUNDCANVAS_PORT(vendor, product, num, name, voices)
 

Functions

 MODULE_AUTHOR ("Clemens Ladisch <[email protected]>")
 
 MODULE_DESCRIPTION ("USB Audio/MIDI helper module")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
struct usb_ms_header_descriptor __attribute__ ((packed))
 
void snd_usbmidi_disconnect (struct list_head *p)
 
void snd_usbmidi_input_stop (struct list_head *p)
 
void snd_usbmidi_input_start (struct list_head *p)
 
int snd_usbmidi_create (struct snd_card *card, struct usb_interface *iface, struct list_head *midi_list, const struct snd_usb_audio_quirk *quirk)
 
 EXPORT_SYMBOL (snd_usbmidi_create)
 
 EXPORT_SYMBOL (snd_usbmidi_input_stop)
 
 EXPORT_SYMBOL (snd_usbmidi_input_start)
 
 EXPORT_SYMBOL (snd_usbmidi_disconnect)
 

Variables

__u8 bLength
 
__u8 bDescriptorType
 
__u8 bDescriptorSubtype
 
__u8 bcdMSC [2]
 
__le16 wTotalLength
 
__u8 bNumEmbMIDIJack
 
__u8 baAssocJackID [0]
 
struct usb_protocol_ops __attribute__
 

Macro Definition Documentation

#define CONTROL_PORT (   vendor,
  product,
  num,
  name 
)
#define dump_urb (   type,
  data,
  length 
)    /* nothing */

Definition at line 246 of file midi.c.

#define ERROR_DELAY_JIFFIES   (HZ / 10)

Definition at line 70 of file midi.c.

#define EXTERNAL_PORT (   vendor,
  product,
  num,
  name 
)
#define INPUT_URBS   7

Definition at line 73 of file midi.c.

#define MAX_AKAI_SYSEX_LEN   9

Definition at line 680 of file midi.c.

#define OUTPUT_URBS   7

Definition at line 72 of file midi.c.

#define PORT_INFO (   vendor,
  product,
  num,
  name_,
  voices_,
  flags 
)
Value:
{ .id = USB_ID(vendor, product), \
.port = num, .voices = voices_, \
.name = name_, .seq_flags = flags }
#define ROLAND_SYNTH_PORT (   vendor,
  product,
  num,
  name,
  voices 
)
#define SOUNDCANVAS_PORT (   vendor,
  product,
  num,
  name,
  voices 
)
#define STATE_1PARAM   1

Definition at line 155 of file midi.c.

#define STATE_2PARAM_1   2

Definition at line 156 of file midi.c.

#define STATE_2PARAM_2   3

Definition at line 157 of file midi.c.

#define STATE_SYSEX_0   4

Definition at line 158 of file midi.c.

#define STATE_SYSEX_1   5

Definition at line 159 of file midi.c.

#define STATE_SYSEX_2   6

Definition at line 160 of file midi.c.

#define STATE_UNKNOWN   0

Definition at line 154 of file midi.c.

Function Documentation

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

EXPORT_SYMBOL ( snd_usbmidi_create  )
EXPORT_SYMBOL ( snd_usbmidi_input_stop  )
EXPORT_SYMBOL ( snd_usbmidi_input_start  )
EXPORT_SYMBOL ( snd_usbmidi_disconnect  )
MODULE_AUTHOR ( "Clemens Ladisch <[email protected]>"  )
MODULE_DESCRIPTION ( "USB Audio/MIDI helper module )
MODULE_LICENSE ( "Dual BSD/GPL"  )
int snd_usbmidi_create ( struct snd_card card,
struct usb_interface iface,
struct list_head midi_list,
const struct snd_usb_audio_quirk quirk 
)

Definition at line 2100 of file midi.c.

void snd_usbmidi_disconnect ( struct list_head p)

Definition at line 1395 of file midi.c.

void snd_usbmidi_input_start ( struct list_head p)

Definition at line 2087 of file midi.c.

void snd_usbmidi_input_stop ( struct list_head p)

Definition at line 2057 of file midi.c.

Variable Documentation

__u8 baAssocJackID[0]

Definition at line 100 of file midi.c.

__u8 bcdMSC[2]

Definition at line 91 of file midi.c.

__u8 bDescriptorSubtype

Definition at line 90 of file midi.c.

__u8 bDescriptorType

Definition at line 89 of file midi.c.

__u8 bLength

Definition at line 88 of file midi.c.

__u8 bNumEmbMIDIJack

Definition at line 99 of file midi.c.

__le16 wTotalLength

Definition at line 92 of file midi.c.