Lines Matching full: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()
2240 static int wcd934x_init_dmic(struct snd_soc_component *comp) in wcd934x_init_dmic() argument
2243 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_init_dmic()
2246 vout_ctl_1 = wcd934x_get_micbias_val(comp->dev, in wcd934x_init_dmic()
2249 vout_ctl_2 = wcd934x_get_micbias_val(comp->dev, in wcd934x_init_dmic()
2252 vout_ctl_3 = wcd934x_get_micbias_val(comp->dev, in wcd934x_init_dmic()
2255 vout_ctl_4 = wcd934x_get_micbias_val(comp->dev, in wcd934x_init_dmic()
2259 snd_soc_component_update_bits(comp, WCD934X_ANA_MICB1, in wcd934x_init_dmic()
2261 snd_soc_component_update_bits(comp, WCD934X_ANA_MICB2, in wcd934x_init_dmic()
2263 snd_soc_component_update_bits(comp, WCD934X_ANA_MICB3, in wcd934x_init_dmic()
2265 snd_soc_component_update_bits(comp, WCD934X_ANA_MICB4, in wcd934x_init_dmic()
2276 snd_soc_component_update_bits(comp, WCD934X_TEST_DEBUG_PAD_DRVCTL_0, in wcd934x_init_dmic()
3101 static void wcd934x_comp_remove(struct snd_soc_component *comp) in wcd934x_comp_remove() argument
3103 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_comp_remove()
3108 static int wcd934x_comp_set_sysclk(struct snd_soc_component *comp, in wcd934x_comp_set_sysclk() argument
3112 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_comp_set_sysclk()
3120 snd_soc_component_update_bits(comp, WCD934X_CODEC_RPM_CLK_MCLK_CFG, in wcd934x_comp_set_sysclk()
3243 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_get() local
3246 ucontrol->value.integer.value[0] = wcd->comp_enabled[comp]; in wcd934x_compander_get()
3256 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_set() local
3260 wcd->comp_enabled[comp] = value; in wcd934x_compander_set()
3265 switch (comp) { in wcd934x_compander_set()
3414 struct snd_soc_component *comp; in wcd934x_dec_enum_put() local
3420 comp = snd_soc_dapm_kcontrol_component(kcontrol); in wcd934x_dec_enum_put()
3454 dev_err(comp->dev, "%s: e->reg: 0x%x not expected\n", in wcd934x_dec_enum_put()
3462 snd_soc_component_update_bits(comp, mic_sel_reg, BIT(7), in wcd934x_dec_enum_put()
4123 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_slim() local
4124 struct wcd934x_codec *wcd = snd_soc_component_get_drvdata(comp); in wcd934x_codec_enable_slim()
4129 wcd934x_codec_enable_int_port(dai, comp); in wcd934x_codec_enable_slim()
4174 static void wcd934x_codec_hphdelay_lutbypass(struct snd_soc_component *comp, in wcd934x_codec_hphdelay_lutbypass() argument
4194 snd_soc_component_update_bits(comp, WCD934X_CDC_CLSH_TEST0, in wcd934x_codec_hphdelay_lutbypass()
4196 snd_soc_component_update_bits(comp, hph_lut_bypass_reg, in wcd934x_codec_hphdelay_lutbypass()
4202 snd_soc_component_update_bits(comp, WCD934X_CDC_CLSH_TEST0, in wcd934x_codec_hphdelay_lutbypass()
4204 snd_soc_component_update_bits(comp, hph_lut_bypass_reg, in wcd934x_codec_hphdelay_lutbypass()
4210 static int wcd934x_config_compander(struct snd_soc_component *comp, in wcd934x_config_compander() argument
4213 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_config_compander()
4231 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4234 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4237 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4240 snd_soc_component_update_bits(comp, rx_path_cfg0_reg, in wcd934x_config_compander()
4245 snd_soc_component_update_bits(comp, rx_path_cfg0_reg, in wcd934x_config_compander()
4248 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4251 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4254 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4257 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4259 snd_soc_component_update_bits(comp, comp_ctl0_reg, in wcd934x_config_compander()
4270 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_interp_clk() local
4277 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4280 wcd934x_codec_hd2_control(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4281 wcd934x_codec_hphdelay_lutbypass(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4282 wcd934x_config_compander(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4285 wcd934x_config_compander(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4286 wcd934x_codec_hphdelay_lutbypass(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4287 wcd934x_codec_hd2_control(comp, interp_idx, event); in wcd934x_codec_enable_interp_clk()
4289 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4292 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4295 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4299 snd_soc_component_update_bits(comp, main_reg, in wcd934x_codec_enable_interp_clk()
4311 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_mix_path() local
4324 snd_soc_component_update_bits(comp, mix_reg, in wcd934x_codec_enable_mix_path()
4330 val = snd_soc_component_read(comp, gain_reg); in wcd934x_codec_enable_mix_path()
4332 snd_soc_component_write(comp, gain_reg, val); in wcd934x_codec_enable_mix_path()
4342 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_set_iir_gain() local
4348 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4349 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4352 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4353 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4356 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4357 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4360 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4361 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4364 snd_soc_component_write(comp, reg, in wcd934x_codec_set_iir_gain()
4365 snd_soc_component_read(comp, reg)); in wcd934x_codec_set_iir_gain()
4377 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_main_path() local
4385 snd_soc_component_write(comp, gain_reg, in wcd934x_codec_enable_main_path()
4386 snd_soc_component_read(comp, gain_reg)); in wcd934x_codec_enable_main_path()
4396 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_ear_dac_event() local
4397 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_ear_dac_event()
4402 snd_soc_component_update_bits(comp, in wcd934x_codec_ear_dac_event()
4422 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_hphl_dac_event() local
4423 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_hphl_dac_event()
4430 dem_inp = snd_soc_component_read(comp, in wcd934x_codec_hphl_dac_event()
4439 snd_soc_component_update_bits(comp, in wcd934x_codec_hphl_dac_event()
4444 snd_soc_component_update_bits(comp, in wcd934x_codec_hphl_dac_event()
4458 snd_soc_component_update_bits(comp, in wcd934x_codec_hphl_dac_event()
4474 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_hphr_dac_event() local
4475 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_hphr_dac_event()
4481 dem_inp = snd_soc_component_read(comp, in wcd934x_codec_hphr_dac_event()
4489 snd_soc_component_update_bits(comp, in wcd934x_codec_hphr_dac_event()
4494 snd_soc_component_update_bits(comp, in wcd934x_codec_hphr_dac_event()
4509 snd_soc_component_update_bits(comp, in wcd934x_codec_hphr_dac_event()
4523 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_lineout_dac_event() local
4524 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_lineout_dac_event()
4544 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_hphl_pa() local
4545 struct wcd934x_codec *wcd = snd_soc_component_get_drvdata(comp); in wcd934x_codec_enable_hphl_pa()
4556 snd_soc_component_update_bits(comp, WCD934X_HPH_L_TEST, in wcd934x_codec_enable_hphl_pa()
4560 snd_soc_component_update_bits(comp, WCD934X_CDC_RX1_RX_PATH_CTL, in wcd934x_codec_enable_hphl_pa()
4564 snd_soc_component_update_bits(comp, WCD934X_HPH_CNP_WG_CTL, in wcd934x_codec_enable_hphl_pa()
4568 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphl_pa()
4573 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphl_pa()
4580 snd_soc_component_update_bits(comp, WCD934X_HPH_L_TEST, in wcd934x_codec_enable_hphl_pa()
4583 snd_soc_component_update_bits(comp, WCD934X_CDC_RX1_RX_PATH_CTL, in wcd934x_codec_enable_hphl_pa()
4586 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphl_pa()
4608 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_hphr_pa() local
4609 struct wcd934x_codec *wcd = snd_soc_component_get_drvdata(comp); in wcd934x_codec_enable_hphr_pa()
4619 snd_soc_component_update_bits(comp, WCD934X_HPH_R_TEST, in wcd934x_codec_enable_hphr_pa()
4623 snd_soc_component_update_bits(comp, WCD934X_CDC_RX2_RX_PATH_CTL, in wcd934x_codec_enable_hphr_pa()
4627 snd_soc_component_update_bits(comp, WCD934X_HPH_CNP_WG_CTL, in wcd934x_codec_enable_hphr_pa()
4631 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphr_pa()
4636 if ((snd_soc_component_read(comp, in wcd934x_codec_enable_hphr_pa()
4638 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphr_pa()
4645 snd_soc_component_update_bits(comp, WCD934X_HPH_R_TEST, in wcd934x_codec_enable_hphr_pa()
4648 snd_soc_component_update_bits(comp, WCD934X_CDC_RX2_RX_PATH_CTL, in wcd934x_codec_enable_hphr_pa()
4651 snd_soc_component_update_bits(comp, in wcd934x_codec_enable_hphr_pa()
4669 static u32 wcd934x_get_dmic_sample_rate(struct snd_soc_component *comp, in wcd934x_get_dmic_sample_rate() argument
4690 adc_mux_sel = ((snd_soc_component_read(comp, adc_mux_ctl_reg) in wcd934x_get_dmic_sample_rate()
4703 tx_stream_fs = snd_soc_component_read(comp, tx_fs_reg) & 0x0F; in wcd934x_get_dmic_sample_rate()
4719 static u8 wcd934x_get_dmic_clk_val(struct snd_soc_component *comp, in wcd934x_get_dmic_clk_val() argument
4732 dev_err(comp->dev, in wcd934x_get_dmic_clk_val()
4759 dev_err(comp->dev, in wcd934x_get_dmic_clk_val()
4772 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_dmic() local
4773 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_enable_dmic()
4785 dev_err(comp->dev, "%s: widget not found\n", __func__); in wcd934x_codec_enable_dmic()
4791 dev_err(comp->dev, "%s: Invalid DMIC line on the codec\n", in wcd934x_codec_enable_dmic()
4813 dev_err(comp->dev, "%s: Invalid DMIC Selection\n", in wcd934x_codec_enable_dmic()
4820 dmic_sample_rate = wcd934x_get_dmic_sample_rate(comp, dmic, in wcd934x_codec_enable_dmic()
4822 dmic_rate_val = wcd934x_get_dmic_clk_val(comp, wcd->rate, in wcd934x_codec_enable_dmic()
4827 snd_soc_component_update_bits(comp, dmic_clk_reg, in wcd934x_codec_enable_dmic()
4830 snd_soc_component_update_bits(comp, dmic_clk_reg, in wcd934x_codec_enable_dmic()
4838 snd_soc_component_update_bits(comp, dmic_clk_reg, in wcd934x_codec_enable_dmic()
4846 static int wcd934x_codec_find_amic_input(struct snd_soc_component *comp, in wcd934x_codec_find_amic_input() argument
4905 is_amic = (((snd_soc_component_read(comp, adc_mux_in_reg) in wcd934x_codec_find_amic_input()
4910 return snd_soc_component_read(comp, amic_mux_sel_reg) & 0x07; in wcd934x_codec_find_amic_input()
4913 static u16 wcd934x_codec_get_amic_pwlvl_reg(struct snd_soc_component *comp, in wcd934x_codec_get_amic_pwlvl_reg() argument
4938 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_dec() local
4956 dev_err(comp->dev, "%s: Invalid decimator = %s\n", in wcd934x_codec_enable_dec()
4965 dev_err(comp->dev, "%s: decimator index not found\n", in wcd934x_codec_enable_dec()
4973 dev_err(comp->dev, "%s: Invalid decimator = %s\n", in wcd934x_codec_enable_dec()
4986 amic_n = wcd934x_codec_find_amic_input(comp, decimator); in wcd934x_codec_enable_dec()
4988 pwr_level_reg = wcd934x_codec_get_amic_pwlvl_reg(comp, in wcd934x_codec_enable_dec()
4994 switch ((snd_soc_component_read(comp, pwr_level_reg) & in wcd934x_codec_enable_dec()
4998 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5003 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5010 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5017 hpf_coff_freq = (snd_soc_component_read(comp, dec_cfg_reg) & in wcd934x_codec_enable_dec()
5020 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5023 snd_soc_component_update_bits(comp, hpf_gate_reg, in wcd934x_codec_enable_dec()
5031 snd_soc_component_update_bits(comp, hpf_gate_reg, in wcd934x_codec_enable_dec()
5036 snd_soc_component_write(comp, tx_gain_ctl_reg, in wcd934x_codec_enable_dec()
5037 snd_soc_component_read(comp, in wcd934x_codec_enable_dec()
5041 hpf_coff_freq = (snd_soc_component_read(comp, dec_cfg_reg) & in wcd934x_codec_enable_dec()
5045 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5048 snd_soc_component_update_bits(comp, hpf_gate_reg, in wcd934x_codec_enable_dec()
5056 snd_soc_component_update_bits(comp, hpf_gate_reg, in wcd934x_codec_enable_dec()
5062 snd_soc_component_update_bits(comp, tx_vol_ctl_reg, in wcd934x_codec_enable_dec()
5064 snd_soc_component_update_bits(comp, dec_cfg_reg, in wcd934x_codec_enable_dec()
5074 static void wcd934x_codec_set_tx_hold(struct snd_soc_component *comp, in wcd934x_codec_set_tx_hold() argument
5089 snd_soc_component_update_bits(comp, WCD934X_ANA_AMIC2, in wcd934x_codec_set_tx_hold()
5094 snd_soc_component_update_bits(comp, WCD934X_ANA_AMIC4, in wcd934x_codec_set_tx_hold()
5105 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in wcd934x_codec_enable_adc() local
5109 wcd934x_codec_set_tx_hold(comp, w->reg, true); in wcd934x_codec_enable_adc()
5783 static int wcd934x_codec_set_jack(struct snd_soc_component *comp, in wcd934x_codec_set_jack() argument
5786 struct wcd934x_codec *wcd = dev_get_drvdata(comp->dev); in wcd934x_codec_set_jack()