Lines Matching refs:eq

253 void offload_eq_set_device(struct eq_params *eq, uint32_t device)  in offload_eq_set_device()  argument
256 eq->device = device; in offload_eq_set_device()
259 void offload_eq_set_enable_flag(struct eq_params *eq, bool enable) in offload_eq_set_enable_flag() argument
262 eq->enable_flag = enable; in offload_eq_set_enable_flag()
265 int offload_eq_get_enable_flag(struct eq_params *eq) in offload_eq_get_enable_flag() argument
268 return eq->enable_flag; in offload_eq_get_enable_flag()
271 void offload_eq_set_preset(struct eq_params *eq, int preset) in offload_eq_set_preset() argument
274 eq->config.preset_id = preset; in offload_eq_set_preset()
275 eq->config.eq_pregain = Q27_UNITY; in offload_eq_set_preset()
278 void offload_eq_set_bands_level(struct eq_params *eq, int num_bands, in offload_eq_set_bands_level() argument
284 eq->config.num_bands = num_bands; in offload_eq_set_bands_level()
286 eq->per_band_cfg[i].band_idx = i; in offload_eq_set_bands_level()
287 eq->per_band_cfg[i].filter_type = EQ_BAND_BOOST; in offload_eq_set_bands_level()
288 eq->per_band_cfg[i].freq_millihertz = band_freq_list[i] * 1000; in offload_eq_set_bands_level()
289 eq->per_band_cfg[i].gain_millibels = band_gain_list[i] * 100; in offload_eq_set_bands_level()
290 eq->per_band_cfg[i].quality_factor = Q8_UNITY; in offload_eq_set_bands_level()
294 int offload_eq_send_params(struct mixer_ctl *ctl, struct eq_params *eq, in offload_eq_send_params() argument
302 if (eq->config.preset_id < -1 ) { in offload_eq_send_params()
307 *p_param_values++ = eq->device; in offload_eq_send_params()
314 *p_param_values++ = eq->enable_flag; in offload_eq_send_params()
322 *p_param_values++ = eq->config.eq_pregain; in offload_eq_send_params()
324 map_eq_opensl_preset_2_offload_preset[eq->config.preset_id]; in offload_eq_send_params()
333 eq->config.num_bands * EQ_CONFIG_PER_BAND_PARAM_LEN; in offload_eq_send_params()
334 *p_param_values++ = eq->config.eq_pregain; in offload_eq_send_params()
336 *p_param_values++ = eq->config.num_bands; in offload_eq_send_params()
337 for (i=0; i<eq->config.num_bands; i++) { in offload_eq_send_params()
338 *p_param_values++ = eq->per_band_cfg[i].band_idx; in offload_eq_send_params()
339 *p_param_values++ = eq->per_band_cfg[i].filter_type; in offload_eq_send_params()
340 *p_param_values++ = eq->per_band_cfg[i].freq_millihertz; in offload_eq_send_params()
341 *p_param_values++ = eq->per_band_cfg[i].gain_millibels; in offload_eq_send_params()
342 *p_param_values++ = eq->per_band_cfg[i].quality_factor; in offload_eq_send_params()