#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.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/composite.h>
#include <linux/usb/gadget.h>
#include <linux/usb/audio.h>
#include <linux/usb/midi.h>
#include "gadget_chips.h"
#include "f_midi.c"
Go to the source code of this file.
|
| MODULE_AUTHOR ("Ben Williamson") |
|
| MODULE_LICENSE ("GPL v2") |
|
| USB_GADGET_COMPOSITE_OPTIONS () |
|
| module_param (index, int, S_IRUGO) |
|
| MODULE_PARM_DESC (index,"Index value for the USB MIDI Gadget adapter.") |
|
| module_param (id, charp, S_IRUGO) |
|
| MODULE_PARM_DESC (id,"ID string for the USB MIDI Gadget adapter.") |
|
| module_param (buflen, uint, S_IRUGO) |
|
| MODULE_PARM_DESC (buflen,"MIDI buffer length") |
|
| module_param (qlen, uint, S_IRUGO) |
|
| MODULE_PARM_DESC (qlen,"USB read request queue length") |
|
| module_param (in_ports, uint, S_IRUGO) |
|
| MODULE_PARM_DESC (in_ports,"Number of MIDI input ports") |
|
| module_param (out_ports, uint, S_IRUGO) |
|
| MODULE_PARM_DESC (out_ports,"Number of MIDI output ports") |
|
| module_init (midi_init) |
|
| module_exit (midi_cleanup) |
|
#define DRIVER_PRODUCT_NUM 0x0004 /* Linux-USB "MIDI Gadget" */ |
#define DRIVER_VENDOR_NUM 0x17b3 /* Grey Innovation */ |
MODULE_AUTHOR |
( |
"Ben Williamson" |
| ) |
|
module_exit |
( |
midi_cleanup |
| ) |
|
module_init |
( |
midi_init |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
MODULE_PARM_DESC |
( |
in_ports |
, |
|
|
"Number of MIDI input ports" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
out_ports |
, |
|
|
"Number of MIDI output ports" |
|
|
) |
| |
USB_GADGET_COMPOSITE_OPTIONS |
( |
| ) |
|