Lines Matching +full:0 +full:x5f00000
24 case 0x201a ... 0x201f: in rt712_sdca_dmic_readable_register()
25 case 0x2029 ... 0x202a: in rt712_sdca_dmic_readable_register()
26 case 0x202d ... 0x2034: in rt712_sdca_dmic_readable_register()
27 case 0x2230 ... 0x2232: in rt712_sdca_dmic_readable_register()
28 case 0x2f01 ... 0x2f0a: in rt712_sdca_dmic_readable_register()
29 case 0x2f35 ... 0x2f36: in rt712_sdca_dmic_readable_register()
30 case 0x2f52: in rt712_sdca_dmic_readable_register()
31 case 0x2f58 ... 0x2f59: in rt712_sdca_dmic_readable_register()
32 case 0x3201: in rt712_sdca_dmic_readable_register()
33 case 0x320c: in rt712_sdca_dmic_readable_register()
43 case 0x201b: in rt712_sdca_dmic_volatile_register()
44 case 0x201c: in rt712_sdca_dmic_volatile_register()
45 case 0x201d: in rt712_sdca_dmic_volatile_register()
46 case 0x201f: in rt712_sdca_dmic_volatile_register()
47 case 0x202d ... 0x202f: in rt712_sdca_dmic_volatile_register()
48 case 0x2230: in rt712_sdca_dmic_volatile_register()
49 case 0x2f01: in rt712_sdca_dmic_volatile_register()
50 case 0x2f35: in rt712_sdca_dmic_volatile_register()
51 case 0x320c: in rt712_sdca_dmic_volatile_register()
61 case 0x2000000 ... 0x200008e: in rt712_sdca_dmic_mbq_readable_register()
62 case 0x5300000 ... 0x530000e: in rt712_sdca_dmic_mbq_readable_register()
63 case 0x5400000 ... 0x540000e: in rt712_sdca_dmic_mbq_readable_register()
64 case 0x5600000 ... 0x5600008: in rt712_sdca_dmic_mbq_readable_register()
65 case 0x5700000 ... 0x570000d: in rt712_sdca_dmic_mbq_readable_register()
66 case 0x5800000 ... 0x5800021: in rt712_sdca_dmic_mbq_readable_register()
67 case 0x5900000 ... 0x5900028: in rt712_sdca_dmic_mbq_readable_register()
68 case 0x5a00000 ... 0x5a00009: in rt712_sdca_dmic_mbq_readable_register()
69 case 0x5b00000 ... 0x5b00051: in rt712_sdca_dmic_mbq_readable_register()
70 case 0x5c00000 ... 0x5c0009a: in rt712_sdca_dmic_mbq_readable_register()
71 case 0x5d00000 ... 0x5d00009: in rt712_sdca_dmic_mbq_readable_register()
72 case 0x5f00000 ... 0x5f00030: in rt712_sdca_dmic_mbq_readable_register()
73 case 0x6100000 ... 0x6100068: in rt712_sdca_dmic_mbq_readable_register()
91 case 0x2000000: in rt712_sdca_dmic_mbq_volatile_register()
92 case 0x200001a: in rt712_sdca_dmic_mbq_volatile_register()
93 case 0x2000024: in rt712_sdca_dmic_mbq_volatile_register()
94 case 0x2000046: in rt712_sdca_dmic_mbq_volatile_register()
95 case 0x200008a: in rt712_sdca_dmic_mbq_volatile_register()
96 case 0x5800000: in rt712_sdca_dmic_mbq_volatile_register()
97 case 0x5800001: in rt712_sdca_dmic_mbq_volatile_register()
98 case 0x6100008: in rt712_sdca_dmic_mbq_volatile_register()
110 .max_register = 0x40981300,
124 .max_register = 0x40800f14,
140 if (ret < 0) in rt712_sdca_dmic_index_write()
156 if (ret < 0) in rt712_sdca_dmic_index_read()
171 if (ret < 0) in rt712_sdca_dmic_index_update_bits()
183 return 0; in rt712_sdca_dmic_io_init()
202 RT712_ADC0A_08_PDE_FLOAT_CTL, 0x1112); in rt712_sdca_dmic_io_init()
204 RT712_ADC0B_11_PDE_FLOAT_CTL, 0x1111); in rt712_sdca_dmic_io_init()
206 RT712_DMIC1_2_PDE_FLOAT_CTL, 0x1111); in rt712_sdca_dmic_io_init()
208 RT712_I2S_IN_OUT_PDE_FLOAT_CTL, 0x1155); in rt712_sdca_dmic_io_init()
210 RT712_DMIC_ENT_FLOAT_CTL, 0x2626); in rt712_sdca_dmic_io_init()
212 RT712_ADC_ENT_FLOAT_CTL, 0x1e19); in rt712_sdca_dmic_io_init()
214 RT712_DMIC_GAIN_ENT_FLOAT_CTL0, 0x1515); in rt712_sdca_dmic_io_init()
216 RT712_ADC_VOL_CH_FLOAT_CTL2, 0x0304); in rt712_sdca_dmic_io_init()
218 RT712_DMIC_GAIN_ENT_FLOAT_CTL2, 0x0304); in rt712_sdca_dmic_io_init()
220 RT712_HDA_LEGACY_CONFIG_CTL0, 0x0050); in rt712_sdca_dmic_io_init()
222 SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT712_SDCA_ENT_IT26, RT712_SDCA_CTL_VENDOR_DEF, 0), 0x01); in rt712_sdca_dmic_io_init()
224 RT712_ULTRA_SOUND_DETECTOR6, 0x3200); in rt712_sdca_dmic_io_init()
225 regmap_write(rt712->regmap, RT712_RC_CAL, 0x23); in rt712_sdca_dmic_io_init()
226 regmap_write(rt712->regmap, 0x2f52, 0x00); in rt712_sdca_dmic_io_init()
243 return 0; in rt712_sdca_dmic_io_init()
254 unsigned int adc_vol_flag = 0; in rt712_sdca_dmic_set_gain_get()
255 const unsigned int interval_offset = 0xc0; in rt712_sdca_dmic_set_gain_get()
261 for (i = 0; i < p->count; i++) { in rt712_sdca_dmic_set_gain_get()
265 ctl = regvalue / 0x0a00; in rt712_sdca_dmic_set_gain_get()
268 ctl = p->max - (((0x1e00 - regvalue) & 0xffff) / interval_offset); in rt712_sdca_dmic_set_gain_get()
270 ctl = p->max - (((0 - regvalue) & 0xffff) / interval_offset); in rt712_sdca_dmic_set_gain_get()
276 return 0; in rt712_sdca_dmic_set_gain_get()
287 unsigned int i, adc_vol_flag = 0, changed = 0; in rt712_sdca_dmic_set_gain_put()
289 const unsigned int interval_offset = 0xc0; in rt712_sdca_dmic_set_gain_put()
296 for (i = 0; i < p->count; i++) { in rt712_sdca_dmic_set_gain_put()
304 gain_val[i] = gain_val[i] * 0x0a00; in rt712_sdca_dmic_set_gain_put()
306 gain_val[i] = 0x1e00 - ((p->max - gain_val[i]) * interval_offset); in rt712_sdca_dmic_set_gain_put()
307 gain_val[i] &= 0xffff; in rt712_sdca_dmic_set_gain_put()
315 return 0; in rt712_sdca_dmic_set_gain_put()
317 for (i = 0; i < p->count; i++) { in rt712_sdca_dmic_set_gain_put()
319 if (err < 0) in rt712_sdca_dmic_set_gain_put()
320 dev_err(&rt712->slave->dev, "%s: 0x%08x can't be set\n", in rt712_sdca_dmic_set_gain_put()
332 for (i = 0; i < ARRAY_SIZE(rt712->fu1e_mixer_mute); i++) { in rt712_sdca_set_fu1e_capture_ctl()
333 ch_mute = (rt712->fu1e_dapm_mute || rt712->fu1e_mixer_mute[i]) ? 0x01 : 0x00; in rt712_sdca_set_fu1e_capture_ctl()
337 if (err < 0) in rt712_sdca_set_fu1e_capture_ctl()
341 return 0; in rt712_sdca_set_fu1e_capture_ctl()
353 for (i = 0; i < p->count; i++) in rt712_sdca_dmic_fu1e_capture_get()
356 return 0; in rt712_sdca_dmic_fu1e_capture_get()
366 int err, changed = 0, i; in rt712_sdca_dmic_fu1e_capture_put()
368 for (i = 0; i < p->count; i++) { in rt712_sdca_dmic_fu1e_capture_put()
375 if (err < 0) in rt712_sdca_dmic_fu1e_capture_put()
392 uinfo->value.integer.min = 0; in rt712_sdca_fu_info()
394 return 0; in rt712_sdca_fu_info()
417 .private_value = RT712_SDCA_PR_VALUE(reg_base, xcount, xmax, 0) }
419 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -1725, 75, 0);
420 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, 0, 1000, 0);
428 rt712_sdca_dmic_set_gain_get, rt712_sdca_dmic_set_gain_put, 4, 0x3f, in_vol_tlv),
440 unsigned int val = 0, mask_sft; in rt712_sdca_dmic_mux_get()
452 ucontrol->value.enumerated.item[0] = (val >> mask_sft) & 0x7; in rt712_sdca_dmic_mux_get()
454 return 0; in rt712_sdca_dmic_mux_get()
467 unsigned int val, val2 = 0, change, mask_sft; in rt712_sdca_dmic_mux_put()
469 if (item[0] >= e->items) in rt712_sdca_dmic_mux_put()
479 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in rt712_sdca_dmic_mux_put()
483 val2 = (0x7 << mask_sft) & val2; in rt712_sdca_dmic_mux_put()
486 change = 0; in rt712_sdca_dmic_mux_put()
492 RT712_HDA_LEGACY_MUX_CTL0, 0x7 << mask_sft, in rt712_sdca_dmic_mux_put()
496 item[0], e, NULL); in rt712_sdca_dmic_mux_put()
507 rt712_adc25_enum, SND_SOC_NOPM, 0, adc_mux_text);
510 rt712_adc26_enum, SND_SOC_NOPM, 0, adc_mux_text);
537 return 0; in rt712_sdca_dmic_fu1e_event()
546 unsigned char ps0 = 0x0, ps3 = 0x3; in rt712_sdca_dmic_pde11_event()
552 RT712_SDCA_CTL_REQ_POWER_STATE, 0), in rt712_sdca_dmic_pde11_event()
558 RT712_SDCA_CTL_REQ_POWER_STATE, 0), in rt712_sdca_dmic_pde11_event()
562 return 0; in rt712_sdca_dmic_pde11_event()
569 SND_SOC_DAPM_SUPPLY("PDE 11", SND_SOC_NOPM, 0, 0,
573 SND_SOC_DAPM_ADC_E("FU 1E", NULL, SND_SOC_NOPM, 0, 0,
576 SND_SOC_DAPM_MUX("ADC 25 Mux", SND_SOC_NOPM, 0, 0,
578 SND_SOC_DAPM_MUX("ADC 26 Mux", SND_SOC_NOPM, 0, 0,
581 SND_SOC_DAPM_AIF_OUT("DP2TX", "DP2 Capture", 0, SND_SOC_NOPM, 0, 0),
604 return 0; in rt712_sdca_dmic_probe()
607 if (ret < 0 && ret != -EACCES) in rt712_sdca_dmic_probe()
610 return 0; in rt712_sdca_dmic_probe()
629 return 0; in rt712_sdca_dmic_set_sdw_stream()
665 port_config.ch_mask = GENMASK(num_channels - 1, 0); in rt712_sdca_dmic_hw_params()
709 SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT712_SDCA_ENT_CS1F, RT712_SDCA_CTL_SAMPLE_FREQ_INDEX, 0), in rt712_sdca_dmic_hw_params()
712 SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT712_SDCA_ENT_CS1C, RT712_SDCA_CTL_SAMPLE_FREQ_INDEX, 0), in rt712_sdca_dmic_hw_params()
715 return 0; in rt712_sdca_dmic_hw_params()
730 return 0; in rt712_sdca_dmic_hw_free()
785 rt712->fu1e_mixer_mute[0] = rt712->fu1e_mixer_mute[1] = in rt712_sdca_dmic_init()
792 if (ret < 0) in rt712_sdca_dmic_init()
812 return 0; in rt712_sdca_dmic_init()
829 return 0; in rt712_sdca_dmic_update_status()
850 prop->sink_ports = 0; in rt712_sdca_dmic_read_prop()
858 i = 0; in rt712_sdca_dmic_read_prop()
875 return 0; in rt712_sdca_dmic_read_prop()
879 SDW_SLAVE_ENTRY_EXT(0x025d, 0x1712, 0x3, 0x1, 0),
880 SDW_SLAVE_ENTRY_EXT(0x025d, 0x1713, 0x3, 0x1, 0),
881 SDW_SLAVE_ENTRY_EXT(0x025d, 0x1716, 0x3, 0x1, 0),
882 SDW_SLAVE_ENTRY_EXT(0x025d, 0x1717, 0x3, 0x1, 0),
892 return 0; in rt712_sdca_dmic_dev_suspend()
897 return 0; in rt712_sdca_dmic_dev_suspend()
905 return 0; in rt712_sdca_dmic_dev_system_suspend()
919 return 0; in rt712_sdca_dmic_dev_resume()
935 slave->unattach_request = 0; in rt712_sdca_dmic_dev_resume()
940 return 0; in rt712_sdca_dmic_dev_resume()
975 return 0; in rt712_sdca_dmic_sdw_remove()