Lines Matching refs:context
85 int equalizer_get_band_level(equalizer_context_t *context, int32_t band) in equalizer_get_band_level() argument
88 context->band_levels[band] * 100); in equalizer_get_band_level()
89 return context->band_levels[band] * 100; in equalizer_get_band_level()
92 int equalizer_set_band_level(equalizer_context_t *context, int32_t band, in equalizer_set_band_level() argument
101 context->band_levels[band] = level; in equalizer_set_band_level()
102 context->preset = PRESET_CUSTOM; in equalizer_set_band_level()
104 offload_eq_set_preset(&(context->offload_eq), PRESET_CUSTOM); in equalizer_set_band_level()
105 offload_eq_set_bands_level(&(context->offload_eq), in equalizer_set_band_level()
108 context->band_levels); in equalizer_set_band_level()
109 if (context->ctl) in equalizer_set_band_level()
110 offload_eq_send_params(context->ctl, &context->offload_eq, in equalizer_set_band_level()
116 int equalizer_get_center_frequency(equalizer_context_t *context __unused, int32_t band) in equalizer_get_center_frequency()
123 int equalizer_get_band_freq_range(equalizer_context_t *context __unused, int32_t band, in equalizer_get_band_freq_range()
132 int equalizer_get_band(equalizer_context_t *context __unused, uint32_t freq) in equalizer_get_band()
145 int equalizer_get_preset(equalizer_context_t *context) in equalizer_get_preset() argument
147 ALOGV("%s: preset: %d", __func__, context->preset); in equalizer_get_preset()
148 return context->preset; in equalizer_get_preset()
151 int equalizer_set_preset(equalizer_context_t *context, int preset) in equalizer_set_preset() argument
156 context->preset = preset; in equalizer_set_preset()
158 context->band_levels[i] = in equalizer_set_preset()
161 offload_eq_set_preset(&(context->offload_eq), preset); in equalizer_set_preset()
162 offload_eq_set_bands_level(&(context->offload_eq), in equalizer_set_preset()
165 context->band_levels); in equalizer_set_preset()
166 if(context->ctl) in equalizer_set_preset()
167 offload_eq_send_params(context->ctl, &context->offload_eq, in equalizer_set_preset()
173 const char * equalizer_get_preset_name(equalizer_context_t *context __unused, in equalizer_get_preset_name()
184 int equalizer_get_num_presets(equalizer_context_t *context __unused) in equalizer_get_num_presets()
191 int equalizer_get_parameter(effect_context_t *context, effect_param_t *p, in equalizer_get_parameter() argument
194 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_get_parameter()
368 int equalizer_set_parameter(effect_context_t *context, effect_param_t *p, in equalizer_set_parameter() argument
371 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_set_parameter()
457 int equalizer_set_device(effect_context_t *context, uint32_t device) in equalizer_set_device() argument
460 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_set_device()
466 int equalizer_reset(effect_context_t *context) in equalizer_reset() argument
468 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_reset()
473 int equalizer_init(effect_context_t *context) in equalizer_init() argument
476 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_init()
478 context->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in equalizer_init()
479 context->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in equalizer_init()
480 context->config.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in equalizer_init()
481 context->config.inputCfg.samplingRate = 44100; in equalizer_init()
482 context->config.inputCfg.bufferProvider.getBuffer = NULL; in equalizer_init()
483 context->config.inputCfg.bufferProvider.releaseBuffer = NULL; in equalizer_init()
484 context->config.inputCfg.bufferProvider.cookie = NULL; in equalizer_init()
485 context->config.inputCfg.mask = EFFECT_CONFIG_ALL; in equalizer_init()
486 context->config.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in equalizer_init()
487 context->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in equalizer_init()
488 context->config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in equalizer_init()
489 context->config.outputCfg.samplingRate = 44100; in equalizer_init()
490 context->config.outputCfg.bufferProvider.getBuffer = NULL; in equalizer_init()
491 context->config.outputCfg.bufferProvider.releaseBuffer = NULL; in equalizer_init()
492 context->config.outputCfg.bufferProvider.cookie = NULL; in equalizer_init()
493 context->config.outputCfg.mask = EFFECT_CONFIG_ALL; in equalizer_init()
495 set_config(context, &context->config); in equalizer_init()
503 int equalizer_enable(effect_context_t *context) in equalizer_enable() argument
505 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_enable()
519 int equalizer_disable(effect_context_t *context) in equalizer_disable() argument
521 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_disable()
533 int equalizer_start(effect_context_t *context, output_context_t *output) in equalizer_start() argument
535 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_start()
547 int equalizer_stop(effect_context_t *context, output_context_t *output __unused) in equalizer_stop() argument
549 equalizer_context_t *eq_ctxt = (equalizer_context_t *)context; in equalizer_stop()