~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/max98095.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/codecs/max98095.h (Version linux-6.12-rc7) and /sound/soc/codecs/max98095.h (Version linux-5.10.229)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*                                                  2 /*
  3  * max98095.h -- MAX98095 ALSA SoC Audio drive      3  * max98095.h -- MAX98095 ALSA SoC Audio driver
  4  *                                                  4  *
  5  * Copyright 2011 Maxim Integrated Products         5  * Copyright 2011 Maxim Integrated Products
  6  */                                                 6  */
  7                                                     7 
  8 #ifndef _MAX98095_H                                 8 #ifndef _MAX98095_H
  9 #define _MAX98095_H                                 9 #define _MAX98095_H
 10                                                    10 
 11 /*                                                 11 /*
 12  * MAX98095 Registers Definition                   12  * MAX98095 Registers Definition
 13  */                                                13  */
 14                                                    14 
 15 #define M98095_000_HOST_DATA                0x     15 #define M98095_000_HOST_DATA                0x00
 16 #define M98095_001_HOST_INT_STS             0x     16 #define M98095_001_HOST_INT_STS             0x01
 17 #define M98095_002_HOST_RSP_STS             0x     17 #define M98095_002_HOST_RSP_STS             0x02
 18 #define M98095_003_HOST_CMD_STS             0x     18 #define M98095_003_HOST_CMD_STS             0x03
 19 #define M98095_004_CODEC_STS                0x     19 #define M98095_004_CODEC_STS                0x04
 20 #define M98095_005_DAI1_ALC_STS             0x     20 #define M98095_005_DAI1_ALC_STS             0x05
 21 #define M98095_006_DAI2_ALC_STS             0x     21 #define M98095_006_DAI2_ALC_STS             0x06
 22 #define M98095_007_JACK_AUTO_STS            0x     22 #define M98095_007_JACK_AUTO_STS            0x07
 23 #define M98095_008_JACK_MANUAL_STS          0x     23 #define M98095_008_JACK_MANUAL_STS          0x08
 24 #define M98095_009_JACK_VBAT_STS            0x     24 #define M98095_009_JACK_VBAT_STS            0x09
 25 #define M98095_00A_ACC_ADC_STS              0x     25 #define M98095_00A_ACC_ADC_STS              0x0A
 26 #define M98095_00B_MIC_NG_AGC_STS           0x     26 #define M98095_00B_MIC_NG_AGC_STS           0x0B
 27 #define M98095_00C_SPK_L_VOLT_STS           0x     27 #define M98095_00C_SPK_L_VOLT_STS           0x0C
 28 #define M98095_00D_SPK_R_VOLT_STS           0x     28 #define M98095_00D_SPK_R_VOLT_STS           0x0D
 29 #define M98095_00E_TEMP_SENSOR_STS          0x     29 #define M98095_00E_TEMP_SENSOR_STS          0x0E
 30 #define M98095_00F_HOST_CFG                 0x     30 #define M98095_00F_HOST_CFG                 0x0F
 31 #define M98095_010_HOST_INT_CFG             0x     31 #define M98095_010_HOST_INT_CFG             0x10
 32 #define M98095_011_HOST_INT_EN              0x     32 #define M98095_011_HOST_INT_EN              0x11
 33 #define M98095_012_CODEC_INT_EN             0x     33 #define M98095_012_CODEC_INT_EN             0x12
 34 #define M98095_013_JACK_INT_EN              0x     34 #define M98095_013_JACK_INT_EN              0x13
 35 #define M98095_014_JACK_INT_EN              0x     35 #define M98095_014_JACK_INT_EN              0x14
 36 #define M98095_015_DEC                      0x     36 #define M98095_015_DEC                      0x15
 37 #define M98095_016_RESERVED                 0x     37 #define M98095_016_RESERVED                 0x16
 38 #define M98095_017_RESERVED                 0x     38 #define M98095_017_RESERVED                 0x17
 39 #define M98095_018_KEYCODE3                 0x     39 #define M98095_018_KEYCODE3                 0x18
 40 #define M98095_019_KEYCODE2                 0x     40 #define M98095_019_KEYCODE2                 0x19
 41 #define M98095_01A_KEYCODE1                 0x     41 #define M98095_01A_KEYCODE1                 0x1A
 42 #define M98095_01B_KEYCODE0                 0x     42 #define M98095_01B_KEYCODE0                 0x1B
 43 #define M98095_01C_OEMCODE1                 0x     43 #define M98095_01C_OEMCODE1                 0x1C
 44 #define M98095_01D_OEMCODE0                 0x     44 #define M98095_01D_OEMCODE0                 0x1D
 45 #define M98095_01E_XCFG1                    0x     45 #define M98095_01E_XCFG1                    0x1E
 46 #define M98095_01F_XCFG2                    0x     46 #define M98095_01F_XCFG2                    0x1F
 47 #define M98095_020_XCFG3                    0x     47 #define M98095_020_XCFG3                    0x20
 48 #define M98095_021_XCFG4                    0x     48 #define M98095_021_XCFG4                    0x21
 49 #define M98095_022_XCFG5                    0x     49 #define M98095_022_XCFG5                    0x22
 50 #define M98095_023_XCFG6                    0x     50 #define M98095_023_XCFG6                    0x23
 51 #define M98095_024_XGPIO                    0x     51 #define M98095_024_XGPIO                    0x24
 52 #define M98095_025_XCLKCFG                  0x     52 #define M98095_025_XCLKCFG                  0x25
 53 #define M98095_026_SYS_CLK                  0x     53 #define M98095_026_SYS_CLK                  0x26
 54 #define M98095_027_DAI1_CLKMODE             0x     54 #define M98095_027_DAI1_CLKMODE             0x27
 55 #define M98095_028_DAI1_CLKCFG_HI           0x     55 #define M98095_028_DAI1_CLKCFG_HI           0x28
 56 #define M98095_029_DAI1_CLKCFG_LO           0x     56 #define M98095_029_DAI1_CLKCFG_LO           0x29
 57 #define M98095_02A_DAI1_FORMAT              0x     57 #define M98095_02A_DAI1_FORMAT              0x2A
 58 #define M98095_02B_DAI1_CLOCK               0x     58 #define M98095_02B_DAI1_CLOCK               0x2B
 59 #define M98095_02C_DAI1_IOCFG               0x     59 #define M98095_02C_DAI1_IOCFG               0x2C
 60 #define M98095_02D_DAI1_TDM                 0x     60 #define M98095_02D_DAI1_TDM                 0x2D
 61 #define M98095_02E_DAI1_FILTERS             0x     61 #define M98095_02E_DAI1_FILTERS             0x2E
 62 #define M98095_02F_DAI1_LVL1                0x     62 #define M98095_02F_DAI1_LVL1                0x2F
 63 #define M98095_030_DAI1_LVL2                0x     63 #define M98095_030_DAI1_LVL2                0x30
 64 #define M98095_031_DAI2_CLKMODE             0x     64 #define M98095_031_DAI2_CLKMODE             0x31
 65 #define M98095_032_DAI2_CLKCFG_HI           0x     65 #define M98095_032_DAI2_CLKCFG_HI           0x32
 66 #define M98095_033_DAI2_CLKCFG_LO           0x     66 #define M98095_033_DAI2_CLKCFG_LO           0x33
 67 #define M98095_034_DAI2_FORMAT              0x     67 #define M98095_034_DAI2_FORMAT              0x34
 68 #define M98095_035_DAI2_CLOCK               0x     68 #define M98095_035_DAI2_CLOCK               0x35
 69 #define M98095_036_DAI2_IOCFG               0x     69 #define M98095_036_DAI2_IOCFG               0x36
 70 #define M98095_037_DAI2_TDM                 0x     70 #define M98095_037_DAI2_TDM                 0x37
 71 #define M98095_038_DAI2_FILTERS             0x     71 #define M98095_038_DAI2_FILTERS             0x38
 72 #define M98095_039_DAI2_LVL1                0x     72 #define M98095_039_DAI2_LVL1                0x39
 73 #define M98095_03A_DAI2_LVL2                0x     73 #define M98095_03A_DAI2_LVL2                0x3A
 74 #define M98095_03B_DAI3_CLKMODE             0x     74 #define M98095_03B_DAI3_CLKMODE             0x3B
 75 #define M98095_03C_DAI3_CLKCFG_HI           0x     75 #define M98095_03C_DAI3_CLKCFG_HI           0x3C
 76 #define M98095_03D_DAI3_CLKCFG_LO           0x     76 #define M98095_03D_DAI3_CLKCFG_LO           0x3D
 77 #define M98095_03E_DAI3_FORMAT              0x     77 #define M98095_03E_DAI3_FORMAT              0x3E
 78 #define M98095_03F_DAI3_CLOCK               0x     78 #define M98095_03F_DAI3_CLOCK               0x3F
 79 #define M98095_040_DAI3_IOCFG               0x     79 #define M98095_040_DAI3_IOCFG               0x40
 80 #define M98095_041_DAI3_TDM                 0x     80 #define M98095_041_DAI3_TDM                 0x41
 81 #define M98095_042_DAI3_FILTERS             0x     81 #define M98095_042_DAI3_FILTERS             0x42
 82 #define M98095_043_DAI3_LVL1                0x     82 #define M98095_043_DAI3_LVL1                0x43
 83 #define M98095_044_DAI3_LVL2                0x     83 #define M98095_044_DAI3_LVL2                0x44
 84 #define M98095_045_CFG_DSP                  0x     84 #define M98095_045_CFG_DSP                  0x45
 85 #define M98095_046_DAC_CTRL1                0x     85 #define M98095_046_DAC_CTRL1                0x46
 86 #define M98095_047_DAC_CTRL2                0x     86 #define M98095_047_DAC_CTRL2                0x47
 87 #define M98095_048_MIX_DAC_LR               0x     87 #define M98095_048_MIX_DAC_LR               0x48
 88 #define M98095_049_MIX_DAC_M                0x     88 #define M98095_049_MIX_DAC_M                0x49
 89 #define M98095_04A_MIX_ADC_LEFT             0x     89 #define M98095_04A_MIX_ADC_LEFT             0x4A
 90 #define M98095_04B_MIX_ADC_RIGHT            0x     90 #define M98095_04B_MIX_ADC_RIGHT            0x4B
 91 #define M98095_04C_MIX_HP_LEFT              0x     91 #define M98095_04C_MIX_HP_LEFT              0x4C
 92 #define M98095_04D_MIX_HP_RIGHT             0x     92 #define M98095_04D_MIX_HP_RIGHT             0x4D
 93 #define M98095_04E_CFG_HP                   0x     93 #define M98095_04E_CFG_HP                   0x4E
 94 #define M98095_04F_MIX_RCV                  0x     94 #define M98095_04F_MIX_RCV                  0x4F
 95 #define M98095_050_MIX_SPK_LEFT             0x     95 #define M98095_050_MIX_SPK_LEFT             0x50
 96 #define M98095_051_MIX_SPK_RIGHT            0x     96 #define M98095_051_MIX_SPK_RIGHT            0x51
 97 #define M98095_052_MIX_SPK_CFG              0x     97 #define M98095_052_MIX_SPK_CFG              0x52
 98 #define M98095_053_MIX_LINEOUT1             0x     98 #define M98095_053_MIX_LINEOUT1             0x53
 99 #define M98095_054_MIX_LINEOUT2             0x     99 #define M98095_054_MIX_LINEOUT2             0x54
100 #define M98095_055_MIX_LINEOUT_CFG          0x    100 #define M98095_055_MIX_LINEOUT_CFG          0x55
101 #define M98095_056_LVL_SIDETONE_DAI12       0x    101 #define M98095_056_LVL_SIDETONE_DAI12       0x56
102 #define M98095_057_LVL_SIDETONE_DAI3        0x    102 #define M98095_057_LVL_SIDETONE_DAI3        0x57
103 #define M98095_058_LVL_DAI1_PLAY            0x    103 #define M98095_058_LVL_DAI1_PLAY            0x58
104 #define M98095_059_LVL_DAI1_EQ              0x    104 #define M98095_059_LVL_DAI1_EQ              0x59
105 #define M98095_05A_LVL_DAI2_PLAY            0x    105 #define M98095_05A_LVL_DAI2_PLAY            0x5A
106 #define M98095_05B_LVL_DAI2_EQ              0x    106 #define M98095_05B_LVL_DAI2_EQ              0x5B
107 #define M98095_05C_LVL_DAI3_PLAY            0x    107 #define M98095_05C_LVL_DAI3_PLAY            0x5C
108 #define M98095_05D_LVL_ADC_L                0x    108 #define M98095_05D_LVL_ADC_L                0x5D
109 #define M98095_05E_LVL_ADC_R                0x    109 #define M98095_05E_LVL_ADC_R                0x5E
110 #define M98095_05F_LVL_MIC1                 0x    110 #define M98095_05F_LVL_MIC1                 0x5F
111 #define M98095_060_LVL_MIC2                 0x    111 #define M98095_060_LVL_MIC2                 0x60
112 #define M98095_061_LVL_LINEIN               0x    112 #define M98095_061_LVL_LINEIN               0x61
113 #define M98095_062_LVL_LINEOUT1             0x    113 #define M98095_062_LVL_LINEOUT1             0x62
114 #define M98095_063_LVL_LINEOUT2             0x    114 #define M98095_063_LVL_LINEOUT2             0x63
115 #define M98095_064_LVL_HP_L                 0x    115 #define M98095_064_LVL_HP_L                 0x64
116 #define M98095_065_LVL_HP_R                 0x    116 #define M98095_065_LVL_HP_R                 0x65
117 #define M98095_066_LVL_RCV                  0x    117 #define M98095_066_LVL_RCV                  0x66
118 #define M98095_067_LVL_SPK_L                0x    118 #define M98095_067_LVL_SPK_L                0x67
119 #define M98095_068_LVL_SPK_R                0x    119 #define M98095_068_LVL_SPK_R                0x68
120 #define M98095_069_MICAGC_CFG               0x    120 #define M98095_069_MICAGC_CFG               0x69
121 #define M98095_06A_MICAGC_THRESH            0x    121 #define M98095_06A_MICAGC_THRESH            0x6A
122 #define M98095_06B_SPK_NOISEGATE            0x    122 #define M98095_06B_SPK_NOISEGATE            0x6B
123 #define M98095_06C_DAI1_ALC1_TIME           0x    123 #define M98095_06C_DAI1_ALC1_TIME           0x6C
124 #define M98095_06D_DAI1_ALC1_COMP           0x    124 #define M98095_06D_DAI1_ALC1_COMP           0x6D
125 #define M98095_06E_DAI1_ALC1_EXPN           0x    125 #define M98095_06E_DAI1_ALC1_EXPN           0x6E
126 #define M98095_06F_DAI1_ALC1_GAIN           0x    126 #define M98095_06F_DAI1_ALC1_GAIN           0x6F
127 #define M98095_070_DAI1_ALC2_TIME           0x    127 #define M98095_070_DAI1_ALC2_TIME           0x70
128 #define M98095_071_DAI1_ALC2_COMP           0x    128 #define M98095_071_DAI1_ALC2_COMP           0x71
129 #define M98095_072_DAI1_ALC2_EXPN           0x    129 #define M98095_072_DAI1_ALC2_EXPN           0x72
130 #define M98095_073_DAI1_ALC2_GAIN           0x    130 #define M98095_073_DAI1_ALC2_GAIN           0x73
131 #define M98095_074_DAI1_ALC3_TIME           0x    131 #define M98095_074_DAI1_ALC3_TIME           0x74
132 #define M98095_075_DAI1_ALC3_COMP           0x    132 #define M98095_075_DAI1_ALC3_COMP           0x75
133 #define M98095_076_DAI1_ALC3_EXPN           0x    133 #define M98095_076_DAI1_ALC3_EXPN           0x76
134 #define M98095_077_DAI1_ALC3_GAIN           0x    134 #define M98095_077_DAI1_ALC3_GAIN           0x77
135 #define M98095_078_DAI2_ALC1_TIME           0x    135 #define M98095_078_DAI2_ALC1_TIME           0x78
136 #define M98095_079_DAI2_ALC1_COMP           0x    136 #define M98095_079_DAI2_ALC1_COMP           0x79
137 #define M98095_07A_DAI2_ALC1_EXPN           0x    137 #define M98095_07A_DAI2_ALC1_EXPN           0x7A
138 #define M98095_07B_DAI2_ALC1_GAIN           0x    138 #define M98095_07B_DAI2_ALC1_GAIN           0x7B
139 #define M98095_07C_DAI2_ALC2_TIME           0x    139 #define M98095_07C_DAI2_ALC2_TIME           0x7C
140 #define M98095_07D_DAI2_ALC2_COMP           0x    140 #define M98095_07D_DAI2_ALC2_COMP           0x7D
141 #define M98095_07E_DAI2_ALC2_EXPN           0x    141 #define M98095_07E_DAI2_ALC2_EXPN           0x7E
142 #define M98095_07F_DAI2_ALC2_GAIN           0x    142 #define M98095_07F_DAI2_ALC2_GAIN           0x7F
143 #define M98095_080_DAI2_ALC3_TIME           0x    143 #define M98095_080_DAI2_ALC3_TIME           0x80
144 #define M98095_081_DAI2_ALC3_COMP           0x    144 #define M98095_081_DAI2_ALC3_COMP           0x81
145 #define M98095_082_DAI2_ALC3_EXPN           0x    145 #define M98095_082_DAI2_ALC3_EXPN           0x82
146 #define M98095_083_DAI2_ALC3_GAIN           0x    146 #define M98095_083_DAI2_ALC3_GAIN           0x83
147 #define M98095_084_HP_NOISE_GATE            0x    147 #define M98095_084_HP_NOISE_GATE            0x84
148 #define M98095_085_AUX_ADC                  0x    148 #define M98095_085_AUX_ADC                  0x85
149 #define M98095_086_CFG_LINE                 0x    149 #define M98095_086_CFG_LINE                 0x86
150 #define M98095_087_CFG_MIC                  0x    150 #define M98095_087_CFG_MIC                  0x87
151 #define M98095_088_CFG_LEVEL                0x    151 #define M98095_088_CFG_LEVEL                0x88
152 #define M98095_089_JACK_DET_AUTO            0x    152 #define M98095_089_JACK_DET_AUTO            0x89
153 #define M98095_08A_JACK_DET_MANUAL          0x    153 #define M98095_08A_JACK_DET_MANUAL          0x8A
154 #define M98095_08B_JACK_KEYSCAN_DBC         0x    154 #define M98095_08B_JACK_KEYSCAN_DBC         0x8B
155 #define M98095_08C_JACK_KEYSCAN_DLY         0x    155 #define M98095_08C_JACK_KEYSCAN_DLY         0x8C
156 #define M98095_08D_JACK_KEY_THRESH          0x    156 #define M98095_08D_JACK_KEY_THRESH          0x8D
157 #define M98095_08E_JACK_DC_SLEW             0x    157 #define M98095_08E_JACK_DC_SLEW             0x8E
158 #define M98095_08F_JACK_TEST_CFG            0x    158 #define M98095_08F_JACK_TEST_CFG            0x8F
159 #define M98095_090_PWR_EN_IN                0x    159 #define M98095_090_PWR_EN_IN                0x90
160 #define M98095_091_PWR_EN_OUT               0x    160 #define M98095_091_PWR_EN_OUT               0x91
161 #define M98095_092_PWR_EN_OUT               0x    161 #define M98095_092_PWR_EN_OUT               0x92
162 #define M98095_093_BIAS_CTRL                0x    162 #define M98095_093_BIAS_CTRL                0x93
163 #define M98095_094_PWR_DAC_21               0x    163 #define M98095_094_PWR_DAC_21               0x94
164 #define M98095_095_PWR_DAC_03               0x    164 #define M98095_095_PWR_DAC_03               0x95
165 #define M98095_096_PWR_DAC_CK               0x    165 #define M98095_096_PWR_DAC_CK               0x96
166 #define M98095_097_PWR_SYS                  0x    166 #define M98095_097_PWR_SYS                  0x97
167                                                   167 
168 #define M98095_0FF_REV_ID                   0x    168 #define M98095_0FF_REV_ID                   0xFF
169                                                   169 
170 #define M98095_REG_CNT                      (0    170 #define M98095_REG_CNT                      (0xFF+1)
171 #define M98095_REG_MAX_CACHED               0X    171 #define M98095_REG_MAX_CACHED               0X97
172                                                   172 
173 /* MAX98095 Registers Bit Fields */               173 /* MAX98095 Registers Bit Fields */
174                                                   174 
175 /* M98095_007_JACK_AUTO_STS */                    175 /* M98095_007_JACK_AUTO_STS */
176         #define M98095_MIC_IN                     176         #define M98095_MIC_IN                   (1<<3)
177         #define M98095_LO_IN                      177         #define M98095_LO_IN                    (1<<5)
178         #define M98095_HP_IN                      178         #define M98095_HP_IN                    (1<<6)
179         #define M98095_DDONE                      179         #define M98095_DDONE                    (1<<7)
180                                                   180 
181 /* M98095_00F_HOST_CFG */                         181 /* M98095_00F_HOST_CFG */
182         #define M98095_SEG                        182         #define M98095_SEG                      (1<<0)
183         #define M98095_XTEN                       183         #define M98095_XTEN                     (1<<1)
184         #define M98095_MDLLEN                     184         #define M98095_MDLLEN                   (1<<2)
185                                                   185 
186 /* M98095_013_JACK_INT_EN */                      186 /* M98095_013_JACK_INT_EN */
187         #define M98095_IMIC_IN                    187         #define M98095_IMIC_IN                  (1<<3)
188         #define M98095_ILO_IN                     188         #define M98095_ILO_IN                   (1<<5)
189         #define M98095_IHP_IN                     189         #define M98095_IHP_IN                   (1<<6)
190         #define M98095_IDDONE                     190         #define M98095_IDDONE                   (1<<7)
191                                                   191 
192 /* M98095_027_DAI1_CLKMODE, M98095_031_DAI2_CL    192 /* M98095_027_DAI1_CLKMODE, M98095_031_DAI2_CLKMODE, M98095_03B_DAI3_CLKMODE */
193         #define M98095_CLKMODE_MASK               193         #define M98095_CLKMODE_MASK             0xFF
194                                                   194 
195 /* M98095_02A_DAI1_FORMAT, M98095_034_DAI2_FOR    195 /* M98095_02A_DAI1_FORMAT, M98095_034_DAI2_FORMAT, M98095_03E_DAI3_FORMAT */
196         #define M98095_DAI_MAS                    196         #define M98095_DAI_MAS                  (1<<7)
197         #define M98095_DAI_WCI                    197         #define M98095_DAI_WCI                  (1<<6)
198         #define M98095_DAI_BCI                    198         #define M98095_DAI_BCI                  (1<<5)
199         #define M98095_DAI_DLY                    199         #define M98095_DAI_DLY                  (1<<4)
200         #define M98095_DAI_TDM                    200         #define M98095_DAI_TDM                  (1<<2)
201         #define M98095_DAI_FSW                    201         #define M98095_DAI_FSW                  (1<<1)
202         #define M98095_DAI_WS                     202         #define M98095_DAI_WS                   (1<<0)
203                                                   203 
204 /* M98095_02B_DAI1_CLOCK, M98095_035_DAI2_CLOC    204 /* M98095_02B_DAI1_CLOCK, M98095_035_DAI2_CLOCK, M98095_03F_DAI3_CLOCK */
205         #define M98095_DAI_BSEL64                 205         #define M98095_DAI_BSEL64               (1<<0)
206         #define M98095_DAI_DOSR_DIV2              206         #define M98095_DAI_DOSR_DIV2            (0<<5)
207         #define M98095_DAI_DOSR_DIV4              207         #define M98095_DAI_DOSR_DIV4            (1<<5)
208                                                   208 
209 /* M98095_02C_DAI1_IOCFG, M98095_036_DAI2_IOCF    209 /* M98095_02C_DAI1_IOCFG, M98095_036_DAI2_IOCFG, M98095_040_DAI3_IOCFG */
210         #define M98095_S1NORMAL                   210         #define M98095_S1NORMAL                 (1<<6)
211         #define M98095_S2NORMAL                   211         #define M98095_S2NORMAL                 (2<<6)
212         #define M98095_S3NORMAL                   212         #define M98095_S3NORMAL                 (3<<6)
213         #define M98095_SDATA                      213         #define M98095_SDATA                    (3<<0)
214                                                   214 
215 /* M98095_02E_DAI1_FILTERS, M98095_038_DAI2_FI    215 /* M98095_02E_DAI1_FILTERS, M98095_038_DAI2_FILTERS, M98095_042_DAI3_FILTERS */
216         #define M98095_DAI_DHF                    216         #define M98095_DAI_DHF                  (1<<3)
217                                                   217 
218 /* M98095_045_DSP_CFG */                          218 /* M98095_045_DSP_CFG */
219         #define M98095_DSPNORMAL                  219         #define M98095_DSPNORMAL                (5<<4)
220                                                   220 
221 /* M98095_048_MIX_DAC_LR */                       221 /* M98095_048_MIX_DAC_LR */
222         #define M98095_DAI1L_TO_DACR              222         #define M98095_DAI1L_TO_DACR            (1<<7)
223         #define M98095_DAI1R_TO_DACR              223         #define M98095_DAI1R_TO_DACR            (1<<6)
224         #define M98095_DAI2M_TO_DACR              224         #define M98095_DAI2M_TO_DACR            (1<<5)
225         #define M98095_DAI1L_TO_DACL              225         #define M98095_DAI1L_TO_DACL            (1<<3)
226         #define M98095_DAI1R_TO_DACL              226         #define M98095_DAI1R_TO_DACL            (1<<2)
227         #define M98095_DAI2M_TO_DACL              227         #define M98095_DAI2M_TO_DACL            (1<<1)
228         #define M98095_DAI3M_TO_DACL              228         #define M98095_DAI3M_TO_DACL            (1<<0)
229                                                   229 
230 /* M98095_049_MIX_DAC_M */                        230 /* M98095_049_MIX_DAC_M */
231         #define M98095_DAI1L_TO_DACM              231         #define M98095_DAI1L_TO_DACM            (1<<3)
232         #define M98095_DAI1R_TO_DACM              232         #define M98095_DAI1R_TO_DACM            (1<<2)
233         #define M98095_DAI2M_TO_DACM              233         #define M98095_DAI2M_TO_DACM            (1<<1)
234         #define M98095_DAI3M_TO_DACM              234         #define M98095_DAI3M_TO_DACM            (1<<0)
235                                                   235 
236 /* M98095_04E_MIX_HP_CFG */                       236 /* M98095_04E_MIX_HP_CFG */
237         #define M98095_HPNORMAL                   237         #define M98095_HPNORMAL                 (3<<4)
238                                                   238 
239 /* M98095_05F_LVL_MIC1, M98095_060_LVL_MIC2 */    239 /* M98095_05F_LVL_MIC1, M98095_060_LVL_MIC2 */
240         #define M98095_MICPRE_MASK                240         #define M98095_MICPRE_MASK              (3<<5)
241         #define M98095_MICPRE_SHIFT               241         #define M98095_MICPRE_SHIFT             5
242                                                   242 
243 /* M98095_064_LVL_HP_L, M98095_065_LVL_HP_R */    243 /* M98095_064_LVL_HP_L, M98095_065_LVL_HP_R */
244         #define M98095_HP_MUTE                    244         #define M98095_HP_MUTE                  (1<<7)
245                                                   245 
246 /* M98095_066_LVL_RCV */                          246 /* M98095_066_LVL_RCV */
247         #define M98095_REC_MUTE                   247         #define M98095_REC_MUTE                 (1<<7)
248                                                   248 
249 /* M98095_067_LVL_SPK_L, M98095_068_LVL_SPK_R     249 /* M98095_067_LVL_SPK_L, M98095_068_LVL_SPK_R */
250         #define M98095_SP_MUTE                    250         #define M98095_SP_MUTE                  (1<<7)
251                                                   251 
252 /* M98095_087_CFG_MIC */                          252 /* M98095_087_CFG_MIC */
253         #define M98095_MICSEL_MASK                253         #define M98095_MICSEL_MASK              (3<<0)
254         #define M98095_DIGMIC_L                   254         #define M98095_DIGMIC_L                 (1<<2)
255         #define M98095_DIGMIC_R                   255         #define M98095_DIGMIC_R                 (1<<3)
256         #define M98095_DIGMIC2L                   256         #define M98095_DIGMIC2L                 (1<<4)
257         #define M98095_DIGMIC2R                   257         #define M98095_DIGMIC2R                 (1<<5)
258                                                   258 
259 /* M98095_088_CFG_LEVEL */                        259 /* M98095_088_CFG_LEVEL */
260         #define M98095_VSEN                       260         #define M98095_VSEN                     (1<<6)
261         #define M98095_ZDEN                       261         #define M98095_ZDEN                     (1<<5)
262         #define M98095_BQ2EN                      262         #define M98095_BQ2EN                    (1<<3)
263         #define M98095_BQ1EN                      263         #define M98095_BQ1EN                    (1<<2)
264         #define M98095_EQ2EN                      264         #define M98095_EQ2EN                    (1<<1)
265         #define M98095_EQ1EN                      265         #define M98095_EQ1EN                    (1<<0)
266                                                   266 
267 /* M98095_089_JACK_DET_AUTO */                    267 /* M98095_089_JACK_DET_AUTO */
268         #define M98095_PIN5EN                     268         #define M98095_PIN5EN                   (1<<2)
269         #define M98095_JDEN                       269         #define M98095_JDEN                     (1<<7)
270                                                   270 
271 /* M98095_090_PWR_EN_IN */                        271 /* M98095_090_PWR_EN_IN */
272         #define M98095_INEN                       272         #define M98095_INEN                     (1<<7)
273         #define M98095_MB2EN                      273         #define M98095_MB2EN                    (1<<3)
274         #define M98095_MB1EN                      274         #define M98095_MB1EN                    (1<<2)
275         #define M98095_MBEN                       275         #define M98095_MBEN                     (3<<2)
276         #define M98095_ADREN                      276         #define M98095_ADREN                    (1<<1)
277         #define M98095_ADLEN                      277         #define M98095_ADLEN                    (1<<0)
278                                                   278 
279 /* M98095_091_PWR_EN_OUT */                       279 /* M98095_091_PWR_EN_OUT */
280         #define M98095_HPLEN                      280         #define M98095_HPLEN                    (1<<7)
281         #define M98095_HPREN                      281         #define M98095_HPREN                    (1<<6)
282         #define M98095_SPLEN                      282         #define M98095_SPLEN                    (1<<5)
283         #define M98095_SPREN                      283         #define M98095_SPREN                    (1<<4)
284         #define M98095_RECEN                      284         #define M98095_RECEN                    (1<<3)
285         #define M98095_DALEN                      285         #define M98095_DALEN                    (1<<1)
286         #define M98095_DAREN                      286         #define M98095_DAREN                    (1<<0)
287                                                   287 
288 /* M98095_092_PWR_EN_OUT */                       288 /* M98095_092_PWR_EN_OUT */
289         #define M98095_SPK_FIXEDSPECTRUM          289         #define M98095_SPK_FIXEDSPECTRUM        (0<<4)
290         #define M98095_SPK_SPREADSPECTRUM         290         #define M98095_SPK_SPREADSPECTRUM       (1<<4)
291                                                   291 
292 /* M98095_097_PWR_SYS */                          292 /* M98095_097_PWR_SYS */
293         #define M98095_SHDNRUN                    293         #define M98095_SHDNRUN                  (1<<7)
294         #define M98095_PERFMODE                   294         #define M98095_PERFMODE                 (1<<3)
295         #define M98095_HPPLYBACK                  295         #define M98095_HPPLYBACK                (1<<2)
296         #define M98095_PWRSV8K                    296         #define M98095_PWRSV8K                  (1<<1)
297         #define M98095_PWRSV                      297         #define M98095_PWRSV                    (1<<0)
298                                                   298 
299 #define M98095_COEFS_PER_BAND            5        299 #define M98095_COEFS_PER_BAND            5
300                                                   300 
301 #define M98095_BYTE1(w) ((w >> 8) & 0xff)         301 #define M98095_BYTE1(w) ((w >> 8) & 0xff)
302 #define M98095_BYTE0(w) (w & 0xff)                302 #define M98095_BYTE0(w) (w & 0xff)
303                                                   303 
304 /* Equalizer filter coefficients */               304 /* Equalizer filter coefficients */
305 #define M98095_110_DAI1_EQ_BASE             0x    305 #define M98095_110_DAI1_EQ_BASE             0x10
306 #define M98095_142_DAI2_EQ_BASE             0x    306 #define M98095_142_DAI2_EQ_BASE             0x42
307                                                   307 
308 /* Biquad filter coefficients */                  308 /* Biquad filter coefficients */
309 #define M98095_174_DAI1_BQ_BASE             0x    309 #define M98095_174_DAI1_BQ_BASE             0x74
310 #define M98095_17E_DAI2_BQ_BASE             0x    310 #define M98095_17E_DAI2_BQ_BASE             0x7E
311                                                   311 
312 /* Default Delay used in Slew Rate Calculation    312 /* Default Delay used in Slew Rate Calculation for Jack detection */
313 #define M98095_DEFAULT_SLEW_DELAY                 313 #define M98095_DEFAULT_SLEW_DELAY               0x18
314                                                   314 
315 extern int max98095_jack_detect(struct snd_soc    315 extern int max98095_jack_detect(struct snd_soc_component *component,
316         struct snd_soc_jack *hp_jack, struct s    316         struct snd_soc_jack *hp_jack, struct snd_soc_jack *mic_jack);
317                                                   317 
318 #endif                                            318 #endif
319                                                   319 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php