#include <linux/device.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/mutex.h>
#include <linux/hid.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/rawmidi.h>
#include "usbhid/usbhid.h"
#include "hid-ids.h"
Go to the source code of this file.
|
| module_param_array (index, int, NULL, 0444) |
|
| module_param_array (id, charp, NULL, 0444) |
|
| module_param_array (enable, bool, NULL, 0444) |
|
| MODULE_PARM_DESC (index,"Index value for the PC-MIDI virtual audio driver") |
|
| MODULE_PARM_DESC (id,"ID string for the PC-MIDI virtual audio driver") |
|
| MODULE_PARM_DESC (enable,"Enable for the PC-MIDI virtual audio driver") |
|
| MODULE_DEVICE_TABLE (hid, pk_devices) |
|
| module_init (pk_init) |
|
| module_exit (pk_exit) |
|
| MODULE_LICENSE ("GPL") |
|
#define PCMIDI_CHANNEL_MAX 15 |
#define PCMIDI_CHANNEL_MIN 0 |
#define PCMIDI_MIDDLE_C 60 |
#define PCMIDI_OCTAVE_MAX 2 |
#define PCMIDI_OCTAVE_MIN (-2) |
#define PCMIDI_SUSTAIN_MAX 5000 |
#define PCMIDI_SUSTAIN_MIN 0 |
#define PCMIDI_SUSTAINED_MAX 32 |
#define pk_debug |
( |
|
format, |
|
|
|
arg... |
|
) |
| pr_debug("hid-prodikeys: " format "\n" , ## arg) |
#define pk_error |
( |
|
format, |
|
|
|
arg... |
|
) |
| pr_err("hid-prodikeys: " format "\n" , ## arg) |
#define PK_QUIRK_NOGET 0x00010000 |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
MODULE_DEVICE_TABLE |
( |
hid |
, |
|
|
pk_devices |
|
|
) |
| |
module_param_array |
( |
id |
, |
|
|
charp |
, |
|
|
NULL |
, |
|
|
0444 |
|
|
) |
| |