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

Go to the source code of this file.

Macros

#define AD193X_PLL_CLK_CTRL0   0x00
 
#define AD193X_PLL_POWERDOWN   0x01
 
#define AD193X_PLL_INPUT_MASK   0x6
 
#define AD193X_PLL_INPUT_256   (0 << 1)
 
#define AD193X_PLL_INPUT_384   (1 << 1)
 
#define AD193X_PLL_INPUT_512   (2 << 1)
 
#define AD193X_PLL_INPUT_768   (3 << 1)
 
#define AD193X_PLL_CLK_CTRL1   0x01
 
#define AD193X_DAC_CTRL0   0x02
 
#define AD193X_DAC_POWERDOWN   0x01
 
#define AD193X_DAC_SERFMT_MASK   0xC0
 
#define AD193X_DAC_SERFMT_STEREO   (0 << 6)
 
#define AD193X_DAC_SERFMT_TDM   (1 << 6)
 
#define AD193X_DAC_CTRL1   0x03
 
#define AD193X_DAC_CHAN_SHFT   1
 
#define AD193X_DAC_CHAN_MASK   (3 << AD193X_DAC_CHAN_SHFT)
 
#define AD193X_DAC_LCR_MASTER   (1 << 4)
 
#define AD193X_DAC_BCLK_MASTER   (1 << 5)
 
#define AD193X_DAC_LEFT_HIGH   (1 << 3)
 
#define AD193X_DAC_BCLK_INV   (1 << 7)
 
#define AD193X_DAC_FMT_MASK
 
#define AD193X_DAC_CTRL2   0x04
 
#define AD193X_DAC_WORD_LEN_SHFT   3
 
#define AD193X_DAC_WORD_LEN_MASK   0x18
 
#define AD193X_DAC_MASTER_MUTE   1
 
#define AD193X_DAC_CHNL_MUTE   0x05
 
#define AD193X_DACL1_MUTE   0
 
#define AD193X_DACR1_MUTE   1
 
#define AD193X_DACL2_MUTE   2
 
#define AD193X_DACR2_MUTE   3
 
#define AD193X_DACL3_MUTE   4
 
#define AD193X_DACR3_MUTE   5
 
#define AD193X_DACL4_MUTE   6
 
#define AD193X_DACR4_MUTE   7
 
#define AD193X_DAC_L1_VOL   0x06
 
#define AD193X_DAC_R1_VOL   0x07
 
#define AD193X_DAC_L2_VOL   0x08
 
#define AD193X_DAC_R2_VOL   0x09
 
#define AD193X_DAC_L3_VOL   0x0a
 
#define AD193X_DAC_R3_VOL   0x0b
 
#define AD193X_DAC_L4_VOL   0x0c
 
#define AD193X_DAC_R4_VOL   0x0d
 
#define AD193X_ADC_CTRL0   0x0e
 
#define AD193X_ADC_POWERDOWN   0x01
 
#define AD193X_ADC_HIGHPASS_FILTER   1
 
#define AD193X_ADCL1_MUTE   2
 
#define AD193X_ADCR1_MUTE   3
 
#define AD193X_ADCL2_MUTE   4
 
#define AD193X_ADCR2_MUTE   5
 
#define AD193X_ADC_CTRL1   0x0f
 
#define AD193X_ADC_SERFMT_MASK   0x60
 
#define AD193X_ADC_SERFMT_STEREO   (0 << 5)
 
#define AD193X_ADC_SERFMT_TDM   (1 << 5)
 
#define AD193X_ADC_SERFMT_AUX   (2 << 5)
 
#define AD193X_ADC_WORD_LEN_MASK   0x3
 
#define AD193X_ADC_CTRL2   0x10
 
#define AD193X_ADC_CHAN_SHFT   4
 
#define AD193X_ADC_CHAN_MASK   (3 << AD193X_ADC_CHAN_SHFT)
 
#define AD193X_ADC_LCR_MASTER   (1 << 3)
 
#define AD193X_ADC_BCLK_MASTER   (1 << 6)
 
#define AD193X_ADC_LEFT_HIGH   (1 << 2)
 
#define AD193X_ADC_BCLK_INV   (1 << 1)
 
#define AD193X_ADC_FMT_MASK
 
#define AD193X_2_CHANNELS   0
 
#define AD193X_4_CHANNELS   1
 
#define AD193X_8_CHANNELS   2
 
#define AD193X_16_CHANNELS   3
 
#define AD193X_NUM_REGS   17
 

Macro Definition Documentation

#define AD193X_16_CHANNELS   3

Definition at line 81 of file ad193x.h.

#define AD193X_2_CHANNELS   0

Definition at line 78 of file ad193x.h.

#define AD193X_4_CHANNELS   1

Definition at line 79 of file ad193x.h.

#define AD193X_8_CHANNELS   2

Definition at line 80 of file ad193x.h.

#define AD193X_ADC_BCLK_INV   (1 << 1)

Definition at line 74 of file ad193x.h.

#define AD193X_ADC_BCLK_MASTER   (1 << 6)

Definition at line 72 of file ad193x.h.

#define AD193X_ADC_CHAN_MASK   (3 << AD193X_ADC_CHAN_SHFT)

Definition at line 70 of file ad193x.h.

#define AD193X_ADC_CHAN_SHFT   4

Definition at line 69 of file ad193x.h.

#define AD193X_ADC_CTRL0   0x0e

Definition at line 55 of file ad193x.h.

#define AD193X_ADC_CTRL1   0x0f

Definition at line 62 of file ad193x.h.

#define AD193X_ADC_CTRL2   0x10

Definition at line 68 of file ad193x.h.

#define AD193X_ADC_FMT_MASK
Value:

Definition at line 75 of file ad193x.h.

#define AD193X_ADC_HIGHPASS_FILTER   1

Definition at line 57 of file ad193x.h.

#define AD193X_ADC_LCR_MASTER   (1 << 3)

Definition at line 71 of file ad193x.h.

#define AD193X_ADC_LEFT_HIGH   (1 << 2)

Definition at line 73 of file ad193x.h.

#define AD193X_ADC_POWERDOWN   0x01

Definition at line 56 of file ad193x.h.

#define AD193X_ADC_SERFMT_AUX   (2 << 5)

Definition at line 66 of file ad193x.h.

#define AD193X_ADC_SERFMT_MASK   0x60

Definition at line 63 of file ad193x.h.

#define AD193X_ADC_SERFMT_STEREO   (0 << 5)

Definition at line 64 of file ad193x.h.

#define AD193X_ADC_SERFMT_TDM   (1 << 5)

Definition at line 65 of file ad193x.h.

#define AD193X_ADC_WORD_LEN_MASK   0x3

Definition at line 67 of file ad193x.h.

#define AD193X_ADCL1_MUTE   2

Definition at line 58 of file ad193x.h.

#define AD193X_ADCL2_MUTE   4

Definition at line 60 of file ad193x.h.

#define AD193X_ADCR1_MUTE   3

Definition at line 59 of file ad193x.h.

#define AD193X_ADCR2_MUTE   5

Definition at line 61 of file ad193x.h.

#define AD193X_DAC_BCLK_INV   (1 << 7)

Definition at line 31 of file ad193x.h.

#define AD193X_DAC_BCLK_MASTER   (1 << 5)

Definition at line 29 of file ad193x.h.

#define AD193X_DAC_CHAN_MASK   (3 << AD193X_DAC_CHAN_SHFT)

Definition at line 27 of file ad193x.h.

#define AD193X_DAC_CHAN_SHFT   1

Definition at line 26 of file ad193x.h.

#define AD193X_DAC_CHNL_MUTE   0x05

Definition at line 38 of file ad193x.h.

#define AD193X_DAC_CTRL0   0x02

Definition at line 20 of file ad193x.h.

#define AD193X_DAC_CTRL1   0x03

Definition at line 25 of file ad193x.h.

#define AD193X_DAC_CTRL2   0x04

Definition at line 34 of file ad193x.h.

#define AD193X_DAC_FMT_MASK
Value:

Definition at line 32 of file ad193x.h.

#define AD193X_DAC_L1_VOL   0x06

Definition at line 47 of file ad193x.h.

#define AD193X_DAC_L2_VOL   0x08

Definition at line 49 of file ad193x.h.

#define AD193X_DAC_L3_VOL   0x0a

Definition at line 51 of file ad193x.h.

#define AD193X_DAC_L4_VOL   0x0c

Definition at line 53 of file ad193x.h.

#define AD193X_DAC_LCR_MASTER   (1 << 4)

Definition at line 28 of file ad193x.h.

#define AD193X_DAC_LEFT_HIGH   (1 << 3)

Definition at line 30 of file ad193x.h.

#define AD193X_DAC_MASTER_MUTE   1

Definition at line 37 of file ad193x.h.

#define AD193X_DAC_POWERDOWN   0x01

Definition at line 21 of file ad193x.h.

#define AD193X_DAC_R1_VOL   0x07

Definition at line 48 of file ad193x.h.

#define AD193X_DAC_R2_VOL   0x09

Definition at line 50 of file ad193x.h.

#define AD193X_DAC_R3_VOL   0x0b

Definition at line 52 of file ad193x.h.

#define AD193X_DAC_R4_VOL   0x0d

Definition at line 54 of file ad193x.h.

#define AD193X_DAC_SERFMT_MASK   0xC0

Definition at line 22 of file ad193x.h.

#define AD193X_DAC_SERFMT_STEREO   (0 << 6)

Definition at line 23 of file ad193x.h.

#define AD193X_DAC_SERFMT_TDM   (1 << 6)

Definition at line 24 of file ad193x.h.

#define AD193X_DAC_WORD_LEN_MASK   0x18

Definition at line 36 of file ad193x.h.

#define AD193X_DAC_WORD_LEN_SHFT   3

Definition at line 35 of file ad193x.h.

#define AD193X_DACL1_MUTE   0

Definition at line 39 of file ad193x.h.

#define AD193X_DACL2_MUTE   2

Definition at line 41 of file ad193x.h.

#define AD193X_DACL3_MUTE   4

Definition at line 43 of file ad193x.h.

#define AD193X_DACL4_MUTE   6

Definition at line 45 of file ad193x.h.

#define AD193X_DACR1_MUTE   1

Definition at line 40 of file ad193x.h.

#define AD193X_DACR2_MUTE   3

Definition at line 42 of file ad193x.h.

#define AD193X_DACR3_MUTE   5

Definition at line 44 of file ad193x.h.

#define AD193X_DACR4_MUTE   7

Definition at line 46 of file ad193x.h.

#define AD193X_NUM_REGS   17

Definition at line 83 of file ad193x.h.

#define AD193X_PLL_CLK_CTRL0   0x00

Definition at line 12 of file ad193x.h.

#define AD193X_PLL_CLK_CTRL1   0x01

Definition at line 19 of file ad193x.h.

#define AD193X_PLL_INPUT_256   (0 << 1)

Definition at line 15 of file ad193x.h.

#define AD193X_PLL_INPUT_384   (1 << 1)

Definition at line 16 of file ad193x.h.

#define AD193X_PLL_INPUT_512   (2 << 1)

Definition at line 17 of file ad193x.h.

#define AD193X_PLL_INPUT_768   (3 << 1)

Definition at line 18 of file ad193x.h.

#define AD193X_PLL_INPUT_MASK   0x6

Definition at line 14 of file ad193x.h.

#define AD193X_PLL_POWERDOWN   0x01

Definition at line 13 of file ad193x.h.