Lines Matching refs:ops
78 struct snd_soc_tplg_ops *ops; member
235 hdr->ops.get, hdr->ops.put, hdr->ops.info, index, in soc_bind_err()
244 name, hdr->ops.get, hdr->ops.put, hdr->ops.info, in soc_control_err()
254 if (tplg->ops && tplg->ops->vendor_load) in soc_tplg_vendor_load()
255 ret = tplg->ops->vendor_load(tplg->comp, tplg->index, hdr); in soc_tplg_vendor_load()
276 if (tplg->ops && tplg->ops->widget_load) in soc_tplg_widget_load()
277 return tplg->ops->widget_load(tplg->comp, tplg->index, w, in soc_tplg_widget_load()
288 if (tplg->ops && tplg->ops->widget_ready) in soc_tplg_widget_ready()
289 return tplg->ops->widget_ready(tplg->comp, tplg->index, w, in soc_tplg_widget_ready()
300 if (tplg->ops && tplg->ops->dai_load) in soc_tplg_dai_load()
301 return tplg->ops->dai_load(tplg->comp, tplg->index, dai_drv, in soc_tplg_dai_load()
311 if (tplg->ops && tplg->ops->link_load) in soc_tplg_dai_link_load()
312 return tplg->ops->link_load(tplg->comp, tplg->index, link, cfg); in soc_tplg_dai_link_load()
320 if (tplg->ops && tplg->ops->complete) in soc_tplg_complete()
321 tplg->ops->complete(tplg->comp); in soc_tplg_complete()
370 if (dobj->ops && dobj->ops->control_unload) in remove_mixer()
371 dobj->ops->control_unload(comp, dobj); in remove_mixer()
391 if (dobj->ops && dobj->ops->control_unload) in remove_enum()
392 dobj->ops->control_unload(comp, dobj); in remove_enum()
413 if (dobj->ops && dobj->ops->control_unload) in remove_bytes()
414 dobj->ops->control_unload(comp, dobj); in remove_bytes()
431 if (dobj->ops && dobj->ops->dapm_route_unload) in remove_route()
432 dobj->ops->dapm_route_unload(comp, dobj); in remove_route()
450 if (dobj->ops && dobj->ops->widget_unload) in remove_widget()
451 dobj->ops->widget_unload(comp, dobj); in remove_widget()
514 if (dobj->ops && dobj->ops->dai_unload) in remove_dai()
515 dobj->ops->dai_unload(comp, dobj); in remove_dai()
538 if (dobj->ops && dobj->ops->link_unload) in remove_link()
539 dobj->ops->link_unload(comp, dobj); in remove_link()
558 if (dobj->ops && dobj->ops->link_unload) in remove_backend_link()
559 dobj->ops->link_unload(comp, dobj); in remove_backend_link()
575 const struct snd_soc_tplg_kcontrol_ops *ops; in soc_tplg_kcontrol_bind_io() local
579 if (le32_to_cpu(hdr->ops.info) == SND_SOC_TPLG_CTL_BYTES in soc_tplg_kcontrol_bind_io()
626 ops = tplg->io_ops; in soc_tplg_kcontrol_bind_io()
630 if (k->put == NULL && ops[i].id == le32_to_cpu(hdr->ops.put)) in soc_tplg_kcontrol_bind_io()
631 k->put = ops[i].put; in soc_tplg_kcontrol_bind_io()
632 if (k->get == NULL && ops[i].id == le32_to_cpu(hdr->ops.get)) in soc_tplg_kcontrol_bind_io()
633 k->get = ops[i].get; in soc_tplg_kcontrol_bind_io()
634 if (k->info == NULL && ops[i].id == le32_to_cpu(hdr->ops.info)) in soc_tplg_kcontrol_bind_io()
635 k->info = ops[i].info; in soc_tplg_kcontrol_bind_io()
643 ops = io_ops; in soc_tplg_kcontrol_bind_io()
647 if (k->put == NULL && ops[i].id == le32_to_cpu(hdr->ops.put)) in soc_tplg_kcontrol_bind_io()
648 k->put = ops[i].put; in soc_tplg_kcontrol_bind_io()
649 if (k->get == NULL && ops[i].id == le32_to_cpu(hdr->ops.get)) in soc_tplg_kcontrol_bind_io()
650 k->get = ops[i].get; in soc_tplg_kcontrol_bind_io()
651 if (k->info == NULL && ops[i].id == le32_to_cpu(hdr->ops.info)) in soc_tplg_kcontrol_bind_io()
652 k->info = ops[i].info; in soc_tplg_kcontrol_bind_io()
690 if (tplg->ops && tplg->ops->control_load) in soc_tplg_init_kcontrol()
691 return tplg->ops->control_load(tplg->comp, tplg->index, k, in soc_tplg_init_kcontrol()
795 sbe->dobj.ops = tplg->ops; in soc_tplg_dbytes_create()
889 sm->dobj.ops = tplg->ops; in soc_tplg_dmixer_create()
1060 se->dobj.ops = tplg->ops; in soc_tplg_denum_create()
1063 switch (le32_to_cpu(ec->hdr.ops.info)) { in soc_tplg_denum_create()
1089 ec->hdr.ops.info, ec->hdr.name); in soc_tplg_denum_create()
1146 switch (le32_to_cpu(control_hdr->ops.info)) { in soc_tplg_kcontrol_elems_load()
1187 if (tplg->ops && tplg->ops->dapm_route_load) in soc_tplg_add_route()
1188 return tplg->ops->dapm_route_load(tplg->comp, tplg->index, in soc_tplg_add_route()
1273 routes[i]->dobj.ops = tplg->ops; in soc_tplg_dapm_graph_elems_load()
1452 switch (le32_to_cpu(ec->hdr.ops.info)) { in soc_tplg_dapm_widget_denum_create()
1474 ec->hdr.ops.info, ec->hdr.name); in soc_tplg_dapm_widget_denum_create()
1646 switch (le32_to_cpu(control_hdr->ops.info)) { in soc_tplg_dapm_widget_create()
1691 control_hdr->ops.get, control_hdr->ops.put, in soc_tplg_dapm_widget_create()
1692 le32_to_cpu(control_hdr->ops.info)); in soc_tplg_dapm_widget_create()
1715 widget->dobj.ops = tplg->ops; in soc_tplg_dapm_widget_create()
1875 dai_drv->dobj.ops = tplg->ops; in soc_tplg_dai_create()
1950 link->dobj.ops = tplg->ops; in soc_tplg_fe_link_create()
2365 link->dobj.ops = tplg->ops; in soc_tplg_link_config()
2614 if (tplg->ops && tplg->ops->manifest) in soc_tplg_manifest_load()
2615 ret = tplg->ops->manifest(tplg->comp, tplg->index, _manifest); in soc_tplg_manifest_load()
2809 struct snd_soc_tplg_ops *ops, const struct firmware *fw, u32 id) in snd_soc_tplg_component_load() argument
2823 tplg.ops = ops; in snd_soc_tplg_component_load()
2825 tplg.io_ops = ops->io_ops; in snd_soc_tplg_component_load()
2826 tplg.io_ops_count = ops->io_ops_count; in snd_soc_tplg_component_load()
2827 tplg.bytes_ext_ops = ops->bytes_ext_ops; in snd_soc_tplg_component_load()
2828 tplg.bytes_ext_ops_count = ops->bytes_ext_ops_count; in snd_soc_tplg_component_load()