Lines Matching refs:rt722

28 int rt722_sdca_index_write(struct rt722_sdca_priv *rt722,  in rt722_sdca_index_write()  argument
31 struct regmap *regmap = rt722->mbq_regmap; in rt722_sdca_index_write()
37 dev_err(&rt722->slave->dev, in rt722_sdca_index_write()
44 int rt722_sdca_index_read(struct rt722_sdca_priv *rt722, in rt722_sdca_index_read() argument
48 struct regmap *regmap = rt722->mbq_regmap; in rt722_sdca_index_read()
53 dev_err(&rt722->slave->dev, in rt722_sdca_index_read()
60 static int rt722_sdca_index_update_bits(struct rt722_sdca_priv *rt722, in rt722_sdca_index_update_bits() argument
66 ret = rt722_sdca_index_read(rt722, nid, reg, &tmp); in rt722_sdca_index_update_bits()
71 return rt722_sdca_index_write(rt722, nid, reg, tmp); in rt722_sdca_index_update_bits()
92 static unsigned int rt722_sdca_button_detect(struct rt722_sdca_priv *rt722) in rt722_sdca_button_detect() argument
99 ret = regmap_read(rt722->regmap, in rt722_sdca_button_detect()
110 ret = regmap_read(rt722->regmap, in rt722_sdca_button_detect()
117 ret = regmap_read(rt722->regmap, in rt722_sdca_button_detect()
131 regmap_write(rt722->regmap, in rt722_sdca_button_detect()
138 static int rt722_sdca_headset_detect(struct rt722_sdca_priv *rt722) in rt722_sdca_headset_detect() argument
144 ret = regmap_read(rt722->regmap, in rt722_sdca_headset_detect()
152 rt722->jack_type = 0; in rt722_sdca_headset_detect()
155 rt722->jack_type = SND_JACK_HEADPHONE; in rt722_sdca_headset_detect()
158 rt722->jack_type = SND_JACK_HEADSET; in rt722_sdca_headset_detect()
164 ret = regmap_write(rt722->regmap, in rt722_sdca_headset_detect()
171 dev_dbg(&rt722->slave->dev, in rt722_sdca_headset_detect()
183 struct rt722_sdca_priv *rt722 = in rt722_sdca_jack_detect_handler() local
187 if (!rt722->hs_jack) in rt722_sdca_jack_detect_handler()
190 if (!rt722->component->card || !rt722->component->card->instantiated) in rt722_sdca_jack_detect_handler()
194 if (rt722->scp_sdca_stat1 & SDW_SCP_SDCA_INT_SDCA_6) { in rt722_sdca_jack_detect_handler()
195 ret = rt722_sdca_headset_detect(rt722); in rt722_sdca_jack_detect_handler()
201 if (rt722->scp_sdca_stat2 & SDW_SCP_SDCA_INT_SDCA_8) in rt722_sdca_jack_detect_handler()
202 btn_type = rt722_sdca_button_detect(rt722); in rt722_sdca_jack_detect_handler()
204 if (rt722->jack_type == 0) in rt722_sdca_jack_detect_handler()
207 dev_dbg(&rt722->slave->dev, in rt722_sdca_jack_detect_handler()
208 "in %s, jack_type=%d\n", __func__, rt722->jack_type); in rt722_sdca_jack_detect_handler()
209 dev_dbg(&rt722->slave->dev, in rt722_sdca_jack_detect_handler()
211 dev_dbg(&rt722->slave->dev, in rt722_sdca_jack_detect_handler()
213 rt722->scp_sdca_stat1, rt722->scp_sdca_stat2); in rt722_sdca_jack_detect_handler()
215 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type | btn_type, in rt722_sdca_jack_detect_handler()
222 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type, in rt722_sdca_jack_detect_handler()
228 &rt722->jack_btn_check_work, msecs_to_jiffies(200)); in rt722_sdca_jack_detect_handler()
234 struct rt722_sdca_priv *rt722 = in rt722_sdca_btn_check_handler() local
240 ret = regmap_read(rt722->regmap, in rt722_sdca_btn_check_handler()
249 ret = regmap_read(rt722->regmap, in rt722_sdca_btn_check_handler()
256 ret = regmap_read(rt722->regmap, in rt722_sdca_btn_check_handler()
266 rt722->jack_type = 0; in rt722_sdca_btn_check_handler()
268 dev_dbg(&rt722->slave->dev, "%s, btn_type=0x%x\n", __func__, btn_type); in rt722_sdca_btn_check_handler()
269 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type | btn_type, in rt722_sdca_btn_check_handler()
276 snd_soc_jack_report(rt722->hs_jack, rt722->jack_type, in rt722_sdca_btn_check_handler()
282 &rt722->jack_btn_check_work, msecs_to_jiffies(200)); in rt722_sdca_btn_check_handler()
291 static void rt722_sdca_jack_init(struct rt722_sdca_priv *rt722) in rt722_sdca_jack_init() argument
293 mutex_lock(&rt722->calibrate_mutex); in rt722_sdca_jack_init()
294 if (rt722->hs_jack) { in rt722_sdca_jack_init()
296 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK1, in rt722_sdca_jack_init()
299 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK2, in rt722_sdca_jack_init()
301 dev_dbg(&rt722->slave->dev, "in %s enable\n", __func__); in rt722_sdca_jack_init()
302 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_jack_init()
305 regmap_write(rt722->regmap, in rt722_sdca_jack_init()
308 regmap_write(rt722->regmap, in rt722_sdca_jack_init()
312 rt722_sdca_index_update_bits(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_jack_init()
315 mutex_unlock(&rt722->calibrate_mutex); in rt722_sdca_jack_init()
321 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_set_jack_detect() local
324 rt722->hs_jack = hs_jack; in rt722_sdca_set_jack_detect()
337 rt722_sdca_jack_init(rt722); in rt722_sdca_set_jack_detect()
352 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_set_gain_put() local
363 regmap_read(rt722->mbq_regmap, mc->reg, &lvalue); in rt722_sdca_set_gain_put()
364 regmap_read(rt722->mbq_regmap, mc->rreg, &rvalue); in rt722_sdca_set_gain_put()
404 regmap_write(rt722->mbq_regmap, mc->reg, gain_l_val); in rt722_sdca_set_gain_put()
407 regmap_write(rt722->mbq_regmap, mc->rreg, gain_r_val); in rt722_sdca_set_gain_put()
409 regmap_read(rt722->mbq_regmap, mc->reg, &read_l); in rt722_sdca_set_gain_put()
410 regmap_read(rt722->mbq_regmap, mc->rreg, &read_r); in rt722_sdca_set_gain_put()
421 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_set_gain_get() local
433 regmap_read(rt722->mbq_regmap, mc->reg, &read_l); in rt722_sdca_set_gain_get()
434 regmap_read(rt722->mbq_regmap, mc->rreg, &read_r); in rt722_sdca_set_gain_get()
464 static int rt722_sdca_set_fu1e_capture_ctl(struct rt722_sdca_priv *rt722) in rt722_sdca_set_fu1e_capture_ctl() argument
469 for (i = 0; i < ARRAY_SIZE(rt722->fu1e_mixer_mute); i++) { in rt722_sdca_set_fu1e_capture_ctl()
470 ch_mute = rt722->fu1e_dapm_mute || rt722->fu1e_mixer_mute[i]; in rt722_sdca_set_fu1e_capture_ctl()
471 err = regmap_write(rt722->regmap, in rt722_sdca_set_fu1e_capture_ctl()
485 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_fu1e_capture_get() local
491 ucontrol->value.integer.value[i] = !rt722->fu1e_mixer_mute[i]; in rt722_sdca_fu1e_capture_get()
500 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_fu1e_capture_put() local
506 if (rt722->fu1e_mixer_mute[i] != !ucontrol->value.integer.value[i]) in rt722_sdca_fu1e_capture_put()
508 rt722->fu1e_mixer_mute[i] = !ucontrol->value.integer.value[i]; in rt722_sdca_fu1e_capture_put()
511 err = rt722_sdca_set_fu1e_capture_ctl(rt722); in rt722_sdca_fu1e_capture_put()
518 static int rt722_sdca_set_fu0f_capture_ctl(struct rt722_sdca_priv *rt722) in rt722_sdca_set_fu0f_capture_ctl() argument
523 ch_l = (rt722->fu0f_dapm_mute || rt722->fu0f_mixer_l_mute) ? 0x01 : 0x00; in rt722_sdca_set_fu0f_capture_ctl()
524 ch_r = (rt722->fu0f_dapm_mute || rt722->fu0f_mixer_r_mute) ? 0x01 : 0x00; in rt722_sdca_set_fu0f_capture_ctl()
526 err = regmap_write(rt722->regmap, in rt722_sdca_set_fu0f_capture_ctl()
532 err = regmap_write(rt722->regmap, in rt722_sdca_set_fu0f_capture_ctl()
545 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_fu0f_capture_get() local
547 ucontrol->value.integer.value[0] = !rt722->fu0f_mixer_l_mute; in rt722_sdca_fu0f_capture_get()
548 ucontrol->value.integer.value[1] = !rt722->fu0f_mixer_r_mute; in rt722_sdca_fu0f_capture_get()
556 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_fu0f_capture_put() local
559 if (rt722->fu0f_mixer_l_mute != !ucontrol->value.integer.value[0] || in rt722_sdca_fu0f_capture_put()
560 rt722->fu0f_mixer_r_mute != !ucontrol->value.integer.value[1]) in rt722_sdca_fu0f_capture_put()
563 rt722->fu0f_mixer_l_mute = !ucontrol->value.integer.value[0]; in rt722_sdca_fu0f_capture_put()
564 rt722->fu0f_mixer_r_mute = !ucontrol->value.integer.value[1]; in rt722_sdca_fu0f_capture_put()
565 err = rt722_sdca_set_fu0f_capture_ctl(rt722); in rt722_sdca_fu0f_capture_put()
592 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_dmic_set_gain_get() local
606 regmap_read(rt722->mbq_regmap, p->reg_base + i, &regvalue); in rt722_sdca_dmic_set_gain_get()
629 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_dmic_set_gain_put() local
643 regmap_read(rt722->mbq_regmap, p->reg_base + i, &regvalue[i]); in rt722_sdca_dmic_set_gain_put()
664 err = regmap_write(rt722->mbq_regmap, p->reg_base + i, gain_val[i]); in rt722_sdca_dmic_set_gain_put()
666 dev_err(&rt722->slave->dev, "%s: %#08x can't be set\n", in rt722_sdca_dmic_set_gain_put()
750 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_adc_mux_get() local
762 rt722_sdca_index_read(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_adc_mux_get()
777 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_adc_mux_put() local
796 rt722_sdca_index_read(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_adc_mux_put()
806 rt722_sdca_index_update_bits(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_adc_mux_put()
853 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_fu42_event() local
858 regmap_write(rt722->regmap, in rt722_sdca_fu42_event()
861 regmap_write(rt722->regmap, in rt722_sdca_fu42_event()
866 regmap_write(rt722->regmap, in rt722_sdca_fu42_event()
869 regmap_write(rt722->regmap, in rt722_sdca_fu42_event()
882 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_fu21_event() local
887 regmap_write(rt722->regmap, in rt722_sdca_fu21_event()
890 regmap_write(rt722->regmap, in rt722_sdca_fu21_event()
895 regmap_write(rt722->regmap, in rt722_sdca_fu21_event()
898 regmap_write(rt722->regmap, in rt722_sdca_fu21_event()
911 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_fu113_event() local
915 rt722->fu1e_dapm_mute = false; in rt722_sdca_fu113_event()
916 rt722_sdca_set_fu1e_capture_ctl(rt722); in rt722_sdca_fu113_event()
919 rt722->fu1e_dapm_mute = true; in rt722_sdca_fu113_event()
920 rt722_sdca_set_fu1e_capture_ctl(rt722); in rt722_sdca_fu113_event()
931 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_fu36_event() local
935 rt722->fu0f_dapm_mute = false; in rt722_sdca_fu36_event()
936 rt722_sdca_set_fu0f_capture_ctl(rt722); in rt722_sdca_fu36_event()
939 rt722->fu0f_dapm_mute = true; in rt722_sdca_fu36_event()
940 rt722_sdca_set_fu0f_capture_ctl(rt722); in rt722_sdca_fu36_event()
951 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_pde47_event() local
956 regmap_write(rt722->regmap, in rt722_sdca_pde47_event()
961 regmap_write(rt722->regmap, in rt722_sdca_pde47_event()
974 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_pde23_event() local
979 regmap_write(rt722->regmap, in rt722_sdca_pde23_event()
984 regmap_write(rt722->regmap, in rt722_sdca_pde23_event()
997 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_pde11_event() local
1002 regmap_write(rt722->regmap, in rt722_sdca_pde11_event()
1007 regmap_write(rt722->regmap, in rt722_sdca_pde11_event()
1020 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_pde12_event() local
1025 regmap_write(rt722->regmap, in rt722_sdca_pde12_event()
1030 regmap_write(rt722->regmap, in rt722_sdca_pde12_event()
1110 static int rt722_sdca_parse_dt(struct rt722_sdca_priv *rt722, struct device *dev) in rt722_sdca_parse_dt() argument
1112 device_property_read_u32(dev, "realtek,jd-src", &rt722->jd_src); in rt722_sdca_parse_dt()
1119 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_probe() local
1122 rt722_sdca_parse_dt(rt722, &rt722->slave->dev); in rt722_sdca_probe()
1123 rt722->component = component; in rt722_sdca_probe()
1163 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_pcm_hw_params() local
1177 if (!rt722->slave) in rt722_sdca_pcm_hw_params()
1212 retval = sdw_stream_add_slave(rt722->slave, &stream_config, in rt722_sdca_pcm_hw_params()
1247 regmap_write(rt722->regmap, in rt722_sdca_pcm_hw_params()
1250 regmap_write(rt722->regmap, in rt722_sdca_pcm_hw_params()
1256 regmap_write(rt722->regmap, in rt722_sdca_pcm_hw_params()
1261 regmap_write(rt722->regmap, in rt722_sdca_pcm_hw_params()
1272 struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component); in rt722_sdca_pcm_hw_free() local
1276 if (!rt722->slave) in rt722_sdca_pcm_hw_free()
1279 sdw_stream_remove_slave(rt722->slave, sdw_stream); in rt722_sdca_pcm_hw_free()
1344 struct rt722_sdca_priv *rt722; in rt722_sdca_init() local
1346 rt722 = devm_kzalloc(dev, sizeof(*rt722), GFP_KERNEL); in rt722_sdca_init()
1347 if (!rt722) in rt722_sdca_init()
1350 dev_set_drvdata(dev, rt722); in rt722_sdca_init()
1351 rt722->slave = slave; in rt722_sdca_init()
1352 rt722->regmap = regmap; in rt722_sdca_init()
1353 rt722->mbq_regmap = mbq_regmap; in rt722_sdca_init()
1355 mutex_init(&rt722->calibrate_mutex); in rt722_sdca_init()
1356 mutex_init(&rt722->disable_irq_lock); in rt722_sdca_init()
1358 INIT_DELAYED_WORK(&rt722->jack_detect_work, rt722_sdca_jack_detect_handler); in rt722_sdca_init()
1359 INIT_DELAYED_WORK(&rt722->jack_btn_check_work, rt722_sdca_btn_check_handler); in rt722_sdca_init()
1365 rt722->hw_init = false; in rt722_sdca_init()
1366 rt722->first_hw_init = false; in rt722_sdca_init()
1367 rt722->fu1e_dapm_mute = true; in rt722_sdca_init()
1368 rt722->fu0f_dapm_mute = true; in rt722_sdca_init()
1369 rt722->fu0f_mixer_l_mute = rt722->fu0f_mixer_r_mute = true; in rt722_sdca_init()
1370 rt722->fu1e_mixer_mute[0] = rt722->fu1e_mixer_mute[1] = in rt722_sdca_init()
1371 rt722->fu1e_mixer_mute[2] = rt722->fu1e_mixer_mute[3] = true; in rt722_sdca_init()
1377 static void rt722_sdca_dmic_preset(struct rt722_sdca_priv *rt722) in rt722_sdca_dmic_preset() argument
1380 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1383 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1386 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1389 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1392 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1395 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1398 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1401 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1404 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, in rt722_sdca_dmic_preset()
1407 regmap_write(rt722->regmap, in rt722_sdca_dmic_preset()
1411 regmap_write(rt722->regmap, 0x2f5c, 0x25); in rt722_sdca_dmic_preset()
1414 static void rt722_sdca_amp_preset(struct rt722_sdca_priv *rt722) in rt722_sdca_amp_preset() argument
1417 rt722_sdca_index_write(rt722, RT722_VENDOR_REG, RT722_CLSD_CTRL6, in rt722_sdca_amp_preset()
1420 rt722_sdca_index_write(rt722, RT722_VENDOR_CALI, RT722_DC_CALIB_CTRL, in rt722_sdca_amp_preset()
1423 rt722_sdca_index_write(rt722, RT722_VENDOR_CALI, RT722_DC_CALIB_CTRL, in rt722_sdca_amp_preset()
1426 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_AMP_PDE_FLOAT_CTL, in rt722_sdca_amp_preset()
1429 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_EAPD_CTL, in rt722_sdca_amp_preset()
1432 regmap_write(rt722->regmap, in rt722_sdca_amp_preset()
1437 static void rt722_sdca_jack_preset(struct rt722_sdca_priv *rt722) in rt722_sdca_jack_preset() argument
1443 rt722_sdca_index_write(rt722, RT722_VENDOR_REG, RT722_ANALOG_BIAS_CTL3, in rt722_sdca_jack_preset()
1446 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_GE_RELATED_CTL2, in rt722_sdca_jack_preset()
1449 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_UMP_HID_CTL4, in rt722_sdca_jack_preset()
1452 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_UMP_HID_CTL5, in rt722_sdca_jack_preset()
1455 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_UMP_HID_CTL0, in rt722_sdca_jack_preset()
1458 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_UMP_HID_CTL7, in rt722_sdca_jack_preset()
1461 rt722_sdca_index_write(rt722, RT722_VENDOR_REG, RT722_JD_CTRL1, in rt722_sdca_jack_preset()
1464 rt722_sdca_index_write(rt722, RT722_VENDOR_REG, RT722_CLSD_CTRL6, in rt722_sdca_jack_preset()
1467 rt722_sdca_index_write(rt722, RT722_VENDOR_REG, RT722_FSM_CTL, in rt722_sdca_jack_preset()
1470 rt722_sdca_index_write(rt722, RT722_VENDOR_CALI, RT722_DAC_DC_CALI_CTL3, in rt722_sdca_jack_preset()
1474 ret = rt722_sdca_index_read(rt722, RT722_VENDOR_CALI, in rt722_sdca_jack_preset()
1477 dev_dbg(&rt722->slave->dev, "calibration failed!, ret=%d\n", ret); in rt722_sdca_jack_preset()
1482 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_ADC0A_08_PDE_FLOAT_CTL, in rt722_sdca_jack_preset()
1485 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_MIC2_LINE2_PDE_FLOAT_CTL, in rt722_sdca_jack_preset()
1488 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_ET41_LINE2_PDE_FLOAT_CTL, in rt722_sdca_jack_preset()
1491 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_DAC03_HP_PDE_FLOAT_CTL, in rt722_sdca_jack_preset()
1493 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_ENT_FLOAT_CTRL_1, in rt722_sdca_jack_preset()
1495 rt722_sdca_index_write(rt722, RT722_VENDOR_HDA_CTL, RT722_FLOAT_CTRL_1, in rt722_sdca_jack_preset()
1498 regmap_write(rt722->regmap, 0x2f58, 0x07); in rt722_sdca_jack_preset()
1499 regmap_write(rt722->regmap, 0x2f03, 0x06); in rt722_sdca_jack_preset()
1501 rt722_sdca_index_update_bits(rt722, RT722_VENDOR_REG, in rt722_sdca_jack_preset()
1503 rt722_sdca_index_update_bits(rt722, RT722_VENDOR_REG, in rt722_sdca_jack_preset()
1506 rt722_sdca_index_write(rt722, RT722_VENDOR_REG, RT722_DIGITAL_MISC_CTRL4, in rt722_sdca_jack_preset()
1512 struct rt722_sdca_priv *rt722 = dev_get_drvdata(dev); in rt722_sdca_io_init() local
1514 rt722->disable_irq = false; in rt722_sdca_io_init()
1516 if (rt722->hw_init) in rt722_sdca_io_init()
1519 if (rt722->first_hw_init) { in rt722_sdca_io_init()
1520 regcache_cache_only(rt722->regmap, false); in rt722_sdca_io_init()
1521 regcache_cache_bypass(rt722->regmap, true); in rt722_sdca_io_init()
1522 regcache_cache_only(rt722->mbq_regmap, false); in rt722_sdca_io_init()
1523 regcache_cache_bypass(rt722->mbq_regmap, true); in rt722_sdca_io_init()
1544 rt722_sdca_dmic_preset(rt722); in rt722_sdca_io_init()
1545 rt722_sdca_amp_preset(rt722); in rt722_sdca_io_init()
1546 rt722_sdca_jack_preset(rt722); in rt722_sdca_io_init()
1548 if (rt722->first_hw_init) { in rt722_sdca_io_init()
1549 regcache_cache_bypass(rt722->regmap, false); in rt722_sdca_io_init()
1550 regcache_mark_dirty(rt722->regmap); in rt722_sdca_io_init()
1551 regcache_cache_bypass(rt722->mbq_regmap, false); in rt722_sdca_io_init()
1552 regcache_mark_dirty(rt722->mbq_regmap); in rt722_sdca_io_init()
1554 rt722->first_hw_init = true; in rt722_sdca_io_init()
1557 rt722->hw_init = true; in rt722_sdca_io_init()