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

Go to the source code of this file.

Macros

#define ML26124_SMPLING_RATE   0x00
 
#define ML26124_PLLNL   0x02
 
#define ML26124_PLLNH   0x04
 
#define ML26124_PLLML   0x06
 
#define ML26124_PLLMH   0x08
 
#define ML26124_PLLDIV   0x0a
 
#define ML26124_CLK_EN   0x0c
 
#define ML26124_CLK_CTL   0x0e
 
#define ML26124_SW_RST   0x10
 
#define ML26124_REC_PLYBAK_RUN   0x12
 
#define ML26124_MIC_TIM   0x14
 
#define ML26124_PW_REF_PW_MNG   0x20
 
#define ML26124_PW_IN_PW_MNG   0x22
 
#define ML26124_PW_DAC_PW_MNG   0x24
 
#define ML26124_PW_SPAMP_PW_MNG   0x26
 
#define ML26124_PW_LOUT_PW_MNG   0x28
 
#define ML26124_PW_VOUT_PW_MNG   0x2a
 
#define ML26124_PW_ZCCMP_PW_MNG   0x2e
 
#define ML26124_PW_MICBIAS_VOL   0x30
 
#define ML26124_PW_MIC_IN_VOL   0x32
 
#define ML26124_PW_MIC_BOST_VOL   0x38
 
#define ML26124_PW_SPK_AMP_VOL   0x3a
 
#define ML26124_PW_AMP_VOL_FUNC   0x48
 
#define ML26124_PW_AMP_VOL_FADE   0x4a
 
#define ML26124_SPK_AMP_OUT   0x54
 
#define ML26124_MIC_IF_CTL   0x5a
 
#define ML26124_MIC_SELECT   0xe8
 
#define ML26124_SAI_TRANS_CTL   0x60
 
#define ML26124_SAI_RCV_CTL   0x62
 
#define ML26124_SAI_MODE_SEL   0x64
 
#define ML26124_FILTER_EN   0x66
 
#define ML26124_DVOL_CTL   0x68
 
#define ML26124_MIXER_VOL_CTL   0x6a
 
#define ML26124_RECORD_DIG_VOL   0x6c
 
#define ML26124_PLBAK_DIG_VOL   0x70
 
#define ML26124_DIGI_BOOST_VOL   0x72
 
#define ML26124_EQ_GAIN_BRAND0   0x74
 
#define ML26124_EQ_GAIN_BRAND1   0x76
 
#define ML26124_EQ_GAIN_BRAND2   0x78
 
#define ML26124_EQ_GAIN_BRAND3   0x7a
 
#define ML26124_EQ_GAIN_BRAND4   0x7c
 
#define ML26124_HPF2_CUTOFF   0x7e
 
#define ML26124_EQBRAND0_F0L   0x80
 
#define ML26124_EQBRAND0_F0H   0x82
 
#define ML26124_EQBRAND0_F1L   0x84
 
#define ML26124_EQBRAND0_F1H   0x86
 
#define ML26124_EQBRAND1_F0L   0x88
 
#define ML26124_EQBRAND1_F0H   0x8a
 
#define ML26124_EQBRAND1_F1L   0x8c
 
#define ML26124_EQBRAND1_F1H   0x8e
 
#define ML26124_EQBRAND2_F0L   0x90
 
#define ML26124_EQBRAND2_F0H   0x92
 
#define ML26124_EQBRAND2_F1L   0x94
 
#define ML26124_EQBRAND2_F1H   0x96
 
#define ML26124_EQBRAND3_F0L   0x98
 
#define ML26124_EQBRAND3_F0H   0x9a
 
#define ML26124_EQBRAND3_F1L   0x9c
 
#define ML26124_EQBRAND3_F1H   0x9e
 
#define ML26124_EQBRAND4_F0L   0xa0
 
#define ML26124_EQBRAND4_F0H   0xa2
 
#define ML26124_EQBRAND4_F1L   0xa4
 
#define ML26124_EQBRAND4_F1H   0xa6
 
#define ML26124_ALC_MODE   0xb0
 
#define ML26124_ALC_ATTACK_TIM   0xb2
 
#define ML26124_ALC_DECAY_TIM   0xb4
 
#define ML26124_ALC_HOLD_TIM   0xb6
 
#define ML26124_ALC_TARGET_LEV   0xb8
 
#define ML26124_ALC_MAXMIN_GAIN   0xba
 
#define ML26124_NOIS_GATE_THRSH   0xbc
 
#define ML26124_ALC_ZERO_TIMOUT   0xbe
 
#define ML26124_PL_ATTACKTIME   0xc0
 
#define ML26124_PL_DECAYTIME   0xc2
 
#define ML26124_PL_TARGETTIME   0xc4
 
#define ML26124_PL_MAXMIN_GAIN   0xc6
 
#define ML26124_PLYBAK_BOST_VOL   0xc8
 
#define ML26124_PL_0CROSS_TIMOUT   0xca
 
#define ML26124_VIDEO_AMP_GAIN_CTL   0xd0
 
#define ML26124_VIDEO_AMP_SETUP1   0xd2
 
#define ML26124_VIDEO_AMP_CTL2   0xd4
 
#define ML26124_USE_PLL   0
 
#define ML26124_USE_MCLKI_256FS   1
 
#define ML26124_USE_MCLKI_512FS   2
 
#define ML26124_USE_MCLKI_1024FS   3
 
#define ML26124_R0_MASK   0xf
 
#define ML26124_R2_MASK   0xff
 
#define ML26124_R4_MASK   0x1
 
#define ML26124_R6_MASK   0xf
 
#define ML26124_R8_MASK   0x3f
 
#define ML26124_Ra_MASK   0x1f
 
#define ML26124_Rc_MASK   0x1f
 
#define ML26124_Re_MASK   0x7
 
#define ML26124_R10_MASK   0x1
 
#define ML26124_R12_MASK   0x17
 
#define ML26124_R14_MASK   0x3f
 
#define ML26124_R20_MASK   0x47
 
#define ML26124_R22_MASK   0xa
 
#define ML26124_R24_MASK   0x2
 
#define ML26124_R26_MASK   0x1f
 
#define ML26124_R28_MASK   0x2
 
#define ML26124_R2a_MASK   0x2
 
#define ML26124_R2e_MASK   0x2
 
#define ML26124_R30_MASK   0x7
 
#define ML26124_R32_MASK   0x3f
 
#define ML26124_R38_MASK   0x38
 
#define ML26124_R3a_MASK   0x3f
 
#define ML26124_R48_MASK   0x3
 
#define ML26124_R4a_MASK   0x7
 
#define ML26124_R54_MASK   0x2a
 
#define ML26124_R5a_MASK   0x3
 
#define ML26124_Re8_MASK   0x3
 
#define ML26124_R60_MASK   0xff
 
#define ML26124_R62_MASK   0xff
 
#define ML26124_R64_MASK   0x1
 
#define ML26124_R66_MASK   0xff
 
#define ML26124_R68_MASK   0x3b
 
#define ML26124_R6a_MASK   0xf3
 
#define ML26124_R6c_MASK   0xff
 
#define ML26124_R70_MASK   0xff
 
#define ML26124_MCLKEN   BIT(0)
 
#define ML26124_PLLEN   BIT(1)
 
#define ML26124_PLLOE   BIT(2)
 
#define ML26124_MCLKOE   BIT(3)
 
#define ML26124_BLT_ALL_ON   0x1f
 
#define ML26124_BLT_PREAMP_ON   0x13
 
#define ML26124_MICBEN_ON   BIT(2)
 

Enumerations

enum  ml26124_regs { ML26124_MCLK = 0 }
 
enum  ml26124_clk_in { ML26124_USE_PLLOUT = 0, ML26124_USE_MCLKI }
 

Macro Definition Documentation

#define ML26124_ALC_ATTACK_TIM   0xb2

Definition at line 101 of file ml26124.h.

#define ML26124_ALC_DECAY_TIM   0xb4

Definition at line 102 of file ml26124.h.

#define ML26124_ALC_HOLD_TIM   0xb6

Definition at line 103 of file ml26124.h.

#define ML26124_ALC_MAXMIN_GAIN   0xba

Definition at line 105 of file ml26124.h.

#define ML26124_ALC_MODE   0xb0

Definition at line 100 of file ml26124.h.

#define ML26124_ALC_TARGET_LEV   0xb8

Definition at line 104 of file ml26124.h.

#define ML26124_ALC_ZERO_TIMOUT   0xbe

Definition at line 107 of file ml26124.h.

#define ML26124_BLT_ALL_ON   0x1f

Definition at line 170 of file ml26124.h.

#define ML26124_BLT_PREAMP_ON   0x13

Definition at line 171 of file ml26124.h.

#define ML26124_CLK_CTL   0x0e

Definition at line 29 of file ml26124.h.

#define ML26124_CLK_EN   0x0c

Definition at line 28 of file ml26124.h.

#define ML26124_DIGI_BOOST_VOL   0x72

Definition at line 71 of file ml26124.h.

#define ML26124_DVOL_CTL   0x68

Definition at line 67 of file ml26124.h.

#define ML26124_EQ_GAIN_BRAND0   0x74

Definition at line 72 of file ml26124.h.

#define ML26124_EQ_GAIN_BRAND1   0x76

Definition at line 73 of file ml26124.h.

#define ML26124_EQ_GAIN_BRAND2   0x78

Definition at line 74 of file ml26124.h.

#define ML26124_EQ_GAIN_BRAND3   0x7a

Definition at line 75 of file ml26124.h.

#define ML26124_EQ_GAIN_BRAND4   0x7c

Definition at line 76 of file ml26124.h.

#define ML26124_EQBRAND0_F0H   0x82

Definition at line 79 of file ml26124.h.

#define ML26124_EQBRAND0_F0L   0x80

Definition at line 78 of file ml26124.h.

#define ML26124_EQBRAND0_F1H   0x86

Definition at line 81 of file ml26124.h.

#define ML26124_EQBRAND0_F1L   0x84

Definition at line 80 of file ml26124.h.

#define ML26124_EQBRAND1_F0H   0x8a

Definition at line 83 of file ml26124.h.

#define ML26124_EQBRAND1_F0L   0x88

Definition at line 82 of file ml26124.h.

#define ML26124_EQBRAND1_F1H   0x8e

Definition at line 85 of file ml26124.h.

#define ML26124_EQBRAND1_F1L   0x8c

Definition at line 84 of file ml26124.h.

#define ML26124_EQBRAND2_F0H   0x92

Definition at line 87 of file ml26124.h.

#define ML26124_EQBRAND2_F0L   0x90

Definition at line 86 of file ml26124.h.

#define ML26124_EQBRAND2_F1H   0x96

Definition at line 89 of file ml26124.h.

#define ML26124_EQBRAND2_F1L   0x94

Definition at line 88 of file ml26124.h.

#define ML26124_EQBRAND3_F0H   0x9a

Definition at line 91 of file ml26124.h.

#define ML26124_EQBRAND3_F0L   0x98

Definition at line 90 of file ml26124.h.

#define ML26124_EQBRAND3_F1H   0x9e

Definition at line 93 of file ml26124.h.

#define ML26124_EQBRAND3_F1L   0x9c

Definition at line 92 of file ml26124.h.

#define ML26124_EQBRAND4_F0H   0xa2

Definition at line 95 of file ml26124.h.

#define ML26124_EQBRAND4_F0L   0xa0

Definition at line 94 of file ml26124.h.

#define ML26124_EQBRAND4_F1H   0xa6

Definition at line 97 of file ml26124.h.

#define ML26124_EQBRAND4_F1L   0xa4

Definition at line 96 of file ml26124.h.

#define ML26124_FILTER_EN   0x66

Definition at line 66 of file ml26124.h.

#define ML26124_HPF2_CUTOFF   0x7e

Definition at line 77 of file ml26124.h.

#define ML26124_MCLKEN   BIT(0)

Definition at line 165 of file ml26124.h.

#define ML26124_MCLKOE   BIT(3)

Definition at line 168 of file ml26124.h.

#define ML26124_MIC_IF_CTL   0x5a

Definition at line 57 of file ml26124.h.

#define ML26124_MIC_SELECT   0xe8

Definition at line 58 of file ml26124.h.

#define ML26124_MIC_TIM   0x14

Definition at line 34 of file ml26124.h.

#define ML26124_MICBEN_ON   BIT(2)

Definition at line 173 of file ml26124.h.

#define ML26124_MIXER_VOL_CTL   0x6a

Definition at line 68 of file ml26124.h.

#define ML26124_NOIS_GATE_THRSH   0xbc

Definition at line 106 of file ml26124.h.

#define ML26124_PL_0CROSS_TIMOUT   0xca

Definition at line 115 of file ml26124.h.

#define ML26124_PL_ATTACKTIME   0xc0

Definition at line 110 of file ml26124.h.

#define ML26124_PL_DECAYTIME   0xc2

Definition at line 111 of file ml26124.h.

#define ML26124_PL_MAXMIN_GAIN   0xc6

Definition at line 113 of file ml26124.h.

#define ML26124_PL_TARGETTIME   0xc4

Definition at line 112 of file ml26124.h.

#define ML26124_PLBAK_DIG_VOL   0x70

Definition at line 70 of file ml26124.h.

#define ML26124_PLLDIV   0x0a

Definition at line 27 of file ml26124.h.

#define ML26124_PLLEN   BIT(1)

Definition at line 166 of file ml26124.h.

#define ML26124_PLLMH   0x08

Definition at line 26 of file ml26124.h.

#define ML26124_PLLML   0x06

Definition at line 25 of file ml26124.h.

#define ML26124_PLLNH   0x04

Definition at line 24 of file ml26124.h.

#define ML26124_PLLNL   0x02

Definition at line 23 of file ml26124.h.

#define ML26124_PLLOE   BIT(2)

Definition at line 167 of file ml26124.h.

#define ML26124_PLYBAK_BOST_VOL   0xc8

Definition at line 114 of file ml26124.h.

#define ML26124_PW_AMP_VOL_FADE   0x4a

Definition at line 53 of file ml26124.h.

#define ML26124_PW_AMP_VOL_FUNC   0x48

Definition at line 52 of file ml26124.h.

#define ML26124_PW_DAC_PW_MNG   0x24

Definition at line 39 of file ml26124.h.

#define ML26124_PW_IN_PW_MNG   0x22

Definition at line 38 of file ml26124.h.

#define ML26124_PW_LOUT_PW_MNG   0x28

Definition at line 41 of file ml26124.h.

#define ML26124_PW_MIC_BOST_VOL   0x38

Definition at line 50 of file ml26124.h.

#define ML26124_PW_MIC_IN_VOL   0x32

Definition at line 49 of file ml26124.h.

#define ML26124_PW_MICBIAS_VOL   0x30

Definition at line 46 of file ml26124.h.

#define ML26124_PW_REF_PW_MNG   0x20

Definition at line 37 of file ml26124.h.

#define ML26124_PW_SPAMP_PW_MNG   0x26

Definition at line 40 of file ml26124.h.

#define ML26124_PW_SPK_AMP_VOL   0x3a

Definition at line 51 of file ml26124.h.

#define ML26124_PW_VOUT_PW_MNG   0x2a

Definition at line 42 of file ml26124.h.

#define ML26124_PW_ZCCMP_PW_MNG   0x2e

Definition at line 43 of file ml26124.h.

#define ML26124_R0_MASK   0xf

Definition at line 129 of file ml26124.h.

#define ML26124_R10_MASK   0x1

Definition at line 137 of file ml26124.h.

#define ML26124_R12_MASK   0x17

Definition at line 138 of file ml26124.h.

#define ML26124_R14_MASK   0x3f

Definition at line 139 of file ml26124.h.

#define ML26124_R20_MASK   0x47

Definition at line 140 of file ml26124.h.

#define ML26124_R22_MASK   0xa

Definition at line 141 of file ml26124.h.

#define ML26124_R24_MASK   0x2

Definition at line 142 of file ml26124.h.

#define ML26124_R26_MASK   0x1f

Definition at line 143 of file ml26124.h.

#define ML26124_R28_MASK   0x2

Definition at line 144 of file ml26124.h.

#define ML26124_R2_MASK   0xff

Definition at line 130 of file ml26124.h.

#define ML26124_R2a_MASK   0x2

Definition at line 145 of file ml26124.h.

#define ML26124_R2e_MASK   0x2

Definition at line 146 of file ml26124.h.

#define ML26124_R30_MASK   0x7

Definition at line 147 of file ml26124.h.

#define ML26124_R32_MASK   0x3f

Definition at line 148 of file ml26124.h.

#define ML26124_R38_MASK   0x38

Definition at line 149 of file ml26124.h.

#define ML26124_R3a_MASK   0x3f

Definition at line 150 of file ml26124.h.

#define ML26124_R48_MASK   0x3

Definition at line 151 of file ml26124.h.

#define ML26124_R4_MASK   0x1

Definition at line 131 of file ml26124.h.

#define ML26124_R4a_MASK   0x7

Definition at line 152 of file ml26124.h.

#define ML26124_R54_MASK   0x2a

Definition at line 153 of file ml26124.h.

#define ML26124_R5a_MASK   0x3

Definition at line 154 of file ml26124.h.

#define ML26124_R60_MASK   0xff

Definition at line 156 of file ml26124.h.

#define ML26124_R62_MASK   0xff

Definition at line 157 of file ml26124.h.

#define ML26124_R64_MASK   0x1

Definition at line 158 of file ml26124.h.

#define ML26124_R66_MASK   0xff

Definition at line 159 of file ml26124.h.

#define ML26124_R68_MASK   0x3b

Definition at line 160 of file ml26124.h.

#define ML26124_R6_MASK   0xf

Definition at line 132 of file ml26124.h.

#define ML26124_R6a_MASK   0xf3

Definition at line 161 of file ml26124.h.

#define ML26124_R6c_MASK   0xff

Definition at line 162 of file ml26124.h.

#define ML26124_R70_MASK   0xff

Definition at line 163 of file ml26124.h.

#define ML26124_R8_MASK   0x3f

Definition at line 133 of file ml26124.h.

#define ML26124_Ra_MASK   0x1f

Definition at line 134 of file ml26124.h.

#define ML26124_Rc_MASK   0x1f

Definition at line 135 of file ml26124.h.

#define ML26124_Re8_MASK   0x3

Definition at line 155 of file ml26124.h.

#define ML26124_Re_MASK   0x7

Definition at line 136 of file ml26124.h.

#define ML26124_REC_PLYBAK_RUN   0x12

Definition at line 33 of file ml26124.h.

#define ML26124_RECORD_DIG_VOL   0x6c

Definition at line 69 of file ml26124.h.

#define ML26124_SAI_MODE_SEL   0x64

Definition at line 63 of file ml26124.h.

#define ML26124_SAI_RCV_CTL   0x62

Definition at line 62 of file ml26124.h.

#define ML26124_SAI_TRANS_CTL   0x60

Definition at line 61 of file ml26124.h.

#define ML26124_SMPLING_RATE   0x00

Definition at line 22 of file ml26124.h.

#define ML26124_SPK_AMP_OUT   0x54

Definition at line 56 of file ml26124.h.

#define ML26124_SW_RST   0x10

Definition at line 32 of file ml26124.h.

#define ML26124_USE_MCLKI_1024FS   3

Definition at line 126 of file ml26124.h.

#define ML26124_USE_MCLKI_256FS   1

Definition at line 124 of file ml26124.h.

#define ML26124_USE_MCLKI_512FS   2

Definition at line 125 of file ml26124.h.

#define ML26124_USE_PLL   0

Definition at line 123 of file ml26124.h.

#define ML26124_VIDEO_AMP_CTL2   0xd4

Definition at line 120 of file ml26124.h.

#define ML26124_VIDEO_AMP_GAIN_CTL   0xd0

Definition at line 118 of file ml26124.h.

#define ML26124_VIDEO_AMP_SETUP1   0xd2

Definition at line 119 of file ml26124.h.

Enumeration Type Documentation

Enumerator:
ML26124_USE_PLLOUT 
ML26124_USE_MCLKI 

Definition at line 179 of file ml26124.h.

Enumerator:
ML26124_MCLK 

Definition at line 175 of file ml26124.h.