#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/parport.h>
#include <linux/spinlock.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/rawmidi.h>
#include <sound/control.h>
Go to the source code of this file.
|
| module_param_array (index, int, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (index,"Index value for "CARD_NAME" soundcard.") |
|
| module_param_array (id, charp, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (id,"ID string for "CARD_NAME" soundcard.") |
|
| module_param_array (enable, bool, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (enable,"Enable "CARD_NAME" soundcard.") |
|
| MODULE_AUTHOR ("Matthias Koenig <[email protected]>") |
|
| MODULE_DESCRIPTION ("ESI Miditerminal 4140") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_SUPPORTED_DEVICE ("{{ESI,Miditerminal 4140}}") |
|
| module_init (snd_mts64_module_init) |
|
| module_exit (snd_mts64_module_exit) |
|
#define CARD_NAME "Miditerminal 4140" |
#define DRIVER_NAME "MTS64" |
#define MTS64_CMD_COM_CLOSE1 0xff /* clearing communication mode */ |
#define MTS64_CMD_COM_CLOSE2 0xf5 |
#define MTS64_CMD_COM_OPEN 0xf8 /* setting the communication mode */ |
#define MTS64_CMD_PROBE 0x8f /* Used in probing procedure */ |
#define MTS64_CMD_RESET 0xfe |
#define MTS64_CMD_SMPTE_FPS_24 0xe3 |
#define MTS64_CMD_SMPTE_FPS_25 0xe2 |
#define MTS64_CMD_SMPTE_FPS_2997 0xe4 |
#define MTS64_CMD_SMPTE_FPS_30 0xe0 |
#define MTS64_CMD_SMPTE_FPS_30D 0xe1 |
#define MTS64_CMD_SMPTE_SET_FPS 0xee |
#define MTS64_CMD_SMPTE_SET_TIME 0xe8 |
#define MTS64_CMD_SMPTE_STOP 0xef |
#define MTS64_CTL_READOUT 0x08 /* enable readout */ |
#define MTS64_CTL_STROBE 0x01 |
#define MTS64_CTL_WRITE_CMD 0x06 |
#define MTS64_CTL_WRITE_DATA 0x02 |
#define MTS64_MODE_INPUT_TRIGGERED 0x01 |
#define MTS64_NUM_INPUT_PORTS 5 |
#define MTS64_NUM_OUTPUT_PORTS 4 |
#define MTS64_SMPTE_SUBSTREAM 4 |
#define MTS64_STAT_BIT_SET 0x20 /* readout process, bit is set */ |
#define MTS64_STAT_BSY 0x80 |
#define MTS64_STAT_PORT 0x10 /* read byte is a port number */ |
#define PLATFORM_DRIVER "snd_mts64" |
MODULE_DESCRIPTION |
( |
"ESI Miditerminal 4140" |
| ) |
|
module_exit |
( |
snd_mts64_module_exit |
| ) |
|
module_init |
( |
snd_mts64_module_init |
| ) |
|
MODULE_PARM_DESC |
( |
index |
, |
|
|
"Index value for "CARD_NAME" soundcard." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
id |
, |
|
|
"ID string for "CARD_NAME" soundcard." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
enable |
, |
|
|
"Enable "CARD_NAME" soundcard." |
|
|
) |
| |
MODULE_SUPPORTED_DEVICE |
( |
"{{ESI,Miditerminal 4140}}" |
| ) |
|