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

Go to the source code of this file.

Macros

#define CS4245_CHIP_ID   0x01
 
#define CS4245_POWER_CTRL   0x02
 
#define CS4245_DAC_CTRL_1   0x03
 
#define CS4245_ADC_CTRL   0x04
 
#define CS4245_MCLK_FREQ   0x05
 
#define CS4245_SIGNAL_SEL   0x06
 
#define CS4245_PGA_B_CTRL   0x07
 
#define CS4245_PGA_A_CTRL   0x08
 
#define CS4245_ANALOG_IN   0x09
 
#define CS4245_DAC_A_CTRL   0x0a
 
#define CS4245_DAC_B_CTRL   0x0b
 
#define CS4245_DAC_CTRL_2   0x0c
 
#define CS4245_INT_STATUS   0x0d
 
#define CS4245_INT_MASK   0x0e
 
#define CS4245_INT_MODE_MSB   0x0f
 
#define CS4245_INT_MODE_LSB   0x10
 
#define CS4245_CHIP_PART_MASK   0xf0
 
#define CS4245_CHIP_REV_MASK   0x0f
 
#define CS4245_FREEZE   0x80
 
#define CS4245_PDN_MIC   0x08
 
#define CS4245_PDN_ADC   0x04
 
#define CS4245_PDN_DAC   0x02
 
#define CS4245_PDN   0x01
 
#define CS4245_DAC_FM_MASK   0xc0
 
#define CS4245_DAC_FM_SINGLE   0x00
 
#define CS4245_DAC_FM_DOUBLE   0x40
 
#define CS4245_DAC_FM_QUAD   0x80
 
#define CS4245_DAC_DIF_MASK   0x30
 
#define CS4245_DAC_DIF_LJUST   0x00
 
#define CS4245_DAC_DIF_I2S   0x10
 
#define CS4245_DAC_DIF_RJUST_16   0x20
 
#define CS4245_DAC_DIF_RJUST_24   0x30
 
#define CS4245_RESERVED_1   0x08
 
#define CS4245_MUTE_DAC   0x04
 
#define CS4245_DEEMPH   0x02
 
#define CS4245_DAC_MASTER   0x01
 
#define CS4245_ADC_FM_MASK   0xc0
 
#define CS4245_ADC_FM_SINGLE   0x00
 
#define CS4245_ADC_FM_DOUBLE   0x40
 
#define CS4245_ADC_FM_QUAD   0x80
 
#define CS4245_ADC_DIF_MASK   0x10
 
#define CS4245_ADC_DIF_LJUST   0x00
 
#define CS4245_ADC_DIF_I2S   0x10
 
#define CS4245_MUTE_ADC   0x04
 
#define CS4245_HPF_FREEZE   0x02
 
#define CS4245_ADC_MASTER   0x01
 
#define CS4245_MCLK1_MASK   0x70
 
#define CS4245_MCLK1_SHIFT   4
 
#define CS4245_MCLK2_MASK   0x07
 
#define CS4245_MCLK2_SHIFT   0
 
#define CS4245_MCLK_1   0
 
#define CS4245_MCLK_1_5   1
 
#define CS4245_MCLK_2   2
 
#define CS4245_MCLK_3   3
 
#define CS4245_MCLK_4   4
 
#define CS4245_A_OUT_SEL_MASK   0x60
 
#define CS4245_A_OUT_SEL_HIZ   0x00
 
#define CS4245_A_OUT_SEL_DAC   0x20
 
#define CS4245_A_OUT_SEL_PGA   0x40
 
#define CS4245_LOOP   0x02
 
#define CS4245_ASYNCH   0x01
 
#define CS4245_PGA_GAIN_MASK   0x3f
 
#define CS4245_PGA_SOFT   0x10
 
#define CS4245_PGA_ZERO   0x08
 
#define CS4245_SEL_MASK   0x07
 
#define CS4245_SEL_MIC   0x00
 
#define CS4245_SEL_INPUT_1   0x01
 
#define CS4245_SEL_INPUT_2   0x02
 
#define CS4245_SEL_INPUT_3   0x03
 
#define CS4245_SEL_INPUT_4   0x04
 
#define CS4245_SEL_INPUT_5   0x05
 
#define CS4245_SEL_INPUT_6   0x06
 
#define CS4245_VOL_MASK   0xff
 
#define CS4245_DAC_SOFT   0x80
 
#define CS4245_DAC_ZERO   0x40
 
#define CS4245_INVERT_DAC   0x20
 
#define CS4245_INT_ACTIVE_HIGH   0x01
 
#define CS4245_ADC_CLK_ERR   0x08
 
#define CS4245_DAC_CLK_ERR   0x04
 
#define CS4245_ADC_OVFL   0x02
 
#define CS4245_ADC_UNDRFL   0x01
 
#define CS4245_SPI_ADDRESS   (0x9e << 16)
 
#define CS4245_SPI_WRITE   (0 << 16)
 

Macro Definition Documentation

#define CS4245_A_OUT_SEL_DAC   0x20

Definition at line 70 of file cs4245.h.

#define CS4245_A_OUT_SEL_HIZ   0x00

Definition at line 69 of file cs4245.h.

#define CS4245_A_OUT_SEL_MASK   0x60

Definition at line 68 of file cs4245.h.

#define CS4245_A_OUT_SEL_PGA   0x40

Definition at line 71 of file cs4245.h.

#define CS4245_ADC_CLK_ERR   0x08

Definition at line 100 of file cs4245.h.

#define CS4245_ADC_CTRL   0x04

Definition at line 4 of file cs4245.h.

#define CS4245_ADC_DIF_I2S   0x10

Definition at line 51 of file cs4245.h.

#define CS4245_ADC_DIF_LJUST   0x00

Definition at line 50 of file cs4245.h.

#define CS4245_ADC_DIF_MASK   0x10

Definition at line 49 of file cs4245.h.

#define CS4245_ADC_FM_DOUBLE   0x40

Definition at line 47 of file cs4245.h.

#define CS4245_ADC_FM_MASK   0xc0

Definition at line 45 of file cs4245.h.

#define CS4245_ADC_FM_QUAD   0x80

Definition at line 48 of file cs4245.h.

#define CS4245_ADC_FM_SINGLE   0x00

Definition at line 46 of file cs4245.h.

#define CS4245_ADC_MASTER   0x01

Definition at line 54 of file cs4245.h.

#define CS4245_ADC_OVFL   0x02

Definition at line 102 of file cs4245.h.

#define CS4245_ADC_UNDRFL   0x01

Definition at line 103 of file cs4245.h.

#define CS4245_ANALOG_IN   0x09

Definition at line 9 of file cs4245.h.

#define CS4245_ASYNCH   0x01

Definition at line 73 of file cs4245.h.

#define CS4245_CHIP_ID   0x01

Definition at line 1 of file cs4245.h.

#define CS4245_CHIP_PART_MASK   0xf0

Definition at line 19 of file cs4245.h.

#define CS4245_CHIP_REV_MASK   0x0f

Definition at line 20 of file cs4245.h.

#define CS4245_DAC_A_CTRL   0x0a

Definition at line 10 of file cs4245.h.

#define CS4245_DAC_B_CTRL   0x0b

Definition at line 11 of file cs4245.h.

#define CS4245_DAC_CLK_ERR   0x04

Definition at line 101 of file cs4245.h.

#define CS4245_DAC_CTRL_1   0x03

Definition at line 3 of file cs4245.h.

#define CS4245_DAC_CTRL_2   0x0c

Definition at line 12 of file cs4245.h.

#define CS4245_DAC_DIF_I2S   0x10

Definition at line 36 of file cs4245.h.

#define CS4245_DAC_DIF_LJUST   0x00

Definition at line 35 of file cs4245.h.

#define CS4245_DAC_DIF_MASK   0x30

Definition at line 34 of file cs4245.h.

#define CS4245_DAC_DIF_RJUST_16   0x20

Definition at line 37 of file cs4245.h.

#define CS4245_DAC_DIF_RJUST_24   0x30

Definition at line 38 of file cs4245.h.

#define CS4245_DAC_FM_DOUBLE   0x40

Definition at line 32 of file cs4245.h.

#define CS4245_DAC_FM_MASK   0xc0

Definition at line 30 of file cs4245.h.

#define CS4245_DAC_FM_QUAD   0x80

Definition at line 33 of file cs4245.h.

#define CS4245_DAC_FM_SINGLE   0x00

Definition at line 31 of file cs4245.h.

#define CS4245_DAC_MASTER   0x01

Definition at line 42 of file cs4245.h.

#define CS4245_DAC_SOFT   0x80

Definition at line 94 of file cs4245.h.

#define CS4245_DAC_ZERO   0x40

Definition at line 95 of file cs4245.h.

#define CS4245_DEEMPH   0x02

Definition at line 41 of file cs4245.h.

#define CS4245_FREEZE   0x80

Definition at line 23 of file cs4245.h.

#define CS4245_HPF_FREEZE   0x02

Definition at line 53 of file cs4245.h.

#define CS4245_INT_ACTIVE_HIGH   0x01

Definition at line 97 of file cs4245.h.

#define CS4245_INT_MASK   0x0e

Definition at line 14 of file cs4245.h.

#define CS4245_INT_MODE_LSB   0x10

Definition at line 16 of file cs4245.h.

#define CS4245_INT_MODE_MSB   0x0f

Definition at line 15 of file cs4245.h.

#define CS4245_INT_STATUS   0x0d

Definition at line 13 of file cs4245.h.

#define CS4245_INVERT_DAC   0x20

Definition at line 96 of file cs4245.h.

#define CS4245_LOOP   0x02

Definition at line 72 of file cs4245.h.

#define CS4245_MCLK1_MASK   0x70

Definition at line 57 of file cs4245.h.

#define CS4245_MCLK1_SHIFT   4

Definition at line 58 of file cs4245.h.

#define CS4245_MCLK2_MASK   0x07

Definition at line 59 of file cs4245.h.

#define CS4245_MCLK2_SHIFT   0

Definition at line 60 of file cs4245.h.

#define CS4245_MCLK_1   0

Definition at line 61 of file cs4245.h.

#define CS4245_MCLK_1_5   1

Definition at line 62 of file cs4245.h.

#define CS4245_MCLK_2   2

Definition at line 63 of file cs4245.h.

#define CS4245_MCLK_3   3

Definition at line 64 of file cs4245.h.

#define CS4245_MCLK_4   4

Definition at line 65 of file cs4245.h.

#define CS4245_MCLK_FREQ   0x05

Definition at line 5 of file cs4245.h.

#define CS4245_MUTE_ADC   0x04

Definition at line 52 of file cs4245.h.

#define CS4245_MUTE_DAC   0x04

Definition at line 40 of file cs4245.h.

#define CS4245_PDN   0x01

Definition at line 27 of file cs4245.h.

#define CS4245_PDN_ADC   0x04

Definition at line 25 of file cs4245.h.

#define CS4245_PDN_DAC   0x02

Definition at line 26 of file cs4245.h.

#define CS4245_PDN_MIC   0x08

Definition at line 24 of file cs4245.h.

#define CS4245_PGA_A_CTRL   0x08

Definition at line 8 of file cs4245.h.

#define CS4245_PGA_B_CTRL   0x07

Definition at line 7 of file cs4245.h.

#define CS4245_PGA_GAIN_MASK   0x3f

Definition at line 76 of file cs4245.h.

#define CS4245_PGA_SOFT   0x10

Definition at line 79 of file cs4245.h.

#define CS4245_PGA_ZERO   0x08

Definition at line 80 of file cs4245.h.

#define CS4245_POWER_CTRL   0x02

Definition at line 2 of file cs4245.h.

#define CS4245_RESERVED_1   0x08

Definition at line 39 of file cs4245.h.

#define CS4245_SEL_INPUT_1   0x01

Definition at line 83 of file cs4245.h.

#define CS4245_SEL_INPUT_2   0x02

Definition at line 84 of file cs4245.h.

#define CS4245_SEL_INPUT_3   0x03

Definition at line 85 of file cs4245.h.

#define CS4245_SEL_INPUT_4   0x04

Definition at line 86 of file cs4245.h.

#define CS4245_SEL_INPUT_5   0x05

Definition at line 87 of file cs4245.h.

#define CS4245_SEL_INPUT_6   0x06

Definition at line 88 of file cs4245.h.

#define CS4245_SEL_MASK   0x07

Definition at line 81 of file cs4245.h.

#define CS4245_SEL_MIC   0x00

Definition at line 82 of file cs4245.h.

#define CS4245_SIGNAL_SEL   0x06

Definition at line 6 of file cs4245.h.

#define CS4245_SPI_ADDRESS   (0x9e << 16)

Definition at line 106 of file cs4245.h.

#define CS4245_SPI_WRITE   (0 << 16)

Definition at line 107 of file cs4245.h.

#define CS4245_VOL_MASK   0xff

Definition at line 91 of file cs4245.h.