Lines Matching refs:fir_cfg
581 static void print_fir_config(const struct nhlt_pdm_ctrl_fir_cfg *fir_cfg) in print_fir_config() argument
586 val = fir_cfg->fir_config; in print_fir_config()
594 print_fir_control(fir_cfg->fir_control); in print_fir_config()
597 LOG_DBG("DC_OFFSET_LEFT = %08x", fir_cfg->dc_offset_left); in print_fir_config()
598 LOG_DBG("DC_OFFSET_RIGHT = %08x", fir_cfg->dc_offset_right); in print_fir_config()
599 LOG_DBG("OUT_GAIN_LEFT = %08x", fir_cfg->out_gain_left); in print_fir_config()
600 LOG_DBG("OUT_GAIN_RIGHT = %08x", fir_cfg->out_gain_right); in print_fir_config()
604 const struct nhlt_pdm_ctrl_fir_cfg *fir_cfg) in configure_fir() argument
608 print_fir_config(fir_cfg); in configure_fir()
611 val = fir_cfg->fir_config; in configure_fir()
614 val = fir_cfg->fir_control; in configure_fir()
623 dai_dmic_write(dmic, base + DC_OFFSET_LEFT, fir_cfg->dc_offset_left); in configure_fir()
624 dai_dmic_write(dmic, base + DC_OFFSET_RIGHT, fir_cfg->dc_offset_right); in configure_fir()
625 dai_dmic_write(dmic, base + OUT_GAIN_LEFT, fir_cfg->out_gain_left); in configure_fir()
626 dai_dmic_write(dmic, base + OUT_GAIN_RIGHT, fir_cfg->out_gain_right); in configure_fir()
628 dmic->gain_left = fir_cfg->out_gain_left; in configure_fir()
629 dmic->gain_right = fir_cfg->out_gain_right; in configure_fir()