Lines Matching refs:context

46 int bassboost_get_strength(bassboost_context_t *context)  in bassboost_get_strength()  argument
48 ALOGV("%s: strength: %d", __func__, context->strength); in bassboost_get_strength()
49 return context->strength; in bassboost_get_strength()
52 int bassboost_set_strength(bassboost_context_t *context, uint32_t strength) in bassboost_set_strength() argument
55 context->strength = strength; in bassboost_set_strength()
57 offload_bassboost_set_strength(&(context->offload_bass), strength); in bassboost_set_strength()
58 if (context->ctl) in bassboost_set_strength()
59 offload_bassboost_send_params(context->ctl, &context->offload_bass, in bassboost_set_strength()
65 int bassboost_get_parameter(effect_context_t *context, effect_param_t *p, in bassboost_get_parameter() argument
68 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_get_parameter()
118 int bassboost_set_parameter(effect_context_t *context, effect_param_t *p, in bassboost_set_parameter() argument
121 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_set_parameter()
146 int bassboost_set_device(effect_context_t *context, uint32_t device) in bassboost_set_device() argument
148 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_set_device()
183 int bassboost_reset(effect_context_t *context) in bassboost_reset() argument
185 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_reset()
190 int bassboost_init(effect_context_t *context) in bassboost_init() argument
192 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_init()
195 context->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in bassboost_init()
196 context->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in bassboost_init()
197 context->config.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in bassboost_init()
198 context->config.inputCfg.samplingRate = 44100; in bassboost_init()
199 context->config.inputCfg.bufferProvider.getBuffer = NULL; in bassboost_init()
200 context->config.inputCfg.bufferProvider.releaseBuffer = NULL; in bassboost_init()
201 context->config.inputCfg.bufferProvider.cookie = NULL; in bassboost_init()
202 context->config.inputCfg.mask = EFFECT_CONFIG_ALL; in bassboost_init()
203 context->config.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in bassboost_init()
204 context->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in bassboost_init()
205 context->config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in bassboost_init()
206 context->config.outputCfg.samplingRate = 44100; in bassboost_init()
207 context->config.outputCfg.bufferProvider.getBuffer = NULL; in bassboost_init()
208 context->config.outputCfg.bufferProvider.releaseBuffer = NULL; in bassboost_init()
209 context->config.outputCfg.bufferProvider.cookie = NULL; in bassboost_init()
210 context->config.outputCfg.mask = EFFECT_CONFIG_ALL; in bassboost_init()
212 set_config(context, &context->config); in bassboost_init()
220 int bassboost_enable(effect_context_t *context) in bassboost_enable() argument
222 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_enable()
238 int bassboost_disable(effect_context_t *context) in bassboost_disable() argument
240 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_disable()
253 int bassboost_start(effect_context_t *context, output_context_t *output) in bassboost_start() argument
255 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_start()
268 int bassboost_stop(effect_context_t *context, output_context_t *output __unused) in bassboost_stop() argument
270 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_stop()