Lines Matching refs:component

359 	struct snd_soc_component *component =  in msm8x16_wcd_codec_set_iir_gain()  local
369 value = snd_soc_component_read(component, reg); in msm8x16_wcd_codec_set_iir_gain()
370 snd_soc_component_write(component, reg, value); in msm8x16_wcd_codec_set_iir_gain()
378 static uint32_t get_iir_band_coeff(struct snd_soc_component *component, in get_iir_band_coeff() argument
385 snd_soc_component_write(component, in get_iir_band_coeff()
390 value |= snd_soc_component_read(component, in get_iir_band_coeff()
393 snd_soc_component_write(component, in get_iir_band_coeff()
398 value |= (snd_soc_component_read(component, in get_iir_band_coeff()
401 snd_soc_component_write(component, in get_iir_band_coeff()
406 value |= (snd_soc_component_read(component, in get_iir_band_coeff()
409 snd_soc_component_write(component, in get_iir_band_coeff()
415 value |= ((snd_soc_component_read(component, in get_iir_band_coeff()
426 struct snd_soc_component *component = in msm8x16_wcd_get_iir_band_audio_mixer() local
435 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in msm8x16_wcd_get_iir_band_audio_mixer()
436 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in msm8x16_wcd_get_iir_band_audio_mixer()
437 coeff[2] = get_iir_band_coeff(component, iir_idx, band_idx, 2); in msm8x16_wcd_get_iir_band_audio_mixer()
438 coeff[3] = get_iir_band_coeff(component, iir_idx, band_idx, 3); in msm8x16_wcd_get_iir_band_audio_mixer()
439 coeff[4] = get_iir_band_coeff(component, iir_idx, band_idx, 4); in msm8x16_wcd_get_iir_band_audio_mixer()
446 static void set_iir_band_coeff(struct snd_soc_component *component, in set_iir_band_coeff() argument
450 snd_soc_component_write(component, in set_iir_band_coeff()
454 snd_soc_component_write(component, in set_iir_band_coeff()
458 snd_soc_component_write(component, in set_iir_band_coeff()
463 snd_soc_component_write(component, in set_iir_band_coeff()
472 struct snd_soc_component *component = in msm8x16_wcd_put_iir_band_audio_mixer() local
485 snd_soc_component_write(component, in msm8x16_wcd_put_iir_band_audio_mixer()
489 set_iir_band_coeff(component, iir_idx, band_idx, coeff[0]); in msm8x16_wcd_put_iir_band_audio_mixer()
490 set_iir_band_coeff(component, iir_idx, band_idx, coeff[1]); in msm8x16_wcd_put_iir_band_audio_mixer()
491 set_iir_band_coeff(component, iir_idx, band_idx, coeff[2]); in msm8x16_wcd_put_iir_band_audio_mixer()
492 set_iir_band_coeff(component, iir_idx, band_idx, coeff[3]); in msm8x16_wcd_put_iir_band_audio_mixer()
493 set_iir_band_coeff(component, iir_idx, band_idx, coeff[4]); in msm8x16_wcd_put_iir_band_audio_mixer()
580 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in msm8916_wcd_digital_enable_interpolator() local
586 snd_soc_component_write(component, rx_gain_reg[w->shift], in msm8916_wcd_digital_enable_interpolator()
587 snd_soc_component_read(component, rx_gain_reg[w->shift])); in msm8916_wcd_digital_enable_interpolator()
590 snd_soc_component_update_bits(component, LPASS_CDC_CLK_RX_RESET_CTL, in msm8916_wcd_digital_enable_interpolator()
592 snd_soc_component_update_bits(component, LPASS_CDC_CLK_RX_RESET_CTL, in msm8916_wcd_digital_enable_interpolator()
603 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in msm8916_wcd_digital_enable_dec() local
615 snd_soc_component_update_bits(component, tx_vol_ctl_reg, in msm8916_wcd_digital_enable_dec()
618 dec_hpf_cut_of_freq = snd_soc_component_read(component, tx_mux_ctl_reg) & in msm8916_wcd_digital_enable_dec()
623 snd_soc_component_update_bits(component, tx_mux_ctl_reg, in msm8916_wcd_digital_enable_dec()
630 snd_soc_component_update_bits(component, tx_mux_ctl_reg, in msm8916_wcd_digital_enable_dec()
634 snd_soc_component_write(component, tx_gain_reg[w->shift], in msm8916_wcd_digital_enable_dec()
635 snd_soc_component_read(component, tx_gain_reg[w->shift])); in msm8916_wcd_digital_enable_dec()
636 snd_soc_component_update_bits(component, tx_vol_ctl_reg, in msm8916_wcd_digital_enable_dec()
640 snd_soc_component_update_bits(component, tx_vol_ctl_reg, in msm8916_wcd_digital_enable_dec()
643 snd_soc_component_update_bits(component, tx_mux_ctl_reg, in msm8916_wcd_digital_enable_dec()
648 snd_soc_component_update_bits(component, dec_reset_reg, 1 << w->shift, in msm8916_wcd_digital_enable_dec()
650 snd_soc_component_update_bits(component, dec_reset_reg, 1 << w->shift, 0x0); in msm8916_wcd_digital_enable_dec()
651 snd_soc_component_update_bits(component, tx_mux_ctl_reg, in msm8916_wcd_digital_enable_dec()
654 snd_soc_component_update_bits(component, tx_vol_ctl_reg, in msm8916_wcd_digital_enable_dec()
666 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in msm8916_wcd_digital_enable_dmic() local
673 dev_err(component->dev, "Invalid DMIC\n"); in msm8916_wcd_digital_enable_dmic()
678 dev_err(component->dev, "Invalid DMIC line on the component\n"); in msm8916_wcd_digital_enable_dmic()
684 snd_soc_component_update_bits(component, LPASS_CDC_CLK_DMIC_B1_CTL, in msm8916_wcd_digital_enable_dmic()
689 snd_soc_component_update_bits(component, LPASS_CDC_TX1_DMIC_CTL, in msm8916_wcd_digital_enable_dmic()
694 snd_soc_component_update_bits(component, LPASS_CDC_TX2_DMIC_CTL, in msm8916_wcd_digital_enable_dmic()
844 static int msm8916_wcd_digital_component_probe(struct snd_soc_component *component) in msm8916_wcd_digital_component_probe() argument
846 struct msm8916_wcd_digital_priv *priv = dev_get_drvdata(component->dev); in msm8916_wcd_digital_component_probe()
848 snd_soc_component_set_drvdata(component, priv); in msm8916_wcd_digital_component_probe()
853 static int msm8916_wcd_digital_component_set_sysclk(struct snd_soc_component *component, in msm8916_wcd_digital_component_set_sysclk() argument
857 struct msm8916_wcd_digital_priv *p = dev_get_drvdata(component->dev); in msm8916_wcd_digital_component_set_sysclk()
887 dev_err(dai->component->dev, "Invalid sampling rate %d\n", in msm8916_wcd_digital_hw_params()
894 snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_TX_I2S_CTL, in msm8916_wcd_digital_hw_params()
898 snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_RX_I2S_CTL, in msm8916_wcd_digital_hw_params()
907 snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_TX_I2S_CTL, in msm8916_wcd_digital_hw_params()
910 snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_RX_I2S_CTL, in msm8916_wcd_digital_hw_params()
916 snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_TX_I2S_CTL, in msm8916_wcd_digital_hw_params()
919 snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_RX_I2S_CTL, in msm8916_wcd_digital_hw_params()
1075 struct snd_soc_component *component = dai->component; in msm8916_wcd_digital_startup() local
1079 msm8916_wcd = snd_soc_component_get_drvdata(component); in msm8916_wcd_digital_startup()
1080 snd_soc_component_update_bits(component, LPASS_CDC_CLK_MCLK_CTL, in msm8916_wcd_digital_startup()
1083 snd_soc_component_update_bits(component, LPASS_CDC_CLK_PDM_CTL, in msm8916_wcd_digital_startup()
1090 snd_soc_component_update_bits(component, LPASS_CDC_TOP_CTL, in msm8916_wcd_digital_startup()
1095 snd_soc_component_update_bits(component, LPASS_CDC_TOP_CTL, in msm8916_wcd_digital_startup()
1100 dev_err(component->dev, "Invalid mclk rate %ld\n", mclk_rate); in msm8916_wcd_digital_startup()
1109 snd_soc_component_update_bits(dai->component, LPASS_CDC_CLK_PDM_CTL, in msm8916_wcd_digital_shutdown()