Lines Matching refs:context
46 int virtualizer_get_strength(virtualizer_context_t *context) in virtualizer_get_strength() argument
48 ALOGV("%s: strength: %d", __func__, context->strength); in virtualizer_get_strength()
49 return context->strength; in virtualizer_get_strength()
52 int virtualizer_set_strength(virtualizer_context_t *context, uint32_t strength) in virtualizer_set_strength() argument
55 context->strength = strength; in virtualizer_set_strength()
57 offload_virtualizer_set_strength(&(context->offload_virt), strength); in virtualizer_set_strength()
58 if (context->ctl) in virtualizer_set_strength()
59 offload_virtualizer_send_params(context->ctl, &context->offload_virt, in virtualizer_set_strength()
65 int virtualizer_get_parameter(effect_context_t *context, effect_param_t *p, in virtualizer_get_parameter() argument
68 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_get_parameter()
118 int virtualizer_set_parameter(effect_context_t *context, effect_param_t *p, in virtualizer_set_parameter() argument
121 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_set_parameter()
146 int virtualizer_set_device(effect_context_t *context, uint32_t device) in virtualizer_set_device() argument
148 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_set_device()
183 int virtualizer_reset(effect_context_t *context) in virtualizer_reset() argument
185 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_reset()
190 int virtualizer_init(effect_context_t *context) in virtualizer_init() argument
193 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_init()
195 context->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in virtualizer_init()
196 context->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in virtualizer_init()
197 context->config.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in virtualizer_init()
198 context->config.inputCfg.samplingRate = 44100; in virtualizer_init()
199 context->config.inputCfg.bufferProvider.getBuffer = NULL; in virtualizer_init()
200 context->config.inputCfg.bufferProvider.releaseBuffer = NULL; in virtualizer_init()
201 context->config.inputCfg.bufferProvider.cookie = NULL; in virtualizer_init()
202 context->config.inputCfg.mask = EFFECT_CONFIG_ALL; in virtualizer_init()
203 context->config.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in virtualizer_init()
204 context->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in virtualizer_init()
205 context->config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in virtualizer_init()
206 context->config.outputCfg.samplingRate = 44100; in virtualizer_init()
207 context->config.outputCfg.bufferProvider.getBuffer = NULL; in virtualizer_init()
208 context->config.outputCfg.bufferProvider.releaseBuffer = NULL; in virtualizer_init()
209 context->config.outputCfg.bufferProvider.cookie = NULL; in virtualizer_init()
210 context->config.outputCfg.mask = EFFECT_CONFIG_ALL; in virtualizer_init()
212 set_config(context, &context->config); in virtualizer_init()
220 int virtualizer_enable(effect_context_t *context) in virtualizer_enable() argument
222 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_enable()
238 int virtualizer_disable(effect_context_t *context) in virtualizer_disable() argument
240 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_disable()
253 int virtualizer_start(effect_context_t *context, output_context_t *output) in virtualizer_start() argument
255 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_start()
267 int virtualizer_stop(effect_context_t *context, output_context_t *output __unused) in virtualizer_stop() argument
269 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_stop()