Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
input.c File Reference
#include <linux/gfp.h>
#include <linux/init.h>
#include <linux/usb.h>
#include <linux/usb/input.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include "device.h"
#include "input.h"

Go to the source code of this file.

Macros

#define MASCHINE_BUTTONS   (42)
 
#define MASCHINE_BUTTON(X)   ((X) + BTN_MISC)
 
#define MASCHINE_PADS   (16)
 
#define MASCHINE_PAD(X)   ((X) + ABS_PRESSURE)
 
#define KONTROLX1_INPUTS   (40)
 
#define KONTROLS4_BUTTONS   (12 * 8)
 
#define KONTROLS4_AXIS   (46)
 
#define KONTROLS4_BUTTON(X)   ((X) + BTN_MISC)
 
#define KONTROLS4_ABS(X)   ((X) + ABS_HAT0X)
 
#define DEG90   (range / 2)
 
#define DEG180   (range)
 
#define DEG270   (DEG90 + DEG180)
 
#define DEG360   (DEG180 * 2)
 
#define HIGH_PEAK   (268)
 
#define LOW_PEAK   (-7)
 
#define TKS4_MSGBLOCK_SIZE   16
 
#define MASCHINE_MSGBLOCK_SIZE   2
 

Functions

void snd_usb_caiaq_input_dispatch (struct snd_usb_caiaqdev *dev, char *buf, unsigned int len)
 
int snd_usb_caiaq_input_init (struct snd_usb_caiaqdev *dev)
 
void snd_usb_caiaq_input_free (struct snd_usb_caiaqdev *dev)
 

Macro Definition Documentation

#define DEG180   (range)

Definition at line 133 of file input.c.

#define DEG270   (DEG90 + DEG180)

Definition at line 134 of file input.c.

#define DEG360   (DEG180 * 2)

Definition at line 135 of file input.c.

#define DEG90   (range / 2)

Definition at line 132 of file input.c.

#define HIGH_PEAK   (268)

Definition at line 136 of file input.c.

#define KONTROLS4_ABS (   X)    ((X) + ABS_HAT0X)

Definition at line 130 of file input.c.

#define KONTROLS4_AXIS   (46)

Definition at line 127 of file input.c.

#define KONTROLS4_BUTTON (   X)    ((X) + BTN_MISC)

Definition at line 129 of file input.c.

#define KONTROLS4_BUTTONS   (12 * 8)

Definition at line 126 of file input.c.

#define KONTROLX1_INPUTS   (40)

Definition at line 125 of file input.c.

#define LOW_PEAK   (-7)

Definition at line 137 of file input.c.

#define MASCHINE_BUTTON (   X)    ((X) + BTN_MISC)

Definition at line 71 of file input.c.

#define MASCHINE_BUTTONS   (42)

Definition at line 70 of file input.c.

#define MASCHINE_MSGBLOCK_SIZE   2

Definition at line 481 of file input.c.

#define MASCHINE_PAD (   X)    ((X) + ABS_PRESSURE)

Definition at line 73 of file input.c.

#define MASCHINE_PADS   (16)

Definition at line 72 of file input.c.

#define TKS4_MSGBLOCK_SIZE   16

Definition at line 337 of file input.c.

Function Documentation

void snd_usb_caiaq_input_dispatch ( struct snd_usb_caiaqdev dev,
char buf,
unsigned int  len 
)

Definition at line 576 of file input.c.

void snd_usb_caiaq_input_free ( struct snd_usb_caiaqdev dev)

Definition at line 831 of file input.c.

int snd_usb_caiaq_input_init ( struct snd_usb_caiaqdev dev)

Definition at line 596 of file input.c.