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