Lines Matching +full:0 +full:x0000004a
58 * max : 74 : 0 dB
60 * min : 0 : -74 dB
62 static const DECLARE_TLV_DB_SCALE(adc_tlv, -7400, 100, 0);
63 static const DECLARE_TLV_DB_SCALE(dac_tlv, -7400, 100, 0);
64 static const DECLARE_TLV_DB_SCALE(boost_tlv, 0, 1200, 0);
67 0, 0, TLV_DB_SCALE_ITEM(120, 0, 0),
68 1, 63, TLV_DB_SCALE_ITEM(30, 30, 0)
91 { CX2072X_AFG_POWER_STATE, 0x00000003 },
92 { CX2072X_UM_RESPONSE, 0x00000000 },
93 { CX2072X_GPIO_DATA, 0x00000000 },
94 { CX2072X_GPIO_ENABLE, 0x00000000 },
95 { CX2072X_GPIO_DIRECTION, 0x00000000 },
96 { CX2072X_GPIO_WAKE, 0x00000000 },
97 { CX2072X_GPIO_UM_ENABLE, 0x00000000 },
98 { CX2072X_GPIO_STICKY_MASK, 0x00000000 },
99 { CX2072X_DAC1_CONVERTER_FORMAT, 0x00000031 },
100 { CX2072X_DAC1_AMP_GAIN_RIGHT, 0x0000004a },
101 { CX2072X_DAC1_AMP_GAIN_LEFT, 0x0000004a },
102 { CX2072X_DAC1_POWER_STATE, 0x00000433 },
103 { CX2072X_DAC1_CONVERTER_STREAM_CHANNEL, 0x00000000 },
104 { CX2072X_DAC1_EAPD_ENABLE, 0x00000000 },
105 { CX2072X_DAC2_CONVERTER_FORMAT, 0x00000031 },
106 { CX2072X_DAC2_AMP_GAIN_RIGHT, 0x0000004a },
107 { CX2072X_DAC2_AMP_GAIN_LEFT, 0x0000004a },
108 { CX2072X_DAC2_POWER_STATE, 0x00000433 },
109 { CX2072X_DAC2_CONVERTER_STREAM_CHANNEL, 0x00000000 },
110 { CX2072X_ADC1_CONVERTER_FORMAT, 0x00000031 },
111 { CX2072X_ADC1_AMP_GAIN_RIGHT_0, 0x0000004a },
112 { CX2072X_ADC1_AMP_GAIN_LEFT_0, 0x0000004a },
113 { CX2072X_ADC1_AMP_GAIN_RIGHT_1, 0x0000004a },
114 { CX2072X_ADC1_AMP_GAIN_LEFT_1, 0x0000004a },
115 { CX2072X_ADC1_AMP_GAIN_RIGHT_2, 0x0000004a },
116 { CX2072X_ADC1_AMP_GAIN_LEFT_2, 0x0000004a },
117 { CX2072X_ADC1_AMP_GAIN_RIGHT_3, 0x0000004a },
118 { CX2072X_ADC1_AMP_GAIN_LEFT_3, 0x0000004a },
119 { CX2072X_ADC1_AMP_GAIN_RIGHT_4, 0x0000004a },
120 { CX2072X_ADC1_AMP_GAIN_LEFT_4, 0x0000004a },
121 { CX2072X_ADC1_AMP_GAIN_RIGHT_5, 0x0000004a },
122 { CX2072X_ADC1_AMP_GAIN_LEFT_5, 0x0000004a },
123 { CX2072X_ADC1_AMP_GAIN_RIGHT_6, 0x0000004a },
124 { CX2072X_ADC1_AMP_GAIN_LEFT_6, 0x0000004a },
125 { CX2072X_ADC1_CONNECTION_SELECT_CONTROL, 0x00000000 },
126 { CX2072X_ADC1_POWER_STATE, 0x00000433 },
127 { CX2072X_ADC1_CONVERTER_STREAM_CHANNEL, 0x00000000 },
128 { CX2072X_ADC2_CONVERTER_FORMAT, 0x00000031 },
129 { CX2072X_ADC2_AMP_GAIN_RIGHT_0, 0x0000004a },
130 { CX2072X_ADC2_AMP_GAIN_LEFT_0, 0x0000004a },
131 { CX2072X_ADC2_AMP_GAIN_RIGHT_1, 0x0000004a },
132 { CX2072X_ADC2_AMP_GAIN_LEFT_1, 0x0000004a },
133 { CX2072X_ADC2_AMP_GAIN_RIGHT_2, 0x0000004a },
134 { CX2072X_ADC2_AMP_GAIN_LEFT_2, 0x0000004a },
135 { CX2072X_ADC2_CONNECTION_SELECT_CONTROL, 0x00000000 },
136 { CX2072X_ADC2_POWER_STATE, 0x00000433 },
137 { CX2072X_ADC2_CONVERTER_STREAM_CHANNEL, 0x00000000 },
138 { CX2072X_PORTA_CONNECTION_SELECT_CTRL, 0x00000000 },
139 { CX2072X_PORTA_POWER_STATE, 0x00000433 },
140 { CX2072X_PORTA_PIN_CTRL, 0x000000c0 },
141 { CX2072X_PORTA_UNSOLICITED_RESPONSE, 0x00000000 },
142 { CX2072X_PORTA_PIN_SENSE, 0x00000000 },
143 { CX2072X_PORTA_EAPD_BTL, 0x00000002 },
144 { CX2072X_PORTB_POWER_STATE, 0x00000433 },
145 { CX2072X_PORTB_PIN_CTRL, 0x00000000 },
146 { CX2072X_PORTB_UNSOLICITED_RESPONSE, 0x00000000 },
147 { CX2072X_PORTB_PIN_SENSE, 0x00000000 },
148 { CX2072X_PORTB_EAPD_BTL, 0x00000002 },
149 { CX2072X_PORTB_GAIN_RIGHT, 0x00000000 },
150 { CX2072X_PORTB_GAIN_LEFT, 0x00000000 },
151 { CX2072X_PORTC_POWER_STATE, 0x00000433 },
152 { CX2072X_PORTC_PIN_CTRL, 0x00000000 },
153 { CX2072X_PORTC_GAIN_RIGHT, 0x00000000 },
154 { CX2072X_PORTC_GAIN_LEFT, 0x00000000 },
155 { CX2072X_PORTD_POWER_STATE, 0x00000433 },
156 { CX2072X_PORTD_PIN_CTRL, 0x00000020 },
157 { CX2072X_PORTD_UNSOLICITED_RESPONSE, 0x00000000 },
158 { CX2072X_PORTD_PIN_SENSE, 0x00000000 },
159 { CX2072X_PORTD_GAIN_RIGHT, 0x00000000 },
160 { CX2072X_PORTD_GAIN_LEFT, 0x00000000 },
161 { CX2072X_PORTE_CONNECTION_SELECT_CTRL, 0x00000000 },
162 { CX2072X_PORTE_POWER_STATE, 0x00000433 },
163 { CX2072X_PORTE_PIN_CTRL, 0x00000040 },
164 { CX2072X_PORTE_UNSOLICITED_RESPONSE, 0x00000000 },
165 { CX2072X_PORTE_PIN_SENSE, 0x00000000 },
166 { CX2072X_PORTE_EAPD_BTL, 0x00000002 },
167 { CX2072X_PORTE_GAIN_RIGHT, 0x00000000 },
168 { CX2072X_PORTE_GAIN_LEFT, 0x00000000 },
169 { CX2072X_PORTF_POWER_STATE, 0x00000433 },
170 { CX2072X_PORTF_PIN_CTRL, 0x00000000 },
171 { CX2072X_PORTF_UNSOLICITED_RESPONSE, 0x00000000 },
172 { CX2072X_PORTF_PIN_SENSE, 0x00000000 },
173 { CX2072X_PORTF_GAIN_RIGHT, 0x00000000 },
174 { CX2072X_PORTF_GAIN_LEFT, 0x00000000 },
175 { CX2072X_PORTG_POWER_STATE, 0x00000433 },
176 { CX2072X_PORTG_PIN_CTRL, 0x00000040 },
177 { CX2072X_PORTG_CONNECTION_SELECT_CTRL, 0x00000000 },
178 { CX2072X_PORTG_EAPD_BTL, 0x00000002 },
179 { CX2072X_PORTM_POWER_STATE, 0x00000433 },
180 { CX2072X_PORTM_PIN_CTRL, 0x00000000 },
181 { CX2072X_PORTM_CONNECTION_SELECT_CTRL, 0x00000000 },
182 { CX2072X_PORTM_EAPD_BTL, 0x00000002 },
183 { CX2072X_MIXER_POWER_STATE, 0x00000433 },
184 { CX2072X_MIXER_GAIN_RIGHT_0, 0x0000004a },
185 { CX2072X_MIXER_GAIN_LEFT_0, 0x0000004a },
186 { CX2072X_MIXER_GAIN_RIGHT_1, 0x0000004a },
187 { CX2072X_MIXER_GAIN_LEFT_1, 0x0000004a },
188 { CX2072X_SPKR_DRC_ENABLE_STEP, 0x040065a4 },
189 { CX2072X_SPKR_DRC_CONTROL, 0x007b0024 },
190 { CX2072X_SPKR_DRC_TEST, 0x00000000 },
191 { CX2072X_DIGITAL_BIOS_TEST0, 0x001f008a },
192 { CX2072X_DIGITAL_BIOS_TEST2, 0x00990026 },
193 { CX2072X_I2SPCM_CONTROL1, 0x00010001 },
194 { CX2072X_I2SPCM_CONTROL2, 0x00000000 },
195 { CX2072X_I2SPCM_CONTROL3, 0x00000000 },
196 { CX2072X_I2SPCM_CONTROL4, 0x00000000 },
197 { CX2072X_I2SPCM_CONTROL5, 0x00000000 },
198 { CX2072X_I2SPCM_CONTROL6, 0x00000000 },
199 { CX2072X_UM_INTERRUPT_CRTL_E, 0x00000000 },
200 { CX2072X_CODEC_TEST2, 0x00000000 },
201 { CX2072X_CODEC_TEST9, 0x00000004 },
202 { CX2072X_CODEC_TEST20, 0x00000600 },
203 { CX2072X_CODEC_TEST26, 0x00000208 },
204 { CX2072X_ANALOG_TEST4, 0x00000000 },
205 { CX2072X_ANALOG_TEST5, 0x00000000 },
206 { CX2072X_ANALOG_TEST6, 0x0000059a },
207 { CX2072X_ANALOG_TEST7, 0x000000a7 },
208 { CX2072X_ANALOG_TEST8, 0x00000017 },
209 { CX2072X_ANALOG_TEST9, 0x00000000 },
210 { CX2072X_ANALOG_TEST10, 0x00000285 },
211 { CX2072X_ANALOG_TEST11, 0x00000000 },
212 { CX2072X_ANALOG_TEST12, 0x00000000 },
213 { CX2072X_ANALOG_TEST13, 0x00000000 },
214 { CX2072X_DIGITAL_TEST1, 0x00000242 },
215 { CX2072X_DIGITAL_TEST11, 0x00000000 },
216 { CX2072X_DIGITAL_TEST12, 0x00000084 },
217 { CX2072X_DIGITAL_TEST15, 0x00000077 },
218 { CX2072X_DIGITAL_TEST16, 0x00000021 },
219 { CX2072X_DIGITAL_TEST17, 0x00000018 },
220 { CX2072X_DIGITAL_TEST18, 0x00000024 },
221 { CX2072X_DIGITAL_TEST19, 0x00000001 },
222 { CX2072X_DIGITAL_TEST20, 0x00000002 },
229 { CX2072X_ANALOG_TEST9, 0x080 }, /* DC offset Calibration */
230 { CX2072X_CODEC_TEST26, 0x65f }, /* Disable the PA */
231 { CX2072X_ANALOG_TEST10, 0x289 }, /* Set the speaker output gain */
232 { CX2072X_CODEC_TEST20, 0xf05 },
233 { CX2072X_CODEC_TESTXX, 0x380 },
234 { CX2072X_CODEC_TEST26, 0xb90 },
235 { CX2072X_CODEC_TEST9, 0x001 }, /* Enable 30 Hz High pass filter */
236 { CX2072X_ANALOG_TEST3, 0x300 }, /* Disable PCBEEP pad */
237 { CX2072X_CODEC_TEST24, 0x100 }, /* Disable SnM mode */
238 { CX2072X_PORTD_PIN_CTRL, 0x020 }, /* Enable PortD input */
239 { CX2072X_GPIO_ENABLE, 0x040 }, /* Enable GPIO7 pin for button */
240 { CX2072X_GPIO_UM_ENABLE, 0x040 }, /* Enable UM for GPIO7 */
241 { CX2072X_UM_RESPONSE, 0x080 }, /* Enable button response */
242 { CX2072X_DIGITAL_TEST12, 0x0c4 }, /* Enable headset button */
243 { CX2072X_DIGITAL_TEST0, 0x415 }, /* Power down class-D during idle */
244 { CX2072X_I2SPCM_CONTROL2, 0x00f }, /* Enable I2S TX */
245 { CX2072X_I2SPCM_CONTROL3, 0x00f }, /* Enable I2S RX */
495 buf[0] = reg >> 8; in cx2072x_reg_raw_write()
496 buf[1] = reg & 0xff; in cx2072x_reg_raw_write()
503 return ret < 0 ? ret : -EIO; in cx2072x_reg_raw_write()
505 return 0; in cx2072x_reg_raw_write()
532 __le32 recv_buf = 0; in cx2072x_reg_read()
540 send_buf[0] = reg >> 8; in cx2072x_reg_read()
541 send_buf[1] = reg & 0xff; in cx2072x_reg_read()
543 msgs[0].addr = client->addr; in cx2072x_reg_read()
544 msgs[0].len = sizeof(send_buf); in cx2072x_reg_read()
545 msgs[0].buf = send_buf; in cx2072x_reg_read()
546 msgs[0].flags = 0; in cx2072x_reg_read()
556 return ret < 0 ? ret : -EIO; in cx2072x_reg_read()
560 return 0; in cx2072x_reg_read()
569 for (i = 0; i < ARRAY_SIZE(mclk_pre_div); i++) { in get_div_from_mclk()
606 pt_sample_per_sync = 0; in cx2072x_config_pll()
632 0x40 | (pre_div_val << 8)); in cx2072x_config_pll()
633 if (frac_div == 0) { in cx2072x_config_pll()
635 regmap_write(cx2072x->regmap, CX2072X_ANALOG_TEST7, 0x100); in cx2072x_config_pll()
639 frac & 0xfff); in cx2072x_config_pll()
648 if (frac_div == 0) { in cx2072x_config_pll()
650 regmap_write(cx2072x->regmap, CX2072X_DIGITAL_TEST16, 0x00); in cx2072x_config_pll()
654 (pt_sample_per_sync << 4) & 0xf0); in cx2072x_config_pll()
659 regmap_write(cx2072x->regmap, CX2072X_DIGITAL_TEST19, 0x01); in cx2072x_config_pll()
660 regmap_write(cx2072x->regmap, CX2072X_DIGITAL_TEST20, 0x02); in cx2072x_config_pll()
662 0x01, 0x01); in cx2072x_config_pll()
665 return 0; in cx2072x_config_pll()
671 unsigned int bclk_rate = 0; in cx2072x_config_i2spcm()
672 int is_i2s = 0; in cx2072x_config_i2spcm()
673 int has_one_bit_delay = 0; in cx2072x_config_i2spcm()
674 int is_frame_inv = 0; in cx2072x_config_i2spcm()
675 int is_bclk_inv = 0; in cx2072x_config_i2spcm()
680 int i2s_right_pause_interval = 0; in cx2072x_config_i2spcm()
694 if (frame_len <= 0) { in cx2072x_config_i2spcm()
699 if (sample_size <= 0) { in cx2072x_config_i2spcm()
706 regdbt2.ulval = 0xac; in cx2072x_config_i2spcm()
715 reg2.r.tx_master = 0; in cx2072x_config_i2spcm()
716 reg3.r.rx_master = 0; in cx2072x_config_i2spcm()
797 reg2.r.tx_dstart_dly = 0; in cx2072x_config_i2spcm()
802 reg4.ulval = 0; in cx2072x_config_i2spcm()
805 reg2.r.tx_slot_1 = 0; in cx2072x_config_i2spcm()
807 reg3.r.rx_slot_1 = 0; in cx2072x_config_i2spcm()
809 reg3.r.rx_slot_2 = 0; in cx2072x_config_i2spcm()
824 reg5.r.i2s_pcm_clk_div_chan_en = 0; in cx2072x_config_i2spcm()
827 regmap_write(cx2072x->regmap, CX2072X_I2SPCM_CONTROL5, 0); in cx2072x_config_i2spcm()
843 regmap_update_bits(cx2072x->regmap, CX2072X_I2SPCM_CONTROL2, 0xffffffc0, in cx2072x_config_i2spcm()
845 regmap_update_bits(cx2072x->regmap, CX2072X_I2SPCM_CONTROL3, 0xffffffc0, in cx2072x_config_i2spcm()
854 return 0; in cx2072x_config_i2spcm()
866 0x00, 0x10); in afg_power_ev()
871 0x10, 0x10); in afg_power_ev()
875 return 0; in afg_power_ev()
880 CX2072X_PORTD_GAIN_RIGHT, 0, 3, 0, boost_tlv),
882 CX2072X_PORTC_GAIN_RIGHT, 0, 3, 0, boost_tlv),
884 CX2072X_PORTB_GAIN_RIGHT, 0, 3, 0, boost_tlv),
886 CX2072X_ADC1_AMP_GAIN_RIGHT_1, 0, 0x4a, 0, adc_tlv),
888 CX2072X_ADC1_AMP_GAIN_RIGHT_2, 0, 0x4a, 0, adc_tlv),
890 CX2072X_ADC1_AMP_GAIN_RIGHT_0, 0, 0x4a, 0, adc_tlv),
892 CX2072X_DAC1_AMP_GAIN_RIGHT, 0, 0x4a, 0, dac_tlv),
894 CX2072X_DAC1_AMP_GAIN_RIGHT, 7, 1, 0),
896 CX2072X_DAC2_AMP_GAIN_RIGHT, 0, 0x4a, 0, dac_tlv),
897 SOC_SINGLE_TLV("HPF Freq", CX2072X_CODEC_TEST9, 0, 0x3f, 0, hpf_tlv),
899 SOC_SINGLE("PortA HP Amp Switch", CX2072X_PORTA_PIN_CTRL, 7, 1, 0),
915 if (sample_size < 0) in cx2072x_hw_params()
919 if (frame_size < 0) in cx2072x_hw_params()
922 if (cx2072x->mclk_rate == 0) { in cx2072x_hw_params()
968 return 0; in cx2072x_hw_params()
978 return 0; in cx2072x_set_dai_bclk_ratio()
993 return 0; in cx2072x_set_dai_sysclk()
1040 return 0; in cx2072x_set_dai_fmt()
1044 SOC_DAPM_SINGLE("Switch", CX2072X_PORTA_PIN_CTRL, 6, 1, 0);
1047 SOC_DAPM_SINGLE("Switch", CX2072X_PORTE_PIN_CTRL, 6, 1, 0);
1050 SOC_DAPM_SINGLE("Switch", CX2072X_PORTG_PIN_CTRL, 6, 1, 0);
1053 SOC_DAPM_SINGLE("Switch", CX2072X_PORTM_PIN_CTRL, 6, 1, 0);
1056 SOC_DAPM_SINGLE("Switch", CX2072X_PORTB_PIN_CTRL, 5, 1, 0);
1059 SOC_DAPM_SINGLE("Switch", CX2072X_PORTC_PIN_CTRL, 5, 1, 0);
1062 SOC_DAPM_SINGLE("Switch", CX2072X_PORTD_PIN_CTRL, 5, 1, 0);
1065 SOC_DAPM_SINGLE("Switch", CX2072X_PORTE_PIN_CTRL, 5, 1, 0);
1068 SOC_DAPM_SINGLE("Switch", CX2072X_I2SPCM_CONTROL2, 0, 1, 0);
1071 SOC_DAPM_SINGLE("Switch", CX2072X_I2SPCM_CONTROL2, 1, 1, 0);
1074 SOC_DAPM_SINGLE("Switch", CX2072X_I2SPCM_CONTROL2, 2, 1, 0);
1077 SOC_DAPM_SINGLE("Switch", CX2072X_I2SPCM_CONTROL2, 3, 1, 0);
1080 SOC_DAPM_SINGLE("Switch", CX2072X_I2SPCM_CONTROL3, 0, 1, 0);
1083 SOC_DAPM_SINGLE("Switch", CX2072X_I2SPCM_CONTROL3, 1, 1, 0);
1086 SOC_DAPM_SINGLE("Switch", CX2072X_I2SPCM_CONTROL3, 2, 1, 0);
1089 SOC_DAPM_SINGLE("Switch", CX2072X_I2SPCM_CONTROL3, 3, 1, 0);
1096 SOC_ENUM_SINGLE(CX2072X_PORTA_CONNECTION_SELECT_CTRL, 0, 2, dac_enum_text);
1102 SOC_ENUM_SINGLE(CX2072X_PORTG_CONNECTION_SELECT_CTRL, 0, 2, dac_enum_text);
1108 SOC_ENUM_SINGLE(CX2072X_PORTE_CONNECTION_SELECT_CTRL, 0, 2, dac_enum_text);
1114 SOC_ENUM_SINGLE(CX2072X_PORTM_CONNECTION_SELECT_CTRL, 0, 2, dac_enum_text);
1125 SOC_ENUM_SINGLE(CX2072X_ADC1_CONNECTION_SELECT_CONTROL, 0, 7, adc1in_sel_text);
1135 SOC_ENUM_SINGLE(CX2072X_ADC2_CONNECTION_SELECT_CONTROL, 0, 3, adc2in_sel_text);
1150 .num_kcontrols = 0, .reg = wreg, .shift = wshift, .mask = wmask, \
1157 .num_kcontrols = 0, .reg = wreg, .shift = wshift, .mask = wmask, \
1164 .num_kcontrols = 0, .reg = wreg, .shift = wshift, .mask = wmask, \
1170 {.id = wid, .name = wname, .kcontrol_news = NULL, .num_kcontrols = 0, \
1177 SND_SOC_DAPM_AIF_IN("In AIF", "Playback", 0, SND_SOC_NOPM, 0, 0),
1179 SND_SOC_DAPM_SWITCH("I2S DAC1L", SND_SOC_NOPM, 0, 0, &i2sdac1l_ctl),
1180 SND_SOC_DAPM_SWITCH("I2S DAC1R", SND_SOC_NOPM, 0, 0, &i2sdac1r_ctl),
1181 SND_SOC_DAPM_SWITCH("I2S DAC2L", SND_SOC_NOPM, 0, 0, &i2sdac2l_ctl),
1182 SND_SOC_DAPM_SWITCH("I2S DAC2R", SND_SOC_NOPM, 0, 0, &i2sdac2r_ctl),
1185 0, 0xfff, 0x00, 0x03),
1188 0, 0xfff, 0x00, 0x03),
1190 SND_SOC_DAPM_MUX("PortA Mux", SND_SOC_NOPM, 0, 0, &porta_mux),
1191 SND_SOC_DAPM_MUX("PortG Mux", SND_SOC_NOPM, 0, 0, &portg_mux),
1192 SND_SOC_DAPM_MUX("PortE Mux", SND_SOC_NOPM, 0, 0, &porte_mux),
1193 SND_SOC_DAPM_MUX("PortM Mux", SND_SOC_NOPM, 0, 0, &portm_mux),
1196 CX2072X_PORTA_POWER_STATE, 0, 0xfff, 0x00, 0x03),
1199 CX2072X_PORTM_POWER_STATE, 0, 0xfff, 0x00, 0x03),
1202 CX2072X_PORTG_POWER_STATE, 0, 0xfff, 0x00, 0x03),
1204 CX2072X_DAPM_SUPPLY_S("AFG Power", 0, CX2072X_AFG_POWER_STATE,
1205 0, 0xfff, 0x00, 0x03, afg_power_ev,
1208 SND_SOC_DAPM_SWITCH("PortA Out En", SND_SOC_NOPM, 0, 0,
1210 SND_SOC_DAPM_SWITCH("PortE Out En", SND_SOC_NOPM, 0, 0,
1212 SND_SOC_DAPM_SWITCH("PortG Out En", SND_SOC_NOPM, 0, 0,
1214 SND_SOC_DAPM_SWITCH("PortM Out En", SND_SOC_NOPM, 0, 0,
1224 SND_SOC_DAPM_AIF_OUT("Out AIF", "Capture", 0, SND_SOC_NOPM, 0, 0),
1226 SND_SOC_DAPM_SWITCH("I2S ADC1L", SND_SOC_NOPM, 0, 0, &i2sadc1l_ctl),
1227 SND_SOC_DAPM_SWITCH("I2S ADC1R", SND_SOC_NOPM, 0, 0, &i2sadc1r_ctl),
1228 SND_SOC_DAPM_SWITCH("I2S ADC2L", SND_SOC_NOPM, 0, 0, &i2sadc2l_ctl),
1229 SND_SOC_DAPM_SWITCH("I2S ADC2R", SND_SOC_NOPM, 0, 0, &i2sadc2r_ctl),
1232 0, 0xff, 0x00, 0x03),
1234 0, 0xff, 0x00, 0x03),
1236 SND_SOC_DAPM_MUX("ADC1 Mux", SND_SOC_NOPM, 0, 0, &adc1_mux),
1237 SND_SOC_DAPM_MUX("ADC2 Mux", SND_SOC_NOPM, 0, 0, &adc2_mux),
1240 CX2072X_PORTB_POWER_STATE, 0, 0xfff, 0x00, 0x03),
1242 CX2072X_PORTC_POWER_STATE, 0, 0xfff, 0x00, 0x03),
1244 CX2072X_PORTD_POWER_STATE, 0, 0xfff, 0x00, 0x03),
1246 CX2072X_PORTE_POWER_STATE, 0, 0xfff, 0x00, 0x03),
1248 CX2072X_MIXER_POWER_STATE, 0, 0xfff, 0x00, 0x03),
1250 SND_SOC_DAPM_MIXER("Widget15 Mixer", SND_SOC_NOPM, 0, 0,
1252 SND_SOC_DAPM_SWITCH("PortB In En", SND_SOC_NOPM, 0, 0, &portbinen_ctl),
1253 SND_SOC_DAPM_SWITCH("PortC In En", SND_SOC_NOPM, 0, 0, &portcinen_ctl),
1254 SND_SOC_DAPM_SWITCH("PortD In En", SND_SOC_NOPM, 0, 0, &portdinen_ctl),
1255 SND_SOC_DAPM_SWITCH("PortE In En", SND_SOC_NOPM, 0, 0, &porteinen_ctl),
1257 SND_SOC_DAPM_MICBIAS("Headset Bias", CX2072X_ANALOG_TEST11, 1, 0),
1258 SND_SOC_DAPM_MICBIAS("PortB Mic Bias", CX2072X_PORTB_PIN_CTRL, 2, 0),
1259 SND_SOC_DAPM_MICBIAS("PortD Mic Bias", CX2072X_PORTD_PIN_CTRL, 2, 0),
1260 SND_SOC_DAPM_MICBIAS("PortE Mic Bias", CX2072X_PORTE_PIN_CTRL, 2, 0),
1348 regmap_write(cx2072x->regmap, CX2072X_AFG_POWER_STATE, 0); in cx2072x_set_bias_level()
1352 return 0; in cx2072x_set_bias_level()
1369 regmap_write(cx2072x->regmap, CX2072X_GPIO_STICKY_MASK, 0x1f); in cx2072x_enable_jack_detect()
1372 regmap_write(cx2072x->regmap, CX2072X_UM_INTERRUPT_CRTL_E, 0x12 << 24); in cx2072x_enable_jack_detect()
1375 regmap_write(cx2072x->regmap, CX2072X_PORTA_UNSOLICITED_RESPONSE, 0x80); in cx2072x_enable_jack_detect()
1378 regmap_write(cx2072x->regmap, CX2072X_DIGITAL_TEST15, 0x73); in cx2072x_enable_jack_detect()
1381 regmap_write(cx2072x->regmap, CX2072X_ANALOG_TEST12, 0x300); in cx2072x_enable_jack_detect()
1384 regmap_write(cx2072x->regmap, CX2072X_DIGITAL_TEST1, 0); in cx2072x_enable_jack_detect()
1399 regmap_write(cx2072x->regmap, CX2072X_UM_INTERRUPT_CRTL_E, 0); in cx2072x_disable_jack_detect()
1400 regmap_write(cx2072x->regmap, CX2072X_PORTA_UNSOLICITED_RESPONSE, 0); in cx2072x_disable_jack_detect()
1408 unsigned int type = 0; in cx2072x_jack_status_check()
1409 int state = 0; in cx2072x_jack_status_check()
1417 if (jack == 0x80) { in cx2072x_jack_status_check()
1420 if (type & 0x8) { in cx2072x_jack_status_check()
1423 if (type & 0x2) in cx2072x_jack_status_check()
1427 * Nokia headset (type & 0x4) and in cx2072x_jack_status_check()
1435 regmap_write(cx2072x->regmap, CX2072X_UM_INTERRUPT_CRTL_E, 0x12 << 24); in cx2072x_jack_status_check()
1439 dev_dbg(codec->dev, "CX2072X_HSDETECT type=0x%X,Jack state = %x\n", in cx2072x_jack_status_check()
1460 return 0; in cx2072x_set_jack()
1475 return 0; in cx2072x_set_jack()
1494 regmap_write(cx2072x->regmap, CX2072X_AFG_POWER_STATE, 0); in cx2072x_probe()
1501 0x20, 0x20); in cx2072x_probe()
1504 0x84, 0xff); in cx2072x_probe()
1509 return 0; in cx2072x_probe()
1541 return 0; in cx2072x_dsp_dai_probe()
1619 return 0; in cx2072x_runtime_suspend()
1652 cx2072x->bclk_ratio = 0; in cx2072x_i2c_probe()
1669 if (ret < 0) in cx2072x_i2c_probe()
1675 return 0; in cx2072x_i2c_probe()
1692 { "14F10720", 0 },