Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mts64.c File Reference
#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.

Data Structures

struct  mts64
 

Macros

#define CARD_NAME   "Miditerminal 4140"
 
#define DRIVER_NAME   "MTS64"
 
#define PLATFORM_DRIVER   "snd_mts64"
 
#define MTS64_NUM_INPUT_PORTS   5
 
#define MTS64_NUM_OUTPUT_PORTS   4
 
#define MTS64_SMPTE_SUBSTREAM   4
 
#define MTS64_STAT_BSY   0x80
 
#define MTS64_STAT_BIT_SET   0x20 /* readout process, bit is set */
 
#define MTS64_STAT_PORT   0x10 /* read byte is a port number */
 
#define MTS64_CTL_READOUT   0x08 /* enable readout */
 
#define MTS64_CTL_WRITE_CMD   0x06
 
#define MTS64_CTL_WRITE_DATA   0x02
 
#define MTS64_CTL_STROBE   0x01
 
#define MTS64_CMD_RESET   0xfe
 
#define MTS64_CMD_PROBE   0x8f /* Used in probing procedure */
 
#define MTS64_CMD_SMPTE_SET_TIME   0xe8
 
#define MTS64_CMD_SMPTE_SET_FPS   0xee
 
#define MTS64_CMD_SMPTE_STOP   0xef
 
#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_30D   0xe1
 
#define MTS64_CMD_SMPTE_FPS_30   0xe0
 
#define MTS64_CMD_COM_OPEN   0xf8 /* setting the communication mode */
 
#define MTS64_CMD_COM_CLOSE1   0xff /* clearing communication mode */
 
#define MTS64_CMD_COM_CLOSE2   0xf5
 
#define snd_mts64_ctl_smpte_switch_info   snd_ctl_boolean_mono_info
 
#define MTS64_MODE_INPUT_TRIGGERED   0x01
 

Functions

 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)
 

Macro Definition Documentation

#define CARD_NAME   "Miditerminal 4140"

Definition at line 33 of file mts64.c.

#define DRIVER_NAME   "MTS64"

Definition at line 34 of file mts64.c.

#define MTS64_CMD_COM_CLOSE1   0xff /* clearing communication mode */

Definition at line 137 of file mts64.c.

#define MTS64_CMD_COM_CLOSE2   0xf5

Definition at line 138 of file mts64.c.

#define MTS64_CMD_COM_OPEN   0xf8 /* setting the communication mode */

Definition at line 136 of file mts64.c.

#define MTS64_CMD_PROBE   0x8f /* Used in probing procedure */

Definition at line 127 of file mts64.c.

#define MTS64_CMD_RESET   0xfe

Definition at line 126 of file mts64.c.

#define MTS64_CMD_SMPTE_FPS_24   0xe3

Definition at line 131 of file mts64.c.

#define MTS64_CMD_SMPTE_FPS_25   0xe2

Definition at line 132 of file mts64.c.

#define MTS64_CMD_SMPTE_FPS_2997   0xe4

Definition at line 133 of file mts64.c.

#define MTS64_CMD_SMPTE_FPS_30   0xe0

Definition at line 135 of file mts64.c.

#define MTS64_CMD_SMPTE_FPS_30D   0xe1

Definition at line 134 of file mts64.c.

#define MTS64_CMD_SMPTE_SET_FPS   0xee

Definition at line 129 of file mts64.c.

#define MTS64_CMD_SMPTE_SET_TIME   0xe8

Definition at line 128 of file mts64.c.

#define MTS64_CMD_SMPTE_STOP   0xef

Definition at line 130 of file mts64.c.

#define MTS64_CTL_READOUT   0x08 /* enable readout */

Definition at line 120 of file mts64.c.

#define MTS64_CTL_STROBE   0x01

Definition at line 123 of file mts64.c.

#define MTS64_CTL_WRITE_CMD   0x06

Definition at line 121 of file mts64.c.

#define MTS64_CTL_WRITE_DATA   0x02

Definition at line 122 of file mts64.c.

#define MTS64_MODE_INPUT_TRIGGERED   0x01

Definition at line 694 of file mts64.c.

#define MTS64_NUM_INPUT_PORTS   5

Definition at line 59 of file mts64.c.

#define MTS64_NUM_OUTPUT_PORTS   4

Definition at line 60 of file mts64.c.

#define MTS64_SMPTE_SUBSTREAM   4

Definition at line 61 of file mts64.c.

#define MTS64_STAT_BIT_SET   0x20 /* readout process, bit is set */

Definition at line 116 of file mts64.c.

#define MTS64_STAT_BSY   0x80

Definition at line 115 of file mts64.c.

#define MTS64_STAT_PORT   0x10 /* read byte is a port number */

Definition at line 117 of file mts64.c.

#define PLATFORM_DRIVER   "snd_mts64"

Definition at line 35 of file mts64.c.

#define snd_mts64_ctl_smpte_switch_info   snd_ctl_boolean_mono_info

Definition at line 444 of file mts64.c.

Function Documentation

MODULE_AUTHOR ( "Matthias Koenig <[email protected]>"  )
MODULE_DESCRIPTION ( "ESI Miditerminal 4140"  )
module_exit ( snd_mts64_module_exit  )
module_init ( snd_mts64_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( index  ,
int  ,
NULL  ,
S_IRUGO   
)
module_param_array ( id  ,
charp  ,
NULL  ,
S_IRUGO   
)
module_param_array ( enable  ,
bool  ,
NULL  ,
S_IRUGO   
)
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}}"  )