Lines Matching refs:eq

254 void offload_eq_set_device(struct eq_params *eq, uint32_t device)  in offload_eq_set_device()  argument
257 eq->device = device; in offload_eq_set_device()
260 void offload_eq_set_enable_flag(struct eq_params *eq, bool enable) in offload_eq_set_enable_flag() argument
263 eq->enable_flag = enable; in offload_eq_set_enable_flag()
266 int offload_eq_get_enable_flag(struct eq_params *eq) in offload_eq_get_enable_flag() argument
269 return eq->enable_flag; in offload_eq_get_enable_flag()
272 void offload_eq_set_preset(struct eq_params *eq, int preset) in offload_eq_set_preset() argument
275 eq->config.preset_id = preset; in offload_eq_set_preset()
276 eq->config.eq_pregain = Q27_UNITY; in offload_eq_set_preset()
279 void offload_eq_set_bands_level(struct eq_params *eq, int num_bands, in offload_eq_set_bands_level() argument
285 eq->config.num_bands = num_bands; in offload_eq_set_bands_level()
287 eq->per_band_cfg[i].band_idx = i; in offload_eq_set_bands_level()
288 eq->per_band_cfg[i].filter_type = EQ_BAND_BOOST; in offload_eq_set_bands_level()
289 eq->per_band_cfg[i].freq_millihertz = band_freq_list[i] * 1000; in offload_eq_set_bands_level()
290 eq->per_band_cfg[i].gain_millibels = band_gain_list[i] * 100; in offload_eq_set_bands_level()
291 eq->per_band_cfg[i].quality_factor = Q8_UNITY; in offload_eq_set_bands_level()
295 int offload_eq_send_params(struct mixer_ctl *ctl, struct eq_params *eq, in offload_eq_send_params() argument
303 if (eq->config.preset_id < -1 ) { in offload_eq_send_params()
308 *p_param_values++ = eq->device; in offload_eq_send_params()
315 *p_param_values++ = eq->enable_flag; in offload_eq_send_params()
323 *p_param_values++ = eq->config.eq_pregain; in offload_eq_send_params()
325 map_eq_opensl_preset_2_offload_preset[eq->config.preset_id]; in offload_eq_send_params()
334 eq->config.num_bands * EQ_CONFIG_PER_BAND_PARAM_LEN; in offload_eq_send_params()
335 *p_param_values++ = eq->config.eq_pregain; in offload_eq_send_params()
337 *p_param_values++ = eq->config.num_bands; in offload_eq_send_params()
338 for (i=0; i<eq->config.num_bands; i++) { in offload_eq_send_params()
339 *p_param_values++ = eq->per_band_cfg[i].band_idx; in offload_eq_send_params()
340 *p_param_values++ = eq->per_band_cfg[i].filter_type; in offload_eq_send_params()
341 *p_param_values++ = eq->per_band_cfg[i].freq_millihertz; in offload_eq_send_params()
342 *p_param_values++ = eq->per_band_cfg[i].gain_millibels; in offload_eq_send_params()
343 *p_param_values++ = eq->per_band_cfg[i].quality_factor; in offload_eq_send_params()