Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
waveartist.h File Reference

Go to the source code of this file.

Macros

#define CMDR   0
 
#define DATR   2
 
#define CTLR   4
 
#define STATR   5
 
#define IRQSTAT   12
 
#define CMD_WE   0x80
 
#define CMD_RF   0x40
 
#define DAT_WE   0x20
 
#define DAT_RF   0x10
 
#define IRQ_REQ   0x08
 
#define DMA1   0x04
 
#define DMA0   0x02
 
#define CMD_WEIE   0x80
 
#define CMD_RFIE   0x40
 
#define DAT_WEIE   0x20
 
#define DAT_RFIE   0x10
 
#define RESET   0x08
 
#define DMA1_IE   0x04
 
#define DMA0_IE   0x02
 
#define IRQ_ACK   0x01
 
#define WACMD_SYSTEMID   0x00
 
#define WACMD_GETREV   0x00
 
#define WACMD_INPUTFORMAT   0x10
 
#define WACMD_INPUTCHANNELS   0x11
 
#define WACMD_INPUTSPEED   0x12
 
#define WACMD_INPUTDMA   0x13
 
#define WACMD_INPUTSIZE   0x14
 
#define WACMD_INPUTSTART   0x15
 
#define WACMD_INPUTPAUSE   0x16
 
#define WACMD_INPUTSTOP   0x17
 
#define WACMD_INPUTRESUME   0x18
 
#define WACMD_INPUTPIO   0x19
 
#define WACMD_OUTPUTFORMAT   0x20
 
#define WACMD_OUTPUTCHANNELS   0x21
 
#define WACMD_OUTPUTSPEED   0x22
 
#define WACMD_OUTPUTDMA   0x23
 
#define WACMD_OUTPUTSIZE   0x24
 
#define WACMD_OUTPUTSTART   0x25
 
#define WACMD_OUTPUTPAUSE   0x26
 
#define WACMD_OUTPUTSTOP   0x27
 
#define WACMD_OUTPUTRESUME   0x28
 
#define WACMD_OUTPUTPIO   0x29
 
#define WACMD_GET_LEVEL   0x30
 
#define WACMD_SET_LEVEL   0x31
 
#define WACMD_SET_MIXER   0x32
 
#define WACMD_RST_MIXER   0x33
 
#define WACMD_SET_MONO   0x34
 
#define ADC_MUX_NONE   0
 
#define ADC_MUX_MIXER   1
 
#define ADC_MUX_LINE   2
 
#define ADC_MUX_AUX2   3
 
#define ADC_MUX_AUX1   4
 
#define ADC_MUX_MIC   5
 
#define MIX_GAIN_LINE   0 /* line in */
 
#define MIX_GAIN_AUX1   1 /* aux1 */
 
#define MIX_GAIN_AUX2   2 /* aux2 */
 
#define MIX_GAIN_XMIC   3 /* crossover mic */
 
#define MIX_GAIN_MIC   4 /* normal mic */
 
#define MIX_GAIN_PREMIC   5 /* preamp mic */
 
#define MIX_GAIN_OUT   6 /* output */
 
#define MIX_GAIN_MONO   7 /* mono in */
 

Functions

int wa_sendcmd (unsigned int cmd)
 
int wa_writecmd (unsigned int cmd, unsigned int arg)
 

Macro Definition Documentation

#define ADC_MUX_AUX1   4

Definition at line 76 of file waveartist.h.

#define ADC_MUX_AUX2   3

Definition at line 75 of file waveartist.h.

#define ADC_MUX_LINE   2

Definition at line 74 of file waveartist.h.

#define ADC_MUX_MIC   5

Definition at line 77 of file waveartist.h.

#define ADC_MUX_MIXER   1

Definition at line 73 of file waveartist.h.

#define ADC_MUX_NONE   0

Definition at line 72 of file waveartist.h.

#define CMD_RF   0x40

Definition at line 17 of file waveartist.h.

#define CMD_RFIE   0x40

Definition at line 28 of file waveartist.h.

#define CMD_WE   0x80

Definition at line 16 of file waveartist.h.

#define CMD_WEIE   0x80

Definition at line 27 of file waveartist.h.

#define CMDR   0

Definition at line 8 of file waveartist.h.

#define CTLR   4

Definition at line 10 of file waveartist.h.

#define DAT_RF   0x10

Definition at line 19 of file waveartist.h.

#define DAT_RFIE   0x10

Definition at line 30 of file waveartist.h.

#define DAT_WE   0x20

Definition at line 18 of file waveartist.h.

#define DAT_WEIE   0x20

Definition at line 29 of file waveartist.h.

#define DATR   2

Definition at line 9 of file waveartist.h.

#define DMA0   0x02

Definition at line 23 of file waveartist.h.

#define DMA0_IE   0x02

Definition at line 34 of file waveartist.h.

#define DMA1   0x04

Definition at line 22 of file waveartist.h.

#define DMA1_IE   0x04

Definition at line 33 of file waveartist.h.

#define IRQ_ACK   0x01

Definition at line 35 of file waveartist.h.

#define IRQ_REQ   0x08

Definition at line 21 of file waveartist.h.

#define IRQSTAT   12

Definition at line 12 of file waveartist.h.

#define MIX_GAIN_AUX1   1 /* aux1 */

Definition at line 83 of file waveartist.h.

#define MIX_GAIN_AUX2   2 /* aux2 */

Definition at line 84 of file waveartist.h.

#define MIX_GAIN_LINE   0 /* line in */

Definition at line 82 of file waveartist.h.

#define MIX_GAIN_MIC   4 /* normal mic */

Definition at line 86 of file waveartist.h.

#define MIX_GAIN_MONO   7 /* mono in */

Definition at line 89 of file waveartist.h.

#define MIX_GAIN_OUT   6 /* output */

Definition at line 88 of file waveartist.h.

#define MIX_GAIN_PREMIC   5 /* preamp mic */

Definition at line 87 of file waveartist.h.

#define MIX_GAIN_XMIC   3 /* crossover mic */

Definition at line 85 of file waveartist.h.

#define RESET   0x08

Definition at line 32 of file waveartist.h.

#define STATR   5

Definition at line 11 of file waveartist.h.

#define WACMD_GET_LEVEL   0x30

Definition at line 63 of file waveartist.h.

#define WACMD_GETREV   0x00

Definition at line 40 of file waveartist.h.

#define WACMD_INPUTCHANNELS   0x11

Definition at line 42 of file waveartist.h.

#define WACMD_INPUTDMA   0x13

Definition at line 44 of file waveartist.h.

#define WACMD_INPUTFORMAT   0x10

Definition at line 41 of file waveartist.h.

#define WACMD_INPUTPAUSE   0x16

Definition at line 47 of file waveartist.h.

#define WACMD_INPUTPIO   0x19

Definition at line 50 of file waveartist.h.

#define WACMD_INPUTRESUME   0x18

Definition at line 49 of file waveartist.h.

#define WACMD_INPUTSIZE   0x14

Definition at line 45 of file waveartist.h.

#define WACMD_INPUTSPEED   0x12

Definition at line 43 of file waveartist.h.

#define WACMD_INPUTSTART   0x15

Definition at line 46 of file waveartist.h.

#define WACMD_INPUTSTOP   0x17

Definition at line 48 of file waveartist.h.

#define WACMD_OUTPUTCHANNELS   0x21

Definition at line 53 of file waveartist.h.

#define WACMD_OUTPUTDMA   0x23

Definition at line 55 of file waveartist.h.

#define WACMD_OUTPUTFORMAT   0x20

Definition at line 52 of file waveartist.h.

#define WACMD_OUTPUTPAUSE   0x26

Definition at line 58 of file waveartist.h.

#define WACMD_OUTPUTPIO   0x29

Definition at line 61 of file waveartist.h.

#define WACMD_OUTPUTRESUME   0x28

Definition at line 60 of file waveartist.h.

#define WACMD_OUTPUTSIZE   0x24

Definition at line 56 of file waveartist.h.

#define WACMD_OUTPUTSPEED   0x22

Definition at line 54 of file waveartist.h.

#define WACMD_OUTPUTSTART   0x25

Definition at line 57 of file waveartist.h.

#define WACMD_OUTPUTSTOP   0x27

Definition at line 59 of file waveartist.h.

#define WACMD_RST_MIXER   0x33

Definition at line 66 of file waveartist.h.

#define WACMD_SET_LEVEL   0x31

Definition at line 64 of file waveartist.h.

#define WACMD_SET_MIXER   0x32

Definition at line 65 of file waveartist.h.

#define WACMD_SET_MONO   0x34

Definition at line 67 of file waveartist.h.

#define WACMD_SYSTEMID   0x00

Definition at line 39 of file waveartist.h.

Function Documentation

int wa_sendcmd ( unsigned int  cmd)
int wa_writecmd ( unsigned int  cmd,
unsigned int  arg 
)