Home
last modified time | relevance | path

Searched refs:decimator (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/sound/soc/codecs/
Dlpass-tx-macro.c244 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()
[all …]
Dlpass-va-macro.c727 unsigned int decimator; in va_macro_enable_dec() local
734 decimator = w->shift; in va_macro_enable_dec()
737 VA_MACRO_TX_PATH_OFFSET * decimator; in va_macro_enable_dec()
739 VA_MACRO_TX_PATH_OFFSET * decimator; in va_macro_enable_dec()
741 VA_MACRO_TX_PATH_OFFSET * decimator; in va_macro_enable_dec()
743 VA_MACRO_TX_PATH_OFFSET * decimator; in va_macro_enable_dec()
749 va->dec_mode[decimator] << CDC_VA_ADC_MODE_SHIFT); in va_macro_enable_dec()
841 u32 decimator, sample_rate; in va_macro_hw_params() local
875 for_each_set_bit(decimator, &va->active_ch_mask[dai->id], in va_macro_hw_params()
878 VA_MACRO_TX_PATH_OFFSET * decimator; in va_macro_hw_params()
[all …]
Dwcd9335.c1798 int decimator = -1; in wcd9335_set_decimator_rate() local
1836 decimator = tx_port; in wcd9335_set_decimator_rate()
1839 decimator = ((tx_port == 9) ? 7 : 6); in wcd9335_set_decimator_rate()
1842 decimator = tx_mux_sel - 1; in wcd9335_set_decimator_rate()
1845 decimator = 5; in wcd9335_set_decimator_rate()
1848 if (decimator >= 0) { in wcd9335_set_decimator_rate()
1850 WCD9335_CDC_TX_PATH_CTL(decimator), in wcd9335_set_decimator_rate()
1859 decimator); in wcd9335_set_decimator_rate()
2718 unsigned int decimator; in wcd9335_codec_enable_dec() local
2750 ret = kstrtouint(dec, 10, &decimator); in wcd9335_codec_enable_dec()
[all …]
Dmsm8916-wcd-digital.c604 unsigned int decimator = w->shift + 1; in msm8916_wcd_digital_enable_dec() local
609 tx_vol_ctl_reg = LPASS_CDC_TX1_VOL_CTL_CFG + 32 * (decimator - 1); in msm8916_wcd_digital_enable_dec()
610 tx_mux_ctl_reg = LPASS_CDC_TX1_MUX_CTL + 32 * (decimator - 1); in msm8916_wcd_digital_enable_dec()
Dwcd934x.c1642 int decimator = -1; in wcd934x_set_decimator_rate() local
1686 decimator = tx_port; in wcd934x_set_decimator_rate()
1690 decimator = ((tx_port == 9) ? 7 : 6); in wcd934x_set_decimator_rate()
1694 decimator = tx_mux_sel - 1; in wcd934x_set_decimator_rate()
1698 decimator = 5; in wcd934x_set_decimator_rate()
1707 WCD934X_CDC_TX_PATH_CTL(decimator), in wcd934x_set_decimator_rate()
4975 unsigned int decimator; in wcd934x_codec_enable_dec() local
5007 ret = kstrtouint(dec, 10, &decimator); in wcd934x_codec_enable_dec()
5015 tx_vol_ctl_reg = WCD934X_CDC_TX0_TX_PATH_CTL + 16 * decimator; in wcd934x_codec_enable_dec()
5016 hpf_gate_reg = WCD934X_CDC_TX0_TX_PATH_SEC2 + 16 * decimator; in wcd934x_codec_enable_dec()
[all …]
/linux-6.1.9/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c57 u8 decimator; member
86 u32 decimator = max_odr / sensor->odr; in st_lsm6dsx_get_decimator_val() local
89 if (decimator > 1) in st_lsm6dsx_get_decimator_val()
90 decimator = round_down(decimator, 2); in st_lsm6dsx_get_decimator_val()
93 if (st_lsm6dsx_decimator_table[i].decimator == decimator) in st_lsm6dsx_get_decimator_val()
97 sensor->decimator = decimator; in st_lsm6dsx_get_decimator_val()
157 dec_reg = &hw->settings->decimator[sensor->id]; in st_lsm6dsx_update_decimators()
177 ts_dec_reg = &hw->settings->ts_settings.decimator; in st_lsm6dsx_update_decimators()
416 if (gyro_sip > 0 && !(sip % gyro_sensor->decimator)) { in st_lsm6dsx_read_fifo()
422 if (acc_sip > 0 && !(sip % acc_sensor->decimator)) { in st_lsm6dsx_read_fifo()
[all …]
Dst_lsm6dsx.h180 struct st_lsm6dsx_reg decimator; member
318 struct st_lsm6dsx_reg decimator[ST_LSM6DSX_MAX_ID]; member
362 u8 decimator; member
Dst_lsm6dsx_core.c314 .decimator = {
351 .decimator = {
480 .decimator = {
517 .decimator = {
658 .decimator = {
699 .decimator = {
932 .decimator = {
1141 .decimator = {