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

Go to the source code of this file.

Macros

#define AD1836_DAC_CTRL1   0
 
#define AD1836_DAC_POWERDOWN   2
 
#define AD1836_DAC_SERFMT_MASK   0xE0
 
#define AD1836_DAC_SERFMT_PCK256   (0x4 << 5)
 
#define AD1836_DAC_SERFMT_PCK128   (0x5 << 5)
 
#define AD1836_DAC_WORD_LEN_MASK   0x18
 
#define AD1836_DAC_WORD_LEN_OFFSET   3
 
#define AD1836_DAC_CTRL2   1
 
#define AD1836_MUTE_LEFT(x)   (((x) * 2) - 2)
 
#define AD1836_MUTE_RIGHT(x)   (((x) * 2) - 1)
 
#define AD1836_DAC_L_VOL(x)   ((x) * 2)
 
#define AD1836_DAC_R_VOL(x)   (1 + ((x) * 2))
 
#define AD1836_ADC_CTRL1   12
 
#define AD1836_ADC_POWERDOWN   7
 
#define AD1836_ADC_HIGHPASS_FILTER   8
 
#define AD1836_ADC_CTRL2   13
 
#define AD1836_ADC_WORD_LEN_MASK   0x30
 
#define AD1836_ADC_WORD_OFFSET   4
 
#define AD1836_ADC_SERFMT_MASK   (7 << 6)
 
#define AD1836_ADC_SERFMT_PCK256   (0x4 << 6)
 
#define AD1836_ADC_SERFMT_PCK128   (0x5 << 6)
 
#define AD1836_ADC_AUX   (0x6 << 6)
 
#define AD1836_ADC_CTRL3   14
 
#define AD1836_NUM_REGS   16
 
#define AD1836_WORD_LEN_24   0x0
 
#define AD1836_WORD_LEN_20   0x1
 
#define AD1836_WORD_LEN_16   0x2
 

Macro Definition Documentation

#define AD1836_ADC_AUX   (0x6 << 6)

Definition at line 41 of file ad1836.h.

#define AD1836_ADC_CTRL1   12

Definition at line 31 of file ad1836.h.

#define AD1836_ADC_CTRL2   13

Definition at line 35 of file ad1836.h.

#define AD1836_ADC_CTRL3   14

Definition at line 43 of file ad1836.h.

#define AD1836_ADC_HIGHPASS_FILTER   8

Definition at line 33 of file ad1836.h.

#define AD1836_ADC_POWERDOWN   7

Definition at line 32 of file ad1836.h.

#define AD1836_ADC_SERFMT_MASK   (7 << 6)

Definition at line 38 of file ad1836.h.

#define AD1836_ADC_SERFMT_PCK128   (0x5 << 6)

Definition at line 40 of file ad1836.h.

#define AD1836_ADC_SERFMT_PCK256   (0x4 << 6)

Definition at line 39 of file ad1836.h.

#define AD1836_ADC_WORD_LEN_MASK   0x30

Definition at line 36 of file ad1836.h.

#define AD1836_ADC_WORD_OFFSET   4

Definition at line 37 of file ad1836.h.

#define AD1836_DAC_CTRL1   0

Definition at line 13 of file ad1836.h.

#define AD1836_DAC_CTRL2   1

Definition at line 21 of file ad1836.h.

#define AD1836_DAC_L_VOL (   x)    ((x) * 2)

Definition at line 28 of file ad1836.h.

#define AD1836_DAC_POWERDOWN   2

Definition at line 14 of file ad1836.h.

#define AD1836_DAC_R_VOL (   x)    (1 + ((x) * 2))

Definition at line 29 of file ad1836.h.

#define AD1836_DAC_SERFMT_MASK   0xE0

Definition at line 15 of file ad1836.h.

#define AD1836_DAC_SERFMT_PCK128   (0x5 << 5)

Definition at line 17 of file ad1836.h.

#define AD1836_DAC_SERFMT_PCK256   (0x4 << 5)

Definition at line 16 of file ad1836.h.

#define AD1836_DAC_WORD_LEN_MASK   0x18

Definition at line 18 of file ad1836.h.

#define AD1836_DAC_WORD_LEN_OFFSET   3

Definition at line 19 of file ad1836.h.

#define AD1836_MUTE_LEFT (   x)    (((x) * 2) - 2)

Definition at line 25 of file ad1836.h.

#define AD1836_MUTE_RIGHT (   x)    (((x) * 2) - 1)

Definition at line 26 of file ad1836.h.

#define AD1836_NUM_REGS   16

Definition at line 45 of file ad1836.h.

#define AD1836_WORD_LEN_16   0x2

Definition at line 49 of file ad1836.h.

#define AD1836_WORD_LEN_20   0x1

Definition at line 48 of file ad1836.h.

#define AD1836_WORD_LEN_24   0x0

Definition at line 47 of file ad1836.h.