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

Go to the source code of this file.

Macros

#define AK4671_AD_DA_POWER_MANAGEMENT   0x00
 
#define AK4671_PLL_MODE_SELECT0   0x01
 
#define AK4671_PLL_MODE_SELECT1   0x02
 
#define AK4671_FORMAT_SELECT   0x03
 
#define AK4671_MIC_SIGNAL_SELECT   0x04
 
#define AK4671_MIC_AMP_GAIN   0x05
 
#define AK4671_MIXING_POWER_MANAGEMENT0   0x06
 
#define AK4671_MIXING_POWER_MANAGEMENT1   0x07
 
#define AK4671_OUTPUT_VOLUME_CONTROL   0x08
 
#define AK4671_LOUT1_SIGNAL_SELECT   0x09
 
#define AK4671_ROUT1_SIGNAL_SELECT   0x0a
 
#define AK4671_LOUT2_SIGNAL_SELECT   0x0b
 
#define AK4671_ROUT2_SIGNAL_SELECT   0x0c
 
#define AK4671_LOUT3_SIGNAL_SELECT   0x0d
 
#define AK4671_ROUT3_SIGNAL_SELECT   0x0e
 
#define AK4671_LOUT1_POWER_MANAGERMENT   0x0f
 
#define AK4671_LOUT2_POWER_MANAGERMENT   0x10
 
#define AK4671_LOUT3_POWER_MANAGERMENT   0x11
 
#define AK4671_LCH_INPUT_VOLUME_CONTROL   0x12
 
#define AK4671_RCH_INPUT_VOLUME_CONTROL   0x13
 
#define AK4671_ALC_REFERENCE_SELECT   0x14
 
#define AK4671_DIGITAL_MIXING_CONTROL   0x15
 
#define AK4671_ALC_TIMER_SELECT   0x16
 
#define AK4671_ALC_MODE_CONTROL   0x17
 
#define AK4671_MODE_CONTROL1   0x18
 
#define AK4671_MODE_CONTROL2   0x19
 
#define AK4671_LCH_OUTPUT_VOLUME_CONTROL   0x1a
 
#define AK4671_RCH_OUTPUT_VOLUME_CONTROL   0x1b
 
#define AK4671_SIDETONE_A_CONTROL   0x1c
 
#define AK4671_DIGITAL_FILTER_SELECT   0x1d
 
#define AK4671_FIL3_COEFFICIENT0   0x1e
 
#define AK4671_FIL3_COEFFICIENT1   0x1f
 
#define AK4671_FIL3_COEFFICIENT2   0x20
 
#define AK4671_FIL3_COEFFICIENT3   0x21
 
#define AK4671_EQ_COEFFICIENT0   0x22
 
#define AK4671_EQ_COEFFICIENT1   0x23
 
#define AK4671_EQ_COEFFICIENT2   0x24
 
#define AK4671_EQ_COEFFICIENT3   0x25
 
#define AK4671_EQ_COEFFICIENT4   0x26
 
#define AK4671_EQ_COEFFICIENT5   0x27
 
#define AK4671_FIL1_COEFFICIENT0   0x28
 
#define AK4671_FIL1_COEFFICIENT1   0x29
 
#define AK4671_FIL1_COEFFICIENT2   0x2a
 
#define AK4671_FIL1_COEFFICIENT3   0x2b
 
#define AK4671_FIL2_COEFFICIENT0   0x2c
 
#define AK4671_FIL2_COEFFICIENT1   0x2d
 
#define AK4671_FIL2_COEFFICIENT2   0x2e
 
#define AK4671_FIL2_COEFFICIENT3   0x2f
 
#define AK4671_DIGITAL_FILTER_SELECT2   0x30
 
#define AK4671_E1_COEFFICIENT0   0x32
 
#define AK4671_E1_COEFFICIENT1   0x33
 
#define AK4671_E1_COEFFICIENT2   0x34
 
#define AK4671_E1_COEFFICIENT3   0x35
 
#define AK4671_E1_COEFFICIENT4   0x36
 
#define AK4671_E1_COEFFICIENT5   0x37
 
#define AK4671_E2_COEFFICIENT0   0x38
 
#define AK4671_E2_COEFFICIENT1   0x39
 
#define AK4671_E2_COEFFICIENT2   0x3a
 
#define AK4671_E2_COEFFICIENT3   0x3b
 
#define AK4671_E2_COEFFICIENT4   0x3c
 
#define AK4671_E2_COEFFICIENT5   0x3d
 
#define AK4671_E3_COEFFICIENT0   0x3e
 
#define AK4671_E3_COEFFICIENT1   0x3f
 
#define AK4671_E3_COEFFICIENT2   0x40
 
#define AK4671_E3_COEFFICIENT3   0x41
 
#define AK4671_E3_COEFFICIENT4   0x42
 
#define AK4671_E3_COEFFICIENT5   0x43
 
#define AK4671_E4_COEFFICIENT0   0x44
 
#define AK4671_E4_COEFFICIENT1   0x45
 
#define AK4671_E4_COEFFICIENT2   0x46
 
#define AK4671_E4_COEFFICIENT3   0x47
 
#define AK4671_E4_COEFFICIENT4   0x48
 
#define AK4671_E4_COEFFICIENT5   0x49
 
#define AK4671_E5_COEFFICIENT0   0x4a
 
#define AK4671_E5_COEFFICIENT1   0x4b
 
#define AK4671_E5_COEFFICIENT2   0x4c
 
#define AK4671_E5_COEFFICIENT3   0x4d
 
#define AK4671_E5_COEFFICIENT4   0x4e
 
#define AK4671_E5_COEFFICIENT5   0x4f
 
#define AK4671_EQ_CONTROL_250HZ_100HZ   0x50
 
#define AK4671_EQ_CONTROL_3500HZ_1KHZ   0x51
 
#define AK4671_EQ_CONTRO_10KHZ   0x52
 
#define AK4671_PCM_IF_CONTROL0   0x53
 
#define AK4671_PCM_IF_CONTROL1   0x54
 
#define AK4671_PCM_IF_CONTROL2   0x55
 
#define AK4671_DIGITAL_VOLUME_B_CONTROL   0x56
 
#define AK4671_DIGITAL_VOLUME_C_CONTROL   0x57
 
#define AK4671_SIDETONE_VOLUME_CONTROL   0x58
 
#define AK4671_DIGITAL_MIXING_CONTROL2   0x59
 
#define AK4671_SAR_ADC_CONTROL   0x5a
 
#define AK4671_CACHEREGNUM   (AK4671_SAR_ADC_CONTROL + 1)
 
#define AK4671_PMVCM   0x01
 
#define AK4671_PLL   0x0f
 
#define AK4671_PLL_11_2896MHZ   (4 << 0)
 
#define AK4671_PLL_12_288MHZ   (5 << 0)
 
#define AK4671_PLL_12MHZ   (6 << 0)
 
#define AK4671_PLL_24MHZ   (7 << 0)
 
#define AK4671_PLL_19_2MHZ   (8 << 0)
 
#define AK4671_PLL_13_5MHZ   (12 << 0)
 
#define AK4671_PLL_27MHZ   (13 << 0)
 
#define AK4671_PLL_13MHZ   (14 << 0)
 
#define AK4671_PLL_26MHZ   (15 << 0)
 
#define AK4671_FS   0xf0
 
#define AK4671_FS_8KHZ   (0 << 4)
 
#define AK4671_FS_12KHZ   (1 << 4)
 
#define AK4671_FS_16KHZ   (2 << 4)
 
#define AK4671_FS_24KHZ   (3 << 4)
 
#define AK4671_FS_11_025KHZ   (5 << 4)
 
#define AK4671_FS_22_05KHZ   (7 << 4)
 
#define AK4671_FS_32KHZ   (10 << 4)
 
#define AK4671_FS_48KHZ   (11 << 4)
 
#define AK4671_FS_44_1KHZ   (15 << 4)
 
#define AK4671_PMPLL   0x01
 
#define AK4671_M_S   0x02
 
#define AK4671_DIF   0x03
 
#define AK4671_DIF_DSP_MODE   (0 << 0)
 
#define AK4671_DIF_MSB_MODE   (2 << 0)
 
#define AK4671_DIF_I2S_MODE   (3 << 0)
 
#define AK4671_BCKP   0x04
 
#define AK4671_MSBS   0x08
 
#define AK4671_SDOD   0x10
 
#define AK4671_MUTEN   0x04
 

Macro Definition Documentation

#define AK4671_AD_DA_POWER_MANAGEMENT   0x00

Definition at line 17 of file ak4671.h.

#define AK4671_ALC_MODE_CONTROL   0x17

Definition at line 40 of file ak4671.h.

#define AK4671_ALC_REFERENCE_SELECT   0x14

Definition at line 37 of file ak4671.h.

#define AK4671_ALC_TIMER_SELECT   0x16

Definition at line 39 of file ak4671.h.

#define AK4671_BCKP   0x04

Definition at line 146 of file ak4671.h.

#define AK4671_CACHEREGNUM   (AK4671_SAR_ADC_CONTROL + 1)

Definition at line 108 of file ak4671.h.

#define AK4671_DIF   0x03

Definition at line 142 of file ak4671.h.

#define AK4671_DIF_DSP_MODE   (0 << 0)

Definition at line 143 of file ak4671.h.

#define AK4671_DIF_I2S_MODE   (3 << 0)

Definition at line 145 of file ak4671.h.

#define AK4671_DIF_MSB_MODE   (2 << 0)

Definition at line 144 of file ak4671.h.

#define AK4671_DIGITAL_FILTER_SELECT   0x1d

Definition at line 46 of file ak4671.h.

#define AK4671_DIGITAL_FILTER_SELECT2   0x30

Definition at line 65 of file ak4671.h.

#define AK4671_DIGITAL_MIXING_CONTROL   0x15

Definition at line 38 of file ak4671.h.

#define AK4671_DIGITAL_MIXING_CONTROL2   0x59

Definition at line 105 of file ak4671.h.

#define AK4671_DIGITAL_VOLUME_B_CONTROL   0x56

Definition at line 102 of file ak4671.h.

#define AK4671_DIGITAL_VOLUME_C_CONTROL   0x57

Definition at line 103 of file ak4671.h.

#define AK4671_E1_COEFFICIENT0   0x32

Definition at line 66 of file ak4671.h.

#define AK4671_E1_COEFFICIENT1   0x33

Definition at line 67 of file ak4671.h.

#define AK4671_E1_COEFFICIENT2   0x34

Definition at line 68 of file ak4671.h.

#define AK4671_E1_COEFFICIENT3   0x35

Definition at line 69 of file ak4671.h.

#define AK4671_E1_COEFFICIENT4   0x36

Definition at line 70 of file ak4671.h.

#define AK4671_E1_COEFFICIENT5   0x37

Definition at line 71 of file ak4671.h.

#define AK4671_E2_COEFFICIENT0   0x38

Definition at line 72 of file ak4671.h.

#define AK4671_E2_COEFFICIENT1   0x39

Definition at line 73 of file ak4671.h.

#define AK4671_E2_COEFFICIENT2   0x3a

Definition at line 74 of file ak4671.h.

#define AK4671_E2_COEFFICIENT3   0x3b

Definition at line 75 of file ak4671.h.

#define AK4671_E2_COEFFICIENT4   0x3c

Definition at line 76 of file ak4671.h.

#define AK4671_E2_COEFFICIENT5   0x3d

Definition at line 77 of file ak4671.h.

#define AK4671_E3_COEFFICIENT0   0x3e

Definition at line 78 of file ak4671.h.

#define AK4671_E3_COEFFICIENT1   0x3f

Definition at line 79 of file ak4671.h.

#define AK4671_E3_COEFFICIENT2   0x40

Definition at line 80 of file ak4671.h.

#define AK4671_E3_COEFFICIENT3   0x41

Definition at line 81 of file ak4671.h.

#define AK4671_E3_COEFFICIENT4   0x42

Definition at line 82 of file ak4671.h.

#define AK4671_E3_COEFFICIENT5   0x43

Definition at line 83 of file ak4671.h.

#define AK4671_E4_COEFFICIENT0   0x44

Definition at line 84 of file ak4671.h.

#define AK4671_E4_COEFFICIENT1   0x45

Definition at line 85 of file ak4671.h.

#define AK4671_E4_COEFFICIENT2   0x46

Definition at line 86 of file ak4671.h.

#define AK4671_E4_COEFFICIENT3   0x47

Definition at line 87 of file ak4671.h.

#define AK4671_E4_COEFFICIENT4   0x48

Definition at line 88 of file ak4671.h.

#define AK4671_E4_COEFFICIENT5   0x49

Definition at line 89 of file ak4671.h.

#define AK4671_E5_COEFFICIENT0   0x4a

Definition at line 90 of file ak4671.h.

#define AK4671_E5_COEFFICIENT1   0x4b

Definition at line 91 of file ak4671.h.

#define AK4671_E5_COEFFICIENT2   0x4c

Definition at line 92 of file ak4671.h.

#define AK4671_E5_COEFFICIENT3   0x4d

Definition at line 93 of file ak4671.h.

#define AK4671_E5_COEFFICIENT4   0x4e

Definition at line 94 of file ak4671.h.

#define AK4671_E5_COEFFICIENT5   0x4f

Definition at line 95 of file ak4671.h.

#define AK4671_EQ_COEFFICIENT0   0x22

Definition at line 51 of file ak4671.h.

#define AK4671_EQ_COEFFICIENT1   0x23

Definition at line 52 of file ak4671.h.

#define AK4671_EQ_COEFFICIENT2   0x24

Definition at line 53 of file ak4671.h.

#define AK4671_EQ_COEFFICIENT3   0x25

Definition at line 54 of file ak4671.h.

#define AK4671_EQ_COEFFICIENT4   0x26

Definition at line 55 of file ak4671.h.

#define AK4671_EQ_COEFFICIENT5   0x27

Definition at line 56 of file ak4671.h.

#define AK4671_EQ_CONTRO_10KHZ   0x52

Definition at line 98 of file ak4671.h.

#define AK4671_EQ_CONTROL_250HZ_100HZ   0x50

Definition at line 96 of file ak4671.h.

#define AK4671_EQ_CONTROL_3500HZ_1KHZ   0x51

Definition at line 97 of file ak4671.h.

#define AK4671_FIL1_COEFFICIENT0   0x28

Definition at line 57 of file ak4671.h.

#define AK4671_FIL1_COEFFICIENT1   0x29

Definition at line 58 of file ak4671.h.

#define AK4671_FIL1_COEFFICIENT2   0x2a

Definition at line 59 of file ak4671.h.

#define AK4671_FIL1_COEFFICIENT3   0x2b

Definition at line 60 of file ak4671.h.

#define AK4671_FIL2_COEFFICIENT0   0x2c

Definition at line 61 of file ak4671.h.

#define AK4671_FIL2_COEFFICIENT1   0x2d

Definition at line 62 of file ak4671.h.

#define AK4671_FIL2_COEFFICIENT2   0x2e

Definition at line 63 of file ak4671.h.

#define AK4671_FIL2_COEFFICIENT3   0x2f

Definition at line 64 of file ak4671.h.

#define AK4671_FIL3_COEFFICIENT0   0x1e

Definition at line 47 of file ak4671.h.

#define AK4671_FIL3_COEFFICIENT1   0x1f

Definition at line 48 of file ak4671.h.

#define AK4671_FIL3_COEFFICIENT2   0x20

Definition at line 49 of file ak4671.h.

#define AK4671_FIL3_COEFFICIENT3   0x21

Definition at line 50 of file ak4671.h.

#define AK4671_FORMAT_SELECT   0x03

Definition at line 20 of file ak4671.h.

#define AK4671_FS   0xf0

Definition at line 126 of file ak4671.h.

#define AK4671_FS_11_025KHZ   (5 << 4)

Definition at line 131 of file ak4671.h.

#define AK4671_FS_12KHZ   (1 << 4)

Definition at line 128 of file ak4671.h.

#define AK4671_FS_16KHZ   (2 << 4)

Definition at line 129 of file ak4671.h.

#define AK4671_FS_22_05KHZ   (7 << 4)

Definition at line 132 of file ak4671.h.

#define AK4671_FS_24KHZ   (3 << 4)

Definition at line 130 of file ak4671.h.

#define AK4671_FS_32KHZ   (10 << 4)

Definition at line 133 of file ak4671.h.

#define AK4671_FS_44_1KHZ   (15 << 4)

Definition at line 135 of file ak4671.h.

#define AK4671_FS_48KHZ   (11 << 4)

Definition at line 134 of file ak4671.h.

#define AK4671_FS_8KHZ   (0 << 4)

Definition at line 127 of file ak4671.h.

#define AK4671_LCH_INPUT_VOLUME_CONTROL   0x12

Definition at line 35 of file ak4671.h.

#define AK4671_LCH_OUTPUT_VOLUME_CONTROL   0x1a

Definition at line 43 of file ak4671.h.

#define AK4671_LOUT1_POWER_MANAGERMENT   0x0f

Definition at line 32 of file ak4671.h.

#define AK4671_LOUT1_SIGNAL_SELECT   0x09

Definition at line 26 of file ak4671.h.

#define AK4671_LOUT2_POWER_MANAGERMENT   0x10

Definition at line 33 of file ak4671.h.

#define AK4671_LOUT2_SIGNAL_SELECT   0x0b

Definition at line 28 of file ak4671.h.

#define AK4671_LOUT3_POWER_MANAGERMENT   0x11

Definition at line 34 of file ak4671.h.

#define AK4671_LOUT3_SIGNAL_SELECT   0x0d

Definition at line 30 of file ak4671.h.

#define AK4671_M_S   0x02

Definition at line 139 of file ak4671.h.

#define AK4671_MIC_AMP_GAIN   0x05

Definition at line 22 of file ak4671.h.

#define AK4671_MIC_SIGNAL_SELECT   0x04

Definition at line 21 of file ak4671.h.

#define AK4671_MIXING_POWER_MANAGEMENT0   0x06

Definition at line 23 of file ak4671.h.

#define AK4671_MIXING_POWER_MANAGEMENT1   0x07

Definition at line 24 of file ak4671.h.

#define AK4671_MODE_CONTROL1   0x18

Definition at line 41 of file ak4671.h.

#define AK4671_MODE_CONTROL2   0x19

Definition at line 42 of file ak4671.h.

#define AK4671_MSBS   0x08

Definition at line 147 of file ak4671.h.

#define AK4671_MUTEN   0x04

Definition at line 151 of file ak4671.h.

#define AK4671_OUTPUT_VOLUME_CONTROL   0x08

Definition at line 25 of file ak4671.h.

#define AK4671_PCM_IF_CONTROL0   0x53

Definition at line 99 of file ak4671.h.

#define AK4671_PCM_IF_CONTROL1   0x54

Definition at line 100 of file ak4671.h.

#define AK4671_PCM_IF_CONTROL2   0x55

Definition at line 101 of file ak4671.h.

#define AK4671_PLL   0x0f

Definition at line 116 of file ak4671.h.

#define AK4671_PLL_11_2896MHZ   (4 << 0)

Definition at line 117 of file ak4671.h.

#define AK4671_PLL_12_288MHZ   (5 << 0)

Definition at line 118 of file ak4671.h.

#define AK4671_PLL_12MHZ   (6 << 0)

Definition at line 119 of file ak4671.h.

#define AK4671_PLL_13_5MHZ   (12 << 0)

Definition at line 122 of file ak4671.h.

#define AK4671_PLL_13MHZ   (14 << 0)

Definition at line 124 of file ak4671.h.

#define AK4671_PLL_19_2MHZ   (8 << 0)

Definition at line 121 of file ak4671.h.

#define AK4671_PLL_24MHZ   (7 << 0)

Definition at line 120 of file ak4671.h.

#define AK4671_PLL_26MHZ   (15 << 0)

Definition at line 125 of file ak4671.h.

#define AK4671_PLL_27MHZ   (13 << 0)

Definition at line 123 of file ak4671.h.

#define AK4671_PLL_MODE_SELECT0   0x01

Definition at line 18 of file ak4671.h.

#define AK4671_PLL_MODE_SELECT1   0x02

Definition at line 19 of file ak4671.h.

#define AK4671_PMPLL   0x01

Definition at line 138 of file ak4671.h.

#define AK4671_PMVCM   0x01

Definition at line 113 of file ak4671.h.

#define AK4671_RCH_INPUT_VOLUME_CONTROL   0x13

Definition at line 36 of file ak4671.h.

#define AK4671_RCH_OUTPUT_VOLUME_CONTROL   0x1b

Definition at line 44 of file ak4671.h.

#define AK4671_ROUT1_SIGNAL_SELECT   0x0a

Definition at line 27 of file ak4671.h.

#define AK4671_ROUT2_SIGNAL_SELECT   0x0c

Definition at line 29 of file ak4671.h.

#define AK4671_ROUT3_SIGNAL_SELECT   0x0e

Definition at line 31 of file ak4671.h.

#define AK4671_SAR_ADC_CONTROL   0x5a

Definition at line 106 of file ak4671.h.

#define AK4671_SDOD   0x10

Definition at line 148 of file ak4671.h.

#define AK4671_SIDETONE_A_CONTROL   0x1c

Definition at line 45 of file ak4671.h.

#define AK4671_SIDETONE_VOLUME_CONTROL   0x58

Definition at line 104 of file ak4671.h.