Lines Matching refs:eq

256 void offload_eq_set_device(struct eq_params *eq, uint32_t device)  in offload_eq_set_device()  argument
259 eq->device = device; in offload_eq_set_device()
262 void offload_eq_set_enable_flag(struct eq_params *eq, bool enable) in offload_eq_set_enable_flag() argument
265 eq->enable_flag = enable; in offload_eq_set_enable_flag()
268 int offload_eq_get_enable_flag(struct eq_params *eq) in offload_eq_get_enable_flag() argument
271 return eq->enable_flag; in offload_eq_get_enable_flag()
274 void offload_eq_set_preset(struct eq_params *eq, int preset) in offload_eq_set_preset() argument
277 eq->config.preset_id = preset; in offload_eq_set_preset()
278 eq->config.eq_pregain = Q27_UNITY; in offload_eq_set_preset()
281 void offload_eq_set_bands_level(struct eq_params *eq, int num_bands, in offload_eq_set_bands_level() argument
287 eq->config.num_bands = num_bands; in offload_eq_set_bands_level()
289 eq->per_band_cfg[i].band_idx = i; in offload_eq_set_bands_level()
290 eq->per_band_cfg[i].filter_type = EQ_BAND_BOOST; in offload_eq_set_bands_level()
291 eq->per_band_cfg[i].freq_millihertz = band_freq_list[i] * 1000; in offload_eq_set_bands_level()
292 eq->per_band_cfg[i].gain_millibels = band_gain_list[i] * 100; in offload_eq_set_bands_level()
293 eq->per_band_cfg[i].quality_factor = Q8_UNITY; in offload_eq_set_bands_level()
297 int offload_eq_send_params(struct mixer_ctl *ctl, struct eq_params *eq, in offload_eq_send_params() argument
305 if (eq->config.preset_id < -1 ) { in offload_eq_send_params()
310 *p_param_values++ = eq->device; in offload_eq_send_params()
317 *p_param_values++ = eq->enable_flag; in offload_eq_send_params()
325 *p_param_values++ = eq->config.eq_pregain; in offload_eq_send_params()
327 map_eq_opensl_preset_2_offload_preset[eq->config.preset_id]; in offload_eq_send_params()
336 eq->config.num_bands * EQ_CONFIG_PER_BAND_PARAM_LEN; in offload_eq_send_params()
337 *p_param_values++ = eq->config.eq_pregain; in offload_eq_send_params()
339 *p_param_values++ = eq->config.num_bands; in offload_eq_send_params()
340 for (i=0; i<eq->config.num_bands; i++) { in offload_eq_send_params()
341 *p_param_values++ = eq->per_band_cfg[i].band_idx; in offload_eq_send_params()
342 *p_param_values++ = eq->per_band_cfg[i].filter_type; in offload_eq_send_params()
343 *p_param_values++ = eq->per_band_cfg[i].freq_millihertz; in offload_eq_send_params()
344 *p_param_values++ = eq->per_band_cfg[i].gain_millibels; in offload_eq_send_params()
345 *p_param_values++ = eq->per_band_cfg[i].quality_factor; in offload_eq_send_params()