Lines Matching refs:component

258 	struct snd_soc_component *component;  member
638 static bool is_amic_enabled(struct snd_soc_component *component, u8 decimator) in is_amic_enabled() argument
644 if (snd_soc_component_read(component, adc_mux_reg) & SWR_MIC) { in is_amic_enabled()
646 adc_n = snd_soc_component_read_field(component, adc_reg, in is_amic_enabled()
660 struct snd_soc_component *component; in tx_macro_tx_hpf_corner_freq_callback() local
667 component = tx->component; in tx_macro_tx_hpf_corner_freq_callback()
673 if (is_amic_enabled(component, hpf_work->decimator)) { in tx_macro_tx_hpf_corner_freq_callback()
674 snd_soc_component_write_field(component, in tx_macro_tx_hpf_corner_freq_callback()
678 snd_soc_component_update_bits(component, hpf_gate_reg, in tx_macro_tx_hpf_corner_freq_callback()
682 snd_soc_component_update_bits(component, hpf_gate_reg, in tx_macro_tx_hpf_corner_freq_callback()
687 snd_soc_component_write_field(component, dec_cfg_reg, in tx_macro_tx_hpf_corner_freq_callback()
690 snd_soc_component_write_field(component, hpf_gate_reg, in tx_macro_tx_hpf_corner_freq_callback()
694 snd_soc_component_write_field(component, hpf_gate_reg, in tx_macro_tx_hpf_corner_freq_callback()
702 struct snd_soc_component *component; in tx_macro_mute_update_callback() local
710 component = tx->component; in tx_macro_mute_update_callback()
713 snd_soc_component_write_field(component, CDC_TXn_TX_PATH_CTL(decimator), in tx_macro_mute_update_callback()
720 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tx_macro_mclk_event() local
721 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_mclk_event()
741 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm); in tx_macro_put_dec_enum() local
746 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_put_dec_enum()
778 dev_err(component->dev, "Error in configuration!!\n"); in tx_macro_put_dec_enum()
784 snd_soc_component_write_field(component, mic_sel_reg, in tx_macro_put_dec_enum()
787 snd_soc_component_write_field(component, mic_sel_reg, in tx_macro_put_dec_enum()
790 snd_soc_component_write_field(component, mic_sel_reg, in tx_macro_put_dec_enum()
794 snd_soc_component_write_field(component, dmic_clk_reg, in tx_macro_put_dec_enum()
807 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm); in tx_macro_tx_mixer_get() local
811 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_tx_mixer_get()
825 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm); in tx_macro_tx_mixer_put() local
831 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_tx_mixer_put()
856 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tx_macro_enable_dec() local
864 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_enable_dec()
875 if (snd_soc_component_read(component, adc_mux_reg) & SWR_MIC) { in tx_macro_enable_dec()
877 adc_n = snd_soc_component_read(component, adc_reg) & in tx_macro_enable_dec()
883 snd_soc_component_write_field(component, dmic_clk_reg, in tx_macro_enable_dec()
888 snd_soc_component_write_field(component, dec_cfg_reg, in tx_macro_enable_dec()
892 snd_soc_component_write_field(component, tx_vol_ctl_reg, in tx_macro_enable_dec()
896 snd_soc_component_write_field(component, tx_vol_ctl_reg, in tx_macro_enable_dec()
898 if (!is_amic_enabled(component, decimator)) { in tx_macro_enable_dec()
899 snd_soc_component_update_bits(component, hpf_gate_reg, 0x01, 0x00); in tx_macro_enable_dec()
903 hpf_cut_off_freq = snd_soc_component_read_field(component, dec_cfg_reg, in tx_macro_enable_dec()
910 snd_soc_component_write_field(component, dec_cfg_reg, in tx_macro_enable_dec()
914 if (is_amic_enabled(component, decimator)) { in tx_macro_enable_dec()
926 snd_soc_component_update_bits(component, hpf_gate_reg, in tx_macro_enable_dec()
930 if (!is_amic_enabled(component, decimator)) in tx_macro_enable_dec()
931 snd_soc_component_update_bits(component, hpf_gate_reg, in tx_macro_enable_dec()
935 snd_soc_component_update_bits(component, hpf_gate_reg, in tx_macro_enable_dec()
946 snd_soc_component_write(component, tx_gain_ctl_reg, in tx_macro_enable_dec()
947 snd_soc_component_read(component, in tx_macro_enable_dec()
950 snd_soc_component_update_bits(component, dec_cfg_reg, in tx_macro_enable_dec()
958 snd_soc_component_write_field(component, tx_vol_ctl_reg, in tx_macro_enable_dec()
964 component, dec_cfg_reg, in tx_macro_enable_dec()
967 if (is_amic_enabled(component, decimator)) in tx_macro_enable_dec()
968 snd_soc_component_update_bits(component, in tx_macro_enable_dec()
974 snd_soc_component_update_bits(component, in tx_macro_enable_dec()
985 snd_soc_component_update_bits(component, hpf_gate_reg, in tx_macro_enable_dec()
994 snd_soc_component_write_field(component, tx_vol_ctl_reg, in tx_macro_enable_dec()
996 snd_soc_component_write_field(component, dec_cfg_reg, in tx_macro_enable_dec()
998 snd_soc_component_write_field(component, tx_vol_ctl_reg, in tx_macro_enable_dec()
1001 snd_soc_component_write_field(component, dec_cfg_reg, in tx_macro_enable_dec()
1003 snd_soc_component_write_field(component, in tx_macro_enable_dec()
1017 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in tx_macro_dec_mode_get() local
1018 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_dec_mode_get()
1030 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in tx_macro_dec_mode_put() local
1034 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_dec_mode_put()
1047 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in tx_macro_get_bcs() local
1048 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_get_bcs()
1058 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in tx_macro_set_bcs() local
1060 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_set_bcs()
1071 struct snd_soc_component *component = dai->component; in tx_macro_hw_params() local
1075 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_hw_params()
1101 dev_err(component->dev, "%s: Invalid TX sample rate: %d\n", in tx_macro_hw_params()
1107 snd_soc_component_update_bits(component, CDC_TXn_TX_PATH_CTL(decimator), in tx_macro_hw_params()
1117 struct snd_soc_component *component = dai->component; in tx_macro_get_channel_map() local
1118 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_get_channel_map()
1135 struct snd_soc_component *component = dai->component; in tx_macro_digital_mute() local
1136 struct tx_macro *tx = snd_soc_component_get_drvdata(component); in tx_macro_digital_mute()
1146 snd_soc_component_write_field(component, in tx_macro_digital_mute()
1150 snd_soc_component_update_bits(component, in tx_macro_digital_mute()
1846 tx->component = comp; in tx_macro_component_probe()