Lines Matching refs:out_ctxt
111 output_context_t *out_ctxt = node_to_item(node, in get_output() local
114 if (out_ctxt->handle == output) in get_output()
115 return out_ctxt; in get_output()
161 output_context_t *out_ctxt = node_to_item(out_node, in effects_enabled() local
165 list_for_each(fx_node, &out_ctxt->effects_list) { in effects_enabled()
187 output_context_t * out_ctxt = NULL; in offload_effects_bundle_hal_start_output() local
201 out_ctxt = (output_context_t *) in offload_effects_bundle_hal_start_output()
203 out_ctxt->handle = output; in offload_effects_bundle_hal_start_output()
204 out_ctxt->pcm_device_id = pcm_id; in offload_effects_bundle_hal_start_output()
208 "%s %d", "Audio Effects Config", out_ctxt->pcm_device_id); in offload_effects_bundle_hal_start_output()
209 out_ctxt->mixer = mixer_open(MIXER_CARD); in offload_effects_bundle_hal_start_output()
210 if (!out_ctxt->mixer) { in offload_effects_bundle_hal_start_output()
212 out_ctxt->ctl = NULL; in offload_effects_bundle_hal_start_output()
214 free(out_ctxt); in offload_effects_bundle_hal_start_output()
217 out_ctxt->ctl = mixer_get_ctl_by_name(out_ctxt->mixer, mixer_string); in offload_effects_bundle_hal_start_output()
218 if (!out_ctxt->ctl) { in offload_effects_bundle_hal_start_output()
220 mixer_close(out_ctxt->mixer); in offload_effects_bundle_hal_start_output()
221 out_ctxt->mixer = NULL; in offload_effects_bundle_hal_start_output()
223 free(out_ctxt); in offload_effects_bundle_hal_start_output()
228 list_init(&out_ctxt->effects_list); in offload_effects_bundle_hal_start_output()
236 fx_ctxt->ops.start(fx_ctxt, out_ctxt); in offload_effects_bundle_hal_start_output()
237 list_add_tail(&out_ctxt->effects_list, &fx_ctxt->output_node); in offload_effects_bundle_hal_start_output()
240 list_add_tail(&active_outputs_list, &out_ctxt->outputs_list_node); in offload_effects_bundle_hal_start_output()
252 output_context_t *out_ctxt; in offload_effects_bundle_hal_stop_output() local
261 out_ctxt = get_output(output); in offload_effects_bundle_hal_stop_output()
262 if (out_ctxt == NULL) { in offload_effects_bundle_hal_stop_output()
268 if (out_ctxt->mixer) in offload_effects_bundle_hal_stop_output()
269 mixer_close(out_ctxt->mixer); in offload_effects_bundle_hal_stop_output()
271 list_for_each(fx_node, &out_ctxt->effects_list) { in offload_effects_bundle_hal_stop_output()
276 fx_ctxt->ops.stop(fx_ctxt, out_ctxt); in offload_effects_bundle_hal_stop_output()
279 list_remove(&out_ctxt->outputs_list_node); in offload_effects_bundle_hal_stop_output()
281 free(out_ctxt); in offload_effects_bundle_hal_stop_output()
443 output_context_t *out_ctxt = get_output(ioId); in effect_lib_create() local
444 if (out_ctxt != NULL) in effect_lib_create()
445 add_effect_to_output(out_ctxt, context); in effect_lib_create()
468 output_context_t *out_ctxt = get_output(context->out_handle); in effect_lib_release() local
469 if (out_ctxt != NULL) in effect_lib_release()
470 remove_effect_from_output(out_ctxt, context); in effect_lib_release()
687 output_context_t *out_ctxt; in effect_command() local
707 out_ctxt = get_output(context->out_handle); in effect_command()
708 if (out_ctxt != NULL) in effect_command()
709 remove_effect_from_output(out_ctxt, context); in effect_command()
712 out_ctxt = get_output(context->out_handle); in effect_command()
713 if (out_ctxt != NULL) in effect_command()
714 add_effect_to_output(out_ctxt, context); in effect_command()