Lines Matching refs:decimator
244 u32 decimator; member
250 u8 decimator; member
637 static bool is_amic_enabled(struct snd_soc_component *component, int decimator) in is_amic_enabled() argument
641 adc_mux_reg = CDC_TX_INP_MUX_ADC_MUXn_CFG1(decimator); in is_amic_enabled()
644 adc_reg = CDC_TX_INP_MUX_ADC_MUXn_CFG0(decimator); in is_amic_enabled()
669 dec_cfg_reg = CDC_TXn_TX_PATH_CFG0(hpf_work->decimator); in tx_macro_tx_hpf_corner_freq_callback()
670 hpf_gate_reg = CDC_TXn_TX_PATH_SEC2(hpf_work->decimator); in tx_macro_tx_hpf_corner_freq_callback()
672 if (is_amic_enabled(component, hpf_work->decimator)) { in tx_macro_tx_hpf_corner_freq_callback()
704 u8 decimator; in tx_macro_mute_update_callback() local
710 decimator = tx_mute_dwork->decimator; in tx_macro_mute_update_callback()
712 snd_soc_component_write_field(component, CDC_TXn_TX_PATH_CTL(decimator), in tx_macro_mute_update_callback()
848 unsigned int decimator; in tx_macro_enable_dec() local
857 decimator = w->shift; in tx_macro_enable_dec()
858 tx_vol_ctl_reg = CDC_TXn_TX_PATH_CTL(decimator); in tx_macro_enable_dec()
859 hpf_gate_reg = CDC_TXn_TX_PATH_SEC2(decimator); in tx_macro_enable_dec()
860 dec_cfg_reg = CDC_TXn_TX_PATH_CFG0(decimator); in tx_macro_enable_dec()
861 tx_gain_ctl_reg = CDC_TXn_TX_VOL_CTL(decimator); in tx_macro_enable_dec()
865 adc_mux_reg = CDC_TX_INP_MUX_ADC_MUXn_CFG1(decimator); in tx_macro_enable_dec()
867 adc_reg = CDC_TX_INP_MUX_ADC_MUXn_CFG0(decimator); in tx_macro_enable_dec()
881 tx->dec_mode[decimator]); in tx_macro_enable_dec()
889 if (!is_amic_enabled(component, decimator)) { in tx_macro_enable_dec()
897 tx->tx_hpf_work[decimator].hpf_cut_off_freq = in tx_macro_enable_dec()
905 if (is_amic_enabled(component, decimator)) { in tx_macro_enable_dec()
911 &tx->tx_mute_dwork[decimator].dwork, in tx_macro_enable_dec()
913 if (tx->tx_hpf_work[decimator].hpf_cut_off_freq != CF_MIN_3DB_150HZ) { in tx_macro_enable_dec()
915 &tx->tx_hpf_work[decimator].dwork, in tx_macro_enable_dec()
921 if (!is_amic_enabled(component, decimator)) in tx_macro_enable_dec()
948 tx->tx_hpf_work[decimator].hpf_cut_off_freq; in tx_macro_enable_dec()
952 &tx->tx_hpf_work[decimator].dwork)) { in tx_macro_enable_dec()
958 if (is_amic_enabled(component, decimator)) in tx_macro_enable_dec()
982 cancel_delayed_work_sync(&tx->tx_mute_dwork[decimator].dwork); in tx_macro_enable_dec()
1063 u32 decimator, sample_rate; in tx_macro_hw_params() local
1096 for_each_set_bit(decimator, &tx->active_ch_mask[dai->id], TX_MACRO_DEC_MAX) in tx_macro_hw_params()
1097 snd_soc_component_update_bits(component, CDC_TXn_TX_PATH_CTL(decimator), in tx_macro_hw_params()
1127 u16 decimator; in tx_macro_digital_mute() local
1133 decimator = tx->active_decimator[dai->id]; in tx_macro_digital_mute()
1137 CDC_TXn_TX_PATH_CTL(decimator), in tx_macro_digital_mute()
1141 CDC_TXn_TX_PATH_CTL(decimator), in tx_macro_digital_mute()
1682 tx->tx_hpf_work[i].decimator = i; in tx_macro_component_probe()
1689 tx->tx_mute_dwork[i].decimator = i; in tx_macro_component_probe()