• Home
  • Raw
  • Download

Lines Matching refs:plugin

97 		       struct plugin *plugin)  in parse_ports()  argument
123 p = ARRAY_APPEND_ZERO(&plugin->ports); in parse_ports()
134 p = ARRAY_APPEND_ZERO(&plugin->ports); in parse_ports()
146 struct plugin *p) in parse_plugin_section()
172 struct plugin *plugin; in fill_flow_info() local
175 struct plugin **pplugin; in fill_flow_info()
178 FOR_ARRAY_ELEMENT(&ini->plugins, i, plugin) { in fill_flow_info()
179 FOR_ARRAY_ELEMENT(&plugin->ports, j, port) { in fill_flow_info()
192 *pplugin = plugin; in fill_flow_info()
200 struct plugin *plugin, in add_audio_port() argument
205 p = ARRAY_APPEND_ZERO(&plugin->ports); in add_audio_port()
214 struct plugin *plugin, in fill_swap_lr_plugin() argument
220 plugin->title = "swap_lr"; in fill_swap_lr_plugin()
221 plugin->library = "builtin"; in fill_swap_lr_plugin()
222 plugin->label = "swap_lr"; in fill_swap_lr_plugin()
223 plugin->purpose = "playback"; in fill_swap_lr_plugin()
224 plugin->disable_expr = cras_expr_expression_parse("swap_lr_disabled"); in fill_swap_lr_plugin()
226 add_audio_port(ini, plugin, input_flowid_0, PORT_INPUT); in fill_swap_lr_plugin()
227 add_audio_port(ini, plugin, input_flowid_1, PORT_INPUT); in fill_swap_lr_plugin()
228 add_audio_port(ini, plugin, output_flowid_0, PORT_OUTPUT); in fill_swap_lr_plugin()
229 add_audio_port(ini, plugin, output_flowid_1, PORT_OUTPUT); in fill_swap_lr_plugin()
248 struct plugin *find_first_playback_sink_plugin(struct ini *ini) in find_first_playback_sink_plugin()
251 struct plugin *plugin; in find_first_playback_sink_plugin() local
253 FOR_ARRAY_ELEMENT(&ini->plugins, i, plugin) { in find_first_playback_sink_plugin()
254 if (strcmp(plugin->library, "builtin") != 0) in find_first_playback_sink_plugin()
256 if (strcmp(plugin->label, "sink") != 0) in find_first_playback_sink_plugin()
258 if (!plugin->purpose || in find_first_playback_sink_plugin()
259 strcmp(plugin->purpose, "playback") != 0) in find_first_playback_sink_plugin()
261 return plugin; in find_first_playback_sink_plugin()
272 struct plugin *swap_lr, *sink; in insert_swap_lr_plugin()
324 struct plugin *source, *sink; in create_dummy_ini()
372 struct plugin *plugin; in cras_dsp_ini_create() local
392 plugin = ARRAY_APPEND_ZERO(&ini->plugins); in cras_dsp_ini_create()
393 if (parse_plugin_section(ini, sec_name, plugin) < 0) in cras_dsp_ini_create()
415 struct plugin *p; in cras_dsp_ini_free()
452 static const char *plugin_title(struct plugin *plugin) in plugin_title() argument
454 if (plugin == NULL) in plugin_title()
456 return plugin->title; in plugin_title()
462 struct plugin *plugin; in cras_dsp_ini_dump() local
470 FOR_ARRAY_ELEMENT(&ini->plugins, i, plugin) { in cras_dsp_ini_dump()
471 dumpf(d, "[plugin %d: %s]\n", i, plugin->title); in cras_dsp_ini_dump()
472 dumpf(d, "library=%s\n", plugin->library); in cras_dsp_ini_dump()
473 dumpf(d, "label=%s\n", plugin->label); in cras_dsp_ini_dump()
474 dumpf(d, "purpose=%s\n", plugin->purpose); in cras_dsp_ini_dump()
475 dumpf(d, "disable=%p\n", plugin->disable_expr); in cras_dsp_ini_dump()
476 FOR_ARRAY_ELEMENT(&plugin->ports, j, port) { in cras_dsp_ini_dump()