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

Go to the source code of this file.

Macros

#define M98088_REG_00_IRQ_STATUS   0x00
 
#define M98088_REG_01_MIC_STATUS   0x01
 
#define M98088_REG_02_JACK_STAUS   0x02
 
#define M98088_REG_03_BATTERY_VOLTAGE   0x03
 
#define M98088_REG_0F_IRQ_ENABLE   0x0F
 
#define M98088_REG_10_SYS_CLK   0x10
 
#define M98088_REG_11_DAI1_CLKMODE   0x11
 
#define M98088_REG_12_DAI1_CLKCFG_HI   0x12
 
#define M98088_REG_13_DAI1_CLKCFG_LO   0x13
 
#define M98088_REG_14_DAI1_FORMAT   0x14
 
#define M98088_REG_15_DAI1_CLOCK   0x15
 
#define M98088_REG_16_DAI1_IOCFG   0x16
 
#define M98088_REG_17_DAI1_TDM   0x17
 
#define M98088_REG_18_DAI1_FILTERS   0x18
 
#define M98088_REG_19_DAI2_CLKMODE   0x19
 
#define M98088_REG_1A_DAI2_CLKCFG_HI   0x1A
 
#define M98088_REG_1B_DAI2_CLKCFG_LO   0x1B
 
#define M98088_REG_1C_DAI2_FORMAT   0x1C
 
#define M98088_REG_1D_DAI2_CLOCK   0x1D
 
#define M98088_REG_1E_DAI2_IOCFG   0x1E
 
#define M98088_REG_1F_DAI2_TDM   0x1F
 
#define M98088_REG_20_DAI2_FILTERS   0x20
 
#define M98088_REG_21_SRC   0x21
 
#define M98088_REG_22_MIX_DAC   0x22
 
#define M98088_REG_23_MIX_ADC_LEFT   0x23
 
#define M98088_REG_24_MIX_ADC_RIGHT   0x24
 
#define M98088_REG_25_MIX_HP_LEFT   0x25
 
#define M98088_REG_26_MIX_HP_RIGHT   0x26
 
#define M98088_REG_27_MIX_HP_CNTL   0x27
 
#define M98088_REG_28_MIX_REC_LEFT   0x28
 
#define M98088_REG_29_MIX_REC_RIGHT   0x29
 
#define M98088_REG_2A_MIC_REC_CNTL   0x2A
 
#define M98088_REG_2B_MIX_SPK_LEFT   0x2B
 
#define M98088_REG_2C_MIX_SPK_RIGHT   0x2C
 
#define M98088_REG_2D_MIX_SPK_CNTL   0x2D
 
#define M98088_REG_2E_LVL_SIDETONE   0x2E
 
#define M98088_REG_2F_LVL_DAI1_PLAY   0x2F
 
#define M98088_REG_30_LVL_DAI1_PLAY_EQ   0x30
 
#define M98088_REG_31_LVL_DAI2_PLAY   0x31
 
#define M98088_REG_32_LVL_DAI2_PLAY_EQ   0x32
 
#define M98088_REG_33_LVL_ADC_L   0x33
 
#define M98088_REG_34_LVL_ADC_R   0x34
 
#define M98088_REG_35_LVL_MIC1   0x35
 
#define M98088_REG_36_LVL_MIC2   0x36
 
#define M98088_REG_37_LVL_INA   0x37
 
#define M98088_REG_38_LVL_INB   0x38
 
#define M98088_REG_39_LVL_HP_L   0x39
 
#define M98088_REG_3A_LVL_HP_R   0x3A
 
#define M98088_REG_3B_LVL_REC_L   0x3B
 
#define M98088_REG_3C_LVL_REC_R   0x3C
 
#define M98088_REG_3D_LVL_SPK_L   0x3D
 
#define M98088_REG_3E_LVL_SPK_R   0x3E
 
#define M98088_REG_3F_MICAGC_CFG   0x3F
 
#define M98088_REG_40_MICAGC_THRESH   0x40
 
#define M98088_REG_41_SPKDHP   0x41
 
#define M98088_REG_42_SPKDHP_THRESH   0x42
 
#define M98088_REG_43_SPKALC_COMP   0x43
 
#define M98088_REG_44_PWRLMT_CFG   0x44
 
#define M98088_REG_45_PWRLMT_TIME   0x45
 
#define M98088_REG_46_THDLMT_CFG   0x46
 
#define M98088_REG_47_CFG_AUDIO_IN   0x47
 
#define M98088_REG_48_CFG_MIC   0x48
 
#define M98088_REG_49_CFG_LEVEL   0x49
 
#define M98088_REG_4A_CFG_BYPASS   0x4A
 
#define M98088_REG_4B_CFG_JACKDET   0x4B
 
#define M98088_REG_4C_PWR_EN_IN   0x4C
 
#define M98088_REG_4D_PWR_EN_OUT   0x4D
 
#define M98088_REG_4E_BIAS_CNTL   0x4E
 
#define M98088_REG_4F_DAC_BIAS1   0x4F
 
#define M98088_REG_50_DAC_BIAS2   0x50
 
#define M98088_REG_51_PWR_SYS   0x51
 
#define M98088_REG_52_DAI1_EQ_BASE   0x52
 
#define M98088_REG_84_DAI2_EQ_BASE   0x84
 
#define M98088_REG_B6_DAI1_BIQUAD_BASE   0xB6
 
#define M98088_REG_C0_DAI2_BIQUAD_BASE   0xC0
 
#define M98088_REG_FF_REV_ID   0xFF
 
#define M98088_REG_CNT   (0xFF+1)
 
#define M98088_CLKMODE_MASK   0xFF
 
#define M98088_DAI_MAS   (1<<7)
 
#define M98088_DAI_WCI   (1<<6)
 
#define M98088_DAI_BCI   (1<<5)
 
#define M98088_DAI_DLY   (1<<4)
 
#define M98088_DAI_TDM   (1<<2)
 
#define M98088_DAI_FSW   (1<<1)
 
#define M98088_DAI_WS   (1<<0)
 
#define M98088_DAI_BSEL64   (1<<0)
 
#define M98088_DAI_OSR64   (1<<6)
 
#define M98088_S1NORMAL   (1<<6)
 
#define M98088_S2NORMAL   (2<<6)
 
#define M98088_SDATA   (3<<0)
 
#define M98088_DAI_DHF   (1<<3)
 
#define M98088_DAI1L_TO_DACL   (1<<7)
 
#define M98088_DAI1R_TO_DACL   (1<<6)
 
#define M98088_DAI2L_TO_DACL   (1<<5)
 
#define M98088_DAI2R_TO_DACL   (1<<4)
 
#define M98088_DAI1L_TO_DACR   (1<<3)
 
#define M98088_DAI1R_TO_DACR   (1<<2)
 
#define M98088_DAI2L_TO_DACR   (1<<1)
 
#define M98088_DAI2R_TO_DACR   (1<<0)
 
#define M98088_REC_LINEMODE   (1<<7)
 
#define M98088_REC_LINEMODE_MASK   (1<<7)
 
#define M98088_MIX_SPKR_GAIN_MASK   (3<<2)
 
#define M98088_MIX_SPKR_GAIN_SHIFT   2
 
#define M98088_MIX_SPKL_GAIN_MASK   (3<<0)
 
#define M98088_MIX_SPKL_GAIN_SHIFT   0
 
#define M98088_DAI_MUTE   (1<<7)
 
#define M98088_DAI_MUTE_MASK   (1<<7)
 
#define M98088_DAI_VOICE_GAIN_MASK   (3<<4)
 
#define M98088_DAI_ATTENUATION_MASK   (0xF<<0)
 
#define M98088_DAI_ATTENUATION_SHIFT   0
 
#define M98088_MICPRE_MASK   (3<<5)
 
#define M98088_MICPRE_SHIFT   5
 
#define M98088_HP_MUTE   (1<<7)
 
#define M98088_REC_MUTE   (1<<7)
 
#define M98088_SP_MUTE   (1<<7)
 
#define M98088_EXTMIC_MASK   (3<<0)
 
#define M98088_DIGMIC_L   (1<<5)
 
#define M98088_DIGMIC_R   (1<<4)
 
#define M98088_VSEN   (1<<6)
 
#define M98088_ZDEN   (1<<5)
 
#define M98088_EQ2EN   (1<<1)
 
#define M98088_EQ1EN   (1<<0)
 
#define M98088_INAEN   (1<<7)
 
#define M98088_INBEN   (1<<6)
 
#define M98088_MBEN   (1<<3)
 
#define M98088_ADLEN   (1<<1)
 
#define M98088_ADREN   (1<<0)
 
#define M98088_HPLEN   (1<<7)
 
#define M98088_HPREN   (1<<6)
 
#define M98088_HPEN   ((1<<7)|(1<<6))
 
#define M98088_SPLEN   (1<<5)
 
#define M98088_SPREN   (1<<4)
 
#define M98088_RECEN   (1<<3)
 
#define M98088_DALEN   (1<<1)
 
#define M98088_DAREN   (1<<0)
 
#define M98088_SHDNRUN   (1<<7)
 
#define M98088_PERFMODE   (1<<3)
 
#define M98088_HPPLYBACK   (1<<2)
 
#define M98088_PWRSV8K   (1<<1)
 
#define M98088_PWRSV   (1<<0)
 
#define LINE_INA   0
 
#define LINE_INB   1
 
#define M98088_COEFS_PER_BAND   5
 
#define M98088_BYTE1(w)   ((w >> 8) & 0xff)
 
#define M98088_BYTE0(w)   (w & 0xff)
 

Macro Definition Documentation

#define LINE_INA   0

Definition at line 198 of file max98088.h.

#define LINE_INB   1

Definition at line 199 of file max98088.h.

#define M98088_ADLEN   (1<<1)

Definition at line 177 of file max98088.h.

#define M98088_ADREN   (1<<0)

Definition at line 178 of file max98088.h.

#define M98088_BYTE0 (   w)    (w & 0xff)

Definition at line 204 of file max98088.h.

#define M98088_BYTE1 (   w)    ((w >> 8) & 0xff)

Definition at line 203 of file max98088.h.

#define M98088_CLKMODE_MASK   0xFF

Definition at line 99 of file max98088.h.

#define M98088_COEFS_PER_BAND   5

Definition at line 201 of file max98088.h.

#define M98088_DAI1L_TO_DACL   (1<<7)

Definition at line 123 of file max98088.h.

#define M98088_DAI1L_TO_DACR   (1<<3)

Definition at line 127 of file max98088.h.

#define M98088_DAI1R_TO_DACL   (1<<6)

Definition at line 124 of file max98088.h.

#define M98088_DAI1R_TO_DACR   (1<<2)

Definition at line 128 of file max98088.h.

#define M98088_DAI2L_TO_DACL   (1<<5)

Definition at line 125 of file max98088.h.

#define M98088_DAI2L_TO_DACR   (1<<1)

Definition at line 129 of file max98088.h.

#define M98088_DAI2R_TO_DACL   (1<<4)

Definition at line 126 of file max98088.h.

#define M98088_DAI2R_TO_DACR   (1<<0)

Definition at line 130 of file max98088.h.

#define M98088_DAI_ATTENUATION_MASK   (0xF<<0)

Definition at line 146 of file max98088.h.

#define M98088_DAI_ATTENUATION_SHIFT   0

Definition at line 147 of file max98088.h.

#define M98088_DAI_BCI   (1<<5)

Definition at line 104 of file max98088.h.

#define M98088_DAI_BSEL64   (1<<0)

Definition at line 111 of file max98088.h.

#define M98088_DAI_DHF   (1<<3)

Definition at line 120 of file max98088.h.

#define M98088_DAI_DLY   (1<<4)

Definition at line 105 of file max98088.h.

#define M98088_DAI_FSW   (1<<1)

Definition at line 107 of file max98088.h.

#define M98088_DAI_MAS   (1<<7)

Definition at line 102 of file max98088.h.

#define M98088_DAI_MUTE   (1<<7)

Definition at line 143 of file max98088.h.

#define M98088_DAI_MUTE_MASK   (1<<7)

Definition at line 144 of file max98088.h.

#define M98088_DAI_OSR64   (1<<6)

Definition at line 112 of file max98088.h.

#define M98088_DAI_TDM   (1<<2)

Definition at line 106 of file max98088.h.

#define M98088_DAI_VOICE_GAIN_MASK   (3<<4)

Definition at line 145 of file max98088.h.

#define M98088_DAI_WCI   (1<<6)

Definition at line 103 of file max98088.h.

#define M98088_DAI_WS   (1<<0)

Definition at line 108 of file max98088.h.

#define M98088_DALEN   (1<<1)

Definition at line 187 of file max98088.h.

#define M98088_DAREN   (1<<0)

Definition at line 188 of file max98088.h.

#define M98088_DIGMIC_L   (1<<5)

Definition at line 164 of file max98088.h.

#define M98088_DIGMIC_R   (1<<4)

Definition at line 165 of file max98088.h.

#define M98088_EQ1EN   (1<<0)

Definition at line 171 of file max98088.h.

#define M98088_EQ2EN   (1<<1)

Definition at line 170 of file max98088.h.

#define M98088_EXTMIC_MASK   (3<<0)

Definition at line 163 of file max98088.h.

#define M98088_HP_MUTE   (1<<7)

Definition at line 154 of file max98088.h.

#define M98088_HPEN   ((1<<7)|(1<<6))

Definition at line 183 of file max98088.h.

#define M98088_HPLEN   (1<<7)

Definition at line 181 of file max98088.h.

#define M98088_HPPLYBACK   (1<<2)

Definition at line 193 of file max98088.h.

#define M98088_HPREN   (1<<6)

Definition at line 182 of file max98088.h.

#define M98088_INAEN   (1<<7)

Definition at line 174 of file max98088.h.

#define M98088_INBEN   (1<<6)

Definition at line 175 of file max98088.h.

#define M98088_MBEN   (1<<3)

Definition at line 176 of file max98088.h.

#define M98088_MICPRE_MASK   (3<<5)

Definition at line 150 of file max98088.h.

#define M98088_MICPRE_SHIFT   5

Definition at line 151 of file max98088.h.

#define M98088_MIX_SPKL_GAIN_MASK   (3<<0)

Definition at line 139 of file max98088.h.

#define M98088_MIX_SPKL_GAIN_SHIFT   0

Definition at line 140 of file max98088.h.

#define M98088_MIX_SPKR_GAIN_MASK   (3<<2)

Definition at line 137 of file max98088.h.

#define M98088_MIX_SPKR_GAIN_SHIFT   2

Definition at line 138 of file max98088.h.

#define M98088_PERFMODE   (1<<3)

Definition at line 192 of file max98088.h.

#define M98088_PWRSV   (1<<0)

Definition at line 195 of file max98088.h.

#define M98088_PWRSV8K   (1<<1)

Definition at line 194 of file max98088.h.

#define M98088_REC_LINEMODE   (1<<7)

Definition at line 133 of file max98088.h.

#define M98088_REC_LINEMODE_MASK   (1<<7)

Definition at line 134 of file max98088.h.

#define M98088_REC_MUTE   (1<<7)

Definition at line 157 of file max98088.h.

#define M98088_RECEN   (1<<3)

Definition at line 186 of file max98088.h.

#define M98088_REG_00_IRQ_STATUS   0x00

Definition at line 17 of file max98088.h.

#define M98088_REG_01_MIC_STATUS   0x01

Definition at line 18 of file max98088.h.

#define M98088_REG_02_JACK_STAUS   0x02

Definition at line 19 of file max98088.h.

#define M98088_REG_03_BATTERY_VOLTAGE   0x03

Definition at line 20 of file max98088.h.

#define M98088_REG_0F_IRQ_ENABLE   0x0F

Definition at line 21 of file max98088.h.

#define M98088_REG_10_SYS_CLK   0x10

Definition at line 22 of file max98088.h.

#define M98088_REG_11_DAI1_CLKMODE   0x11

Definition at line 23 of file max98088.h.

#define M98088_REG_12_DAI1_CLKCFG_HI   0x12

Definition at line 24 of file max98088.h.

#define M98088_REG_13_DAI1_CLKCFG_LO   0x13

Definition at line 25 of file max98088.h.

#define M98088_REG_14_DAI1_FORMAT   0x14

Definition at line 26 of file max98088.h.

#define M98088_REG_15_DAI1_CLOCK   0x15

Definition at line 27 of file max98088.h.

#define M98088_REG_16_DAI1_IOCFG   0x16

Definition at line 28 of file max98088.h.

#define M98088_REG_17_DAI1_TDM   0x17

Definition at line 29 of file max98088.h.

#define M98088_REG_18_DAI1_FILTERS   0x18

Definition at line 30 of file max98088.h.

#define M98088_REG_19_DAI2_CLKMODE   0x19

Definition at line 31 of file max98088.h.

#define M98088_REG_1A_DAI2_CLKCFG_HI   0x1A

Definition at line 32 of file max98088.h.

#define M98088_REG_1B_DAI2_CLKCFG_LO   0x1B

Definition at line 33 of file max98088.h.

#define M98088_REG_1C_DAI2_FORMAT   0x1C

Definition at line 34 of file max98088.h.

#define M98088_REG_1D_DAI2_CLOCK   0x1D

Definition at line 35 of file max98088.h.

#define M98088_REG_1E_DAI2_IOCFG   0x1E

Definition at line 36 of file max98088.h.

#define M98088_REG_1F_DAI2_TDM   0x1F

Definition at line 37 of file max98088.h.

#define M98088_REG_20_DAI2_FILTERS   0x20

Definition at line 38 of file max98088.h.

#define M98088_REG_21_SRC   0x21

Definition at line 39 of file max98088.h.

#define M98088_REG_22_MIX_DAC   0x22

Definition at line 40 of file max98088.h.

#define M98088_REG_23_MIX_ADC_LEFT   0x23

Definition at line 41 of file max98088.h.

#define M98088_REG_24_MIX_ADC_RIGHT   0x24

Definition at line 42 of file max98088.h.

#define M98088_REG_25_MIX_HP_LEFT   0x25

Definition at line 43 of file max98088.h.

#define M98088_REG_26_MIX_HP_RIGHT   0x26

Definition at line 44 of file max98088.h.

#define M98088_REG_27_MIX_HP_CNTL   0x27

Definition at line 45 of file max98088.h.

#define M98088_REG_28_MIX_REC_LEFT   0x28

Definition at line 46 of file max98088.h.

#define M98088_REG_29_MIX_REC_RIGHT   0x29

Definition at line 47 of file max98088.h.

#define M98088_REG_2A_MIC_REC_CNTL   0x2A

Definition at line 48 of file max98088.h.

#define M98088_REG_2B_MIX_SPK_LEFT   0x2B

Definition at line 49 of file max98088.h.

#define M98088_REG_2C_MIX_SPK_RIGHT   0x2C

Definition at line 50 of file max98088.h.

#define M98088_REG_2D_MIX_SPK_CNTL   0x2D

Definition at line 51 of file max98088.h.

#define M98088_REG_2E_LVL_SIDETONE   0x2E

Definition at line 52 of file max98088.h.

#define M98088_REG_2F_LVL_DAI1_PLAY   0x2F

Definition at line 53 of file max98088.h.

#define M98088_REG_30_LVL_DAI1_PLAY_EQ   0x30

Definition at line 54 of file max98088.h.

#define M98088_REG_31_LVL_DAI2_PLAY   0x31

Definition at line 55 of file max98088.h.

#define M98088_REG_32_LVL_DAI2_PLAY_EQ   0x32

Definition at line 56 of file max98088.h.

#define M98088_REG_33_LVL_ADC_L   0x33

Definition at line 57 of file max98088.h.

#define M98088_REG_34_LVL_ADC_R   0x34

Definition at line 58 of file max98088.h.

#define M98088_REG_35_LVL_MIC1   0x35

Definition at line 59 of file max98088.h.

#define M98088_REG_36_LVL_MIC2   0x36

Definition at line 60 of file max98088.h.

#define M98088_REG_37_LVL_INA   0x37

Definition at line 61 of file max98088.h.

#define M98088_REG_38_LVL_INB   0x38

Definition at line 62 of file max98088.h.

#define M98088_REG_39_LVL_HP_L   0x39

Definition at line 63 of file max98088.h.

#define M98088_REG_3A_LVL_HP_R   0x3A

Definition at line 64 of file max98088.h.

#define M98088_REG_3B_LVL_REC_L   0x3B

Definition at line 65 of file max98088.h.

#define M98088_REG_3C_LVL_REC_R   0x3C

Definition at line 66 of file max98088.h.

#define M98088_REG_3D_LVL_SPK_L   0x3D

Definition at line 67 of file max98088.h.

#define M98088_REG_3E_LVL_SPK_R   0x3E

Definition at line 68 of file max98088.h.

#define M98088_REG_3F_MICAGC_CFG   0x3F

Definition at line 69 of file max98088.h.

#define M98088_REG_40_MICAGC_THRESH   0x40

Definition at line 70 of file max98088.h.

#define M98088_REG_41_SPKDHP   0x41

Definition at line 71 of file max98088.h.

#define M98088_REG_42_SPKDHP_THRESH   0x42

Definition at line 72 of file max98088.h.

#define M98088_REG_43_SPKALC_COMP   0x43

Definition at line 73 of file max98088.h.

#define M98088_REG_44_PWRLMT_CFG   0x44

Definition at line 74 of file max98088.h.

#define M98088_REG_45_PWRLMT_TIME   0x45

Definition at line 75 of file max98088.h.

#define M98088_REG_46_THDLMT_CFG   0x46

Definition at line 76 of file max98088.h.

#define M98088_REG_47_CFG_AUDIO_IN   0x47

Definition at line 77 of file max98088.h.

#define M98088_REG_48_CFG_MIC   0x48

Definition at line 78 of file max98088.h.

#define M98088_REG_49_CFG_LEVEL   0x49

Definition at line 79 of file max98088.h.

#define M98088_REG_4A_CFG_BYPASS   0x4A

Definition at line 80 of file max98088.h.

#define M98088_REG_4B_CFG_JACKDET   0x4B

Definition at line 81 of file max98088.h.

#define M98088_REG_4C_PWR_EN_IN   0x4C

Definition at line 82 of file max98088.h.

#define M98088_REG_4D_PWR_EN_OUT   0x4D

Definition at line 83 of file max98088.h.

#define M98088_REG_4E_BIAS_CNTL   0x4E

Definition at line 84 of file max98088.h.

#define M98088_REG_4F_DAC_BIAS1   0x4F

Definition at line 85 of file max98088.h.

#define M98088_REG_50_DAC_BIAS2   0x50

Definition at line 86 of file max98088.h.

#define M98088_REG_51_PWR_SYS   0x51

Definition at line 87 of file max98088.h.

#define M98088_REG_52_DAI1_EQ_BASE   0x52

Definition at line 88 of file max98088.h.

#define M98088_REG_84_DAI2_EQ_BASE   0x84

Definition at line 89 of file max98088.h.

#define M98088_REG_B6_DAI1_BIQUAD_BASE   0xB6

Definition at line 90 of file max98088.h.

#define M98088_REG_C0_DAI2_BIQUAD_BASE   0xC0

Definition at line 91 of file max98088.h.

#define M98088_REG_CNT   (0xFF+1)

Definition at line 94 of file max98088.h.

#define M98088_REG_FF_REV_ID   0xFF

Definition at line 92 of file max98088.h.

#define M98088_S1NORMAL   (1<<6)

Definition at line 115 of file max98088.h.

#define M98088_S2NORMAL   (2<<6)

Definition at line 116 of file max98088.h.

#define M98088_SDATA   (3<<0)

Definition at line 117 of file max98088.h.

#define M98088_SHDNRUN   (1<<7)

Definition at line 191 of file max98088.h.

#define M98088_SP_MUTE   (1<<7)

Definition at line 160 of file max98088.h.

#define M98088_SPLEN   (1<<5)

Definition at line 184 of file max98088.h.

#define M98088_SPREN   (1<<4)

Definition at line 185 of file max98088.h.

#define M98088_VSEN   (1<<6)

Definition at line 168 of file max98088.h.

#define M98088_ZDEN   (1<<5)

Definition at line 169 of file max98088.h.