Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dmasound_atari.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/soundcard.h>
#include <linux/mm.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <asm/uaccess.h>
#include <asm/atariints.h>
#include <asm/atari_stram.h>
#include "dmasound.h"

Go to the source code of this file.

Macros

#define DMASOUND_ATARI_REVISION   0
 
#define DMASOUND_ATARI_EDITION   3
 
#define TONE_VOXWARE_TO_DB(v)   (((v) < 0) ? -12 : ((v) > 100) ? 12 : ((v) - 50) * 6 / 25)
 
#define TONE_DB_TO_VOXWARE(v)   (((v) * 25 + ((v) > 0 ? 5 : -5)) / 6 + 50)
 
#define VOLUME_VOXWARE_TO_DB(v)   (((v) < 0) ? -40 : ((v) > 100) ? 0 : ((v) * 2) / 5 - 40)
 
#define VOLUME_DB_TO_VOXWARE(v)   ((((v) + 40) * 5 + 1) / 2)
 
#define GAIN_VOXWARE_TO_DB(v)   (((v) < 0) ? -80 : ((v) > 100) ? 0 : ((v) * 4) / 5 - 80)
 
#define GAIN_DB_TO_VOXWARE(v)   ((((v) + 80) * 5 + 1) / 4)
 
#define VOLUME_VOXWARE_TO_ATT(v)   ((v) < 0 ? 15 : (v) > 100 ? 0 : 15 - (v) * 3 / 20)
 
#define VOLUME_ATT_TO_VOXWARE(v)   (100 - (v) * 20 / 3)
 
#define RECLEVEL_VOXWARE_TO_GAIN(v)   ((v) < 0 ? 0 : (v) > 100 ? 15 : (v) * 3 / 20)
 
#define RECLEVEL_GAIN_TO_VOXWARE(v)   (((v) * 20 + 2) / 3)
 

Functions

void atari_microwire_cmd (int cmd)
 
 module_init (dmasound_atari_init)
 
 module_exit (dmasound_atari_cleanup)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DMASOUND_ATARI_EDITION   3

Definition at line 32 of file dmasound_atari.c.

#define DMASOUND_ATARI_REVISION   0

Definition at line 31 of file dmasound_atari.c.

#define GAIN_DB_TO_VOXWARE (   v)    ((((v) + 80) * 5 + 1) / 4)

Definition at line 1002 of file dmasound_atari.c.

#define GAIN_VOXWARE_TO_DB (   v)    (((v) < 0) ? -80 : ((v) > 100) ? 0 : ((v) * 4) / 5 - 80)

Definition at line 1000 of file dmasound_atari.c.

#define RECLEVEL_GAIN_TO_VOXWARE (   v)    (((v) * 20 + 2) / 3)

Definition at line 1340 of file dmasound_atari.c.

#define RECLEVEL_VOXWARE_TO_GAIN (   v)    ((v) < 0 ? 0 : (v) > 100 ? 15 : (v) * 3 / 20)

Definition at line 1338 of file dmasound_atari.c.

#define TONE_DB_TO_VOXWARE (   v)    (((v) * 25 + ((v) > 0 ? 5 : -5)) / 6 + 50)

Definition at line 874 of file dmasound_atari.c.

#define TONE_VOXWARE_TO_DB (   v)    (((v) < 0) ? -12 : ((v) > 100) ? 12 : ((v) - 50) * 6 / 25)

Definition at line 872 of file dmasound_atari.c.

#define VOLUME_ATT_TO_VOXWARE (   v)    (100 - (v) * 20 / 3)

Definition at line 1155 of file dmasound_atari.c.

#define VOLUME_DB_TO_VOXWARE (   v)    ((((v) + 40) * 5 + 1) / 2)

Definition at line 986 of file dmasound_atari.c.

#define VOLUME_VOXWARE_TO_ATT (   v)    ((v) < 0 ? 15 : (v) > 100 ? 0 : 15 - (v) * 3 / 20)

Definition at line 1153 of file dmasound_atari.c.

#define VOLUME_VOXWARE_TO_DB (   v)    (((v) < 0) ? -40 : ((v) > 100) ? 0 : ((v) * 2) / 5 - 40)

Definition at line 984 of file dmasound_atari.c.

Function Documentation

void atari_microwire_cmd ( int  cmd)

Definition at line 37 of file atasound.c.

module_exit ( dmasound_atari_cleanup  )
module_init ( dmasound_atari_init  )
MODULE_LICENSE ( "GPL"  )