Lines Matching refs:comp
1428 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_mclk() local
1429 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_enable_mclk()
1535 struct snd_soc_component *comp = dai->component; in wcd934x_set_prim_interpolator_rate() local
1536 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_set_prim_interpolator_rate()
1553 cfg0 = snd_soc_component_read(comp, in wcd934x_set_prim_interpolator_rate()
1555 cfg1 = snd_soc_component_read(comp, in wcd934x_set_prim_interpolator_rate()
1578 snd_soc_component_update_bits(comp, in wcd934x_set_prim_interpolator_rate()
1661 struct snd_soc_component *comp = dai->component; in wcd934x_set_decimator_rate() local
1662 struct wcd934x_codec *wcd = snd_soc_component_get_drvdata(comp); in wcd934x_set_decimator_rate()
1703 tx_mux_sel = snd_soc_component_read(comp, tx_port_reg) & in wcd934x_set_decimator_rate()
1730 snd_soc_component_update_bits(comp, in wcd934x_set_decimator_rate()
2239 static int wcd934x_init_dmic(struct snd_soc_component *comp) in wcd934x_init_dmic() argument
2242 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_init_dmic()
2245 vout_ctl_1 = wcd934x_get_micbias_val(comp->dev, in wcd934x_init_dmic()
2248 vout_ctl_2 = wcd934x_get_micbias_val(comp->dev, in wcd934x_init_dmic()
2251 vout_ctl_3 = wcd934x_get_micbias_val(comp->dev, in wcd934x_init_dmic()
2254 vout_ctl_4 = wcd934x_get_micbias_val(comp->dev, in wcd934x_init_dmic()
2258 snd_soc_component_update_bits(comp, WCD934X_ANA_MICB1, in wcd934x_init_dmic()
2260 snd_soc_component_update_bits(comp, WCD934X_ANA_MICB2, in wcd934x_init_dmic()
2262 snd_soc_component_update_bits(comp, WCD934X_ANA_MICB3, in wcd934x_init_dmic()
2264 snd_soc_component_update_bits(comp, WCD934X_ANA_MICB4, in wcd934x_init_dmic()
2275 snd_soc_component_update_bits(comp, WCD934X_TEST_DEBUG_PAD_DRVCTL_0, in wcd934x_init_dmic()
3100 static void wcd934x_comp_remove(struct snd_soc_component *comp) in wcd934x_comp_remove() argument
3102 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_comp_remove()
3107 static int wcd934x_comp_set_sysclk(struct snd_soc_component *comp, in wcd934x_comp_set_sysclk() argument
3111 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_comp_set_sysclk()
3119 snd_soc_component_update_bits(comp, WCD934X_CODEC_RPM_CLK_MCLK_CFG, in wcd934x_comp_set_sysclk()
3242 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_get() local
3245 ucontrol->value.integer.value[0] = wcd->comp_enabled[comp]; in wcd934x_compander_get()
3255 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_set() local
3259 if (wcd->comp_enabled[comp] == value) in wcd934x_compander_set()
3262 wcd->comp_enabled[comp] = value; in wcd934x_compander_set()
3267 switch (comp) { in wcd934x_compander_set()
3457 struct snd_soc_component *comp; in wcd934x_dec_enum_put() local
3463 comp = snd_soc_dapm_kcontrol_component(kcontrol); in wcd934x_dec_enum_put()
3497 dev_err(comp->dev, "%s: e->reg: 0x%x not expected\n", in wcd934x_dec_enum_put()
3505 snd_soc_component_update_bits(comp, mic_sel_reg, BIT(7), in wcd934x_dec_enum_put()
4182 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_slim() local
4183 struct wcd934x_codec *wcd = snd_soc_component_get_drvdata(comp); in wcd934x_codec_enable_slim()
4188 wcd934x_codec_enable_int_port(dai, comp); in wcd934x_codec_enable_slim()
4233 static void wcd934x_codec_hphdelay_lutbypass(struct snd_soc_component *comp, in wcd934x_codec_hphdelay_lutbypass() argument
4253 snd_soc_component_update_bits(comp, WCD934X_CDC_CLSH_TEST0, in wcd934x_codec_hphdelay_lutbypass()
4255 snd_soc_component_update_bits(comp, hph_lut_bypass_reg, in wcd934x_codec_hphdelay_lutbypass()
4261 snd_soc_component_update_bits(comp, WCD934X_CDC_CLSH_TEST0, in wcd934x_codec_hphdelay_lutbypass()
4263 snd_soc_component_update_bits(comp, hph_lut_bypass_reg, in wcd934x_codec_hphdelay_lutbypass()
4269 static int wcd934x_config_compander(struct snd_soc_component *comp, in wcd934x_config_compander() argument
4272 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_config_compander()
4290 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4293 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4296 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4299 snd_soc_component_update_bits(comp, rx_path_cfg0_reg, in wcd934x_config_compander()
4304 snd_soc_component_update_bits(comp, rx_path_cfg0_reg, in wcd934x_config_compander()
4307 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4310 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4313 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4316 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4318 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4329 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_interp_clk() local
4336 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4339 wcd934x_codec_hd2_control(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4340 wcd934x_codec_hphdelay_lutbypass(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4341 wcd934x_config_compander(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4344 wcd934x_config_compander(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4345 wcd934x_codec_hphdelay_lutbypass(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4346 wcd934x_codec_hd2_control(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4348 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4351 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4354 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4358 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4370 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_mix_path() local
4383 snd_soc_component_update_bits(comp, mix_reg, in wcd934x_codec_enable_mix_path()
4389 val = snd_soc_component_read(comp, gain_reg); in wcd934x_codec_enable_mix_path()
4391 snd_soc_component_write(comp, gain_reg, val); in wcd934x_codec_enable_mix_path()
4401 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_set_iir_gain() local
4407 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4408 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4411 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4412 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4415 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4416 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4419 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4420 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4423 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4424 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4436 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_main_path() local
4444 snd_soc_component_write(comp, gain_reg, in wcd934x_codec_enable_main_path()
4445 snd_soc_component_read(comp, gain_reg)); in wcd934x_codec_enable_main_path()
4455 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_ear_dac_event() local
4456 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_ear_dac_event()
4461 snd_soc_component_update_bits(comp, in wcd934x_codec_ear_dac_event()
4481 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_hphl_dac_event() local
4482 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_hphl_dac_event()
4489 dem_inp = snd_soc_component_read(comp, in wcd934x_codec_hphl_dac_event()
4498 snd_soc_component_update_bits(comp, in wcd934x_codec_hphl_dac_event()
4503 snd_soc_component_update_bits(comp, in wcd934x_codec_hphl_dac_event()
4517 snd_soc_component_update_bits(comp, in wcd934x_codec_hphl_dac_event()
4533 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_hphr_dac_event() local
4534 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_hphr_dac_event()
4540 dem_inp = snd_soc_component_read(comp, in wcd934x_codec_hphr_dac_event()
4548 snd_soc_component_update_bits(comp, in wcd934x_codec_hphr_dac_event()
4553 snd_soc_component_update_bits(comp, in wcd934x_codec_hphr_dac_event()
4568 snd_soc_component_update_bits(comp, in wcd934x_codec_hphr_dac_event()
4582 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_lineout_dac_event() local
4583 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_lineout_dac_event()
4603 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_hphl_pa() local
4604 struct wcd934x_codec *wcd = snd_soc_component_get_drvdata(comp); in wcd934x_codec_enable_hphl_pa()
4615 snd_soc_component_update_bits(comp, WCD934X_HPH_L_TEST, in wcd934x_codec_enable_hphl_pa()
4619 snd_soc_component_update_bits(comp, WCD934X_CDC_RX1_RX_PATH_CTL, in wcd934x_codec_enable_hphl_pa()
4623 snd_soc_component_update_bits(comp, WCD934X_HPH_CNP_WG_CTL, in wcd934x_codec_enable_hphl_pa()
4627 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphl_pa()
4632 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphl_pa()
4639 snd_soc_component_update_bits(comp, WCD934X_HPH_L_TEST, in wcd934x_codec_enable_hphl_pa()
4642 snd_soc_component_update_bits(comp, WCD934X_CDC_RX1_RX_PATH_CTL, in wcd934x_codec_enable_hphl_pa()
4645 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphl_pa()
4667 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_hphr_pa() local
4668 struct wcd934x_codec *wcd = snd_soc_component_get_drvdata(comp); in wcd934x_codec_enable_hphr_pa()
4678 snd_soc_component_update_bits(comp, WCD934X_HPH_R_TEST, in wcd934x_codec_enable_hphr_pa()
4682 snd_soc_component_update_bits(comp, WCD934X_CDC_RX2_RX_PATH_CTL, in wcd934x_codec_enable_hphr_pa()
4686 snd_soc_component_update_bits(comp, WCD934X_HPH_CNP_WG_CTL, in wcd934x_codec_enable_hphr_pa()
4690 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphr_pa()
4695 if ((snd_soc_component_read(comp, in wcd934x_codec_enable_hphr_pa()
4697 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphr_pa()
4704 snd_soc_component_update_bits(comp, WCD934X_HPH_R_TEST, in wcd934x_codec_enable_hphr_pa()
4707 snd_soc_component_update_bits(comp, WCD934X_CDC_RX2_RX_PATH_CTL, in wcd934x_codec_enable_hphr_pa()
4710 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphr_pa()
4728 static u32 wcd934x_get_dmic_sample_rate(struct snd_soc_component *comp, in wcd934x_get_dmic_sample_rate() argument
4749 adc_mux_sel = ((snd_soc_component_read(comp, adc_mux_ctl_reg) in wcd934x_get_dmic_sample_rate()
4762 tx_stream_fs = snd_soc_component_read(comp, tx_fs_reg) & 0x0F; in wcd934x_get_dmic_sample_rate()
4778 static u8 wcd934x_get_dmic_clk_val(struct snd_soc_component *comp, in wcd934x_get_dmic_clk_val() argument
4791 dev_err(comp->dev, in wcd934x_get_dmic_clk_val()
4818 dev_err(comp->dev, in wcd934x_get_dmic_clk_val()
4831 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_dmic() local
4832 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_enable_dmic()
4844 dev_err(comp->dev, "%s: widget not found\n", __func__); in wcd934x_codec_enable_dmic()
4850 dev_err(comp->dev, "%s: Invalid DMIC line on the codec\n", in wcd934x_codec_enable_dmic()
4872 dev_err(comp->dev, "%s: Invalid DMIC Selection\n", in wcd934x_codec_enable_dmic()
4879 dmic_sample_rate = wcd934x_get_dmic_sample_rate(comp, dmic, in wcd934x_codec_enable_dmic()
4881 dmic_rate_val = wcd934x_get_dmic_clk_val(comp, wcd->rate, in wcd934x_codec_enable_dmic()
4886 snd_soc_component_update_bits(comp, dmic_clk_reg, in wcd934x_codec_enable_dmic()
4889 snd_soc_component_update_bits(comp, dmic_clk_reg, in wcd934x_codec_enable_dmic()
4897 snd_soc_component_update_bits(comp, dmic_clk_reg, in wcd934x_codec_enable_dmic()
4905 static int wcd934x_codec_find_amic_input(struct snd_soc_component *comp, in wcd934x_codec_find_amic_input() argument
4964 is_amic = (((snd_soc_component_read(comp, adc_mux_in_reg) in wcd934x_codec_find_amic_input()
4969 return snd_soc_component_read(comp, amic_mux_sel_reg) & 0x07; in wcd934x_codec_find_amic_input()
4972 static u16 wcd934x_codec_get_amic_pwlvl_reg(struct snd_soc_component *comp, in wcd934x_codec_get_amic_pwlvl_reg() argument
4997 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_dec() local
5015 dev_err(comp->dev, "%s: Invalid decimator = %s\n", in wcd934x_codec_enable_dec()
5024 dev_err(comp->dev, "%s: decimator index not found\n", in wcd934x_codec_enable_dec()
5032 dev_err(comp->dev, "%s: Invalid decimator = %s\n", in wcd934x_codec_enable_dec()
5045 amic_n = wcd934x_codec_find_amic_input(comp, decimator); in wcd934x_codec_enable_dec()
5047 pwr_level_reg = wcd934x_codec_get_amic_pwlvl_reg(comp, in wcd934x_codec_enable_dec()
5053 switch ((snd_soc_component_read(comp, pwr_level_reg) & in wcd934x_codec_enable_dec()
5057 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5062 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5069 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5076 hpf_coff_freq = (snd_soc_component_read(comp, dec_cfg_reg) & in wcd934x_codec_enable_dec()
5079 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5082 snd_soc_component_update_bits(comp, hpf_gate_reg, in wcd934x_codec_enable_dec()
5090 snd_soc_component_update_bits(comp, hpf_gate_reg, in wcd934x_codec_enable_dec()
5095 snd_soc_component_write(comp, tx_gain_ctl_reg, in wcd934x_codec_enable_dec()
5096 snd_soc_component_read(comp, in wcd934x_codec_enable_dec()
5100 hpf_coff_freq = (snd_soc_component_read(comp, dec_cfg_reg) & in wcd934x_codec_enable_dec()
5104 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5107 snd_soc_component_update_bits(comp, hpf_gate_reg, in wcd934x_codec_enable_dec()
5115 snd_soc_component_update_bits(comp, hpf_gate_reg, in wcd934x_codec_enable_dec()
5121 snd_soc_component_update_bits(comp, tx_vol_ctl_reg, in wcd934x_codec_enable_dec()
5123 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5133 static void wcd934x_codec_set_tx_hold(struct snd_soc_component *comp, in wcd934x_codec_set_tx_hold() argument
5148 snd_soc_component_update_bits(comp, WCD934X_ANA_AMIC2, in wcd934x_codec_set_tx_hold()
5153 snd_soc_component_update_bits(comp, WCD934X_ANA_AMIC4, in wcd934x_codec_set_tx_hold()
5164 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_adc() local
5168 wcd934x_codec_set_tx_hold(comp, w->reg, true); in wcd934x_codec_enable_adc()
5842 static int wcd934x_codec_set_jack(struct snd_soc_component *comp, in wcd934x_codec_set_jack() argument
5845 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_set_jack()