Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
opl3.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/delay.h>
#include "sound_config.h"
#include "opl3_hw.h"

Go to the source code of this file.

Data Structures

struct  voice_info
 
struct  opl_devinfo
 

Macros

#define MAX_VOICE   18
 
#define OFFS_4OP   11
 
#define HIHAT   0
 
#define CYMBAL   1
 
#define TOMTOM   2
 
#define SNARE   3
 
#define BDRUM   4
 
#define UNDEFINED   TOMTOM
 
#define DEFAULT   TOMTOM
 
#define SET_VIBRATO(cell)
 

Typedefs

typedef struct opl_devinfo opl_devinfo
 

Functions

 module_param (io, int, 0)
 
 module_init (init_opl3)
 
 module_exit (cleanup_opl3)
 
 __setup ("opl3=", setup_opl3)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BDRUM   4

Definition at line 299 of file opl3.c.

#define CYMBAL   1

Definition at line 296 of file opl3.c.

#define DEFAULT   TOMTOM

Definition at line 301 of file opl3.c.

#define HIHAT   0

Definition at line 295 of file opl3.c.

#define MAX_VOICE   18

Definition at line 40 of file opl3.c.

#define OFFS_4OP   11

Definition at line 41 of file opl3.c.

#define SET_VIBRATO (   cell)
Value:
{ \
tmp = instr->operators[(cell-1)+(((cell-1)/2)*OFFS_4OP)]; \
if (pressure > 110) \
tmp |= 0x40; /* Vibrato on */ \
opl3_command (map->ioaddr, AM_VIB + map->op[cell-1], tmp);}

Definition at line 859 of file opl3.c.

#define SNARE   3

Definition at line 298 of file opl3.c.

#define TOMTOM   2

Definition at line 297 of file opl3.c.

#define UNDEFINED   TOMTOM

Definition at line 300 of file opl3.c.

Typedef Documentation

Function Documentation

__setup ( )
module_exit ( cleanup_opl3  )
module_init ( init_opl3  )
MODULE_LICENSE ( "GPL"  )
module_param ( io  ,
int  ,
 
)