• Home
  • Raw
  • Download

Lines Matching refs:comp

65 	struct snd_soc_component *comp;  member
252 ret = tplg->ops->vendor_load(tplg->comp, tplg->index, hdr); in soc_tplg_vendor_load()
274 return tplg->ops->widget_load(tplg->comp, tplg->index, w, in soc_tplg_widget_load()
286 return tplg->ops->widget_ready(tplg->comp, tplg->index, w, in soc_tplg_widget_ready()
298 return tplg->ops->dai_load(tplg->comp, tplg->index, dai_drv, in soc_tplg_dai_load()
309 return tplg->ops->link_load(tplg->comp, tplg->index, link, cfg); in soc_tplg_dai_link_load()
318 tplg->ops->complete(tplg->comp); in soc_tplg_complete()
349 struct snd_soc_component *comp = tplg->comp; in soc_tplg_add_kcontrol() local
351 return soc_tplg_add_dcontrol(comp->card->snd_card, in soc_tplg_add_kcontrol()
352 comp->dev, k, comp->name_prefix, comp, kcontrol); in soc_tplg_add_kcontrol()
356 static void remove_mixer(struct snd_soc_component *comp, in remove_mixer() argument
359 struct snd_card *card = comp->card->snd_card; in remove_mixer()
365 dobj->ops->control_unload(comp, dobj); in remove_mixer()
372 static void remove_enum(struct snd_soc_component *comp, in remove_enum() argument
375 struct snd_card *card = comp->card->snd_card; in remove_enum()
381 dobj->ops->control_unload(comp, dobj); in remove_enum()
388 static void remove_bytes(struct snd_soc_component *comp, in remove_bytes() argument
391 struct snd_card *card = comp->card->snd_card; in remove_bytes()
397 dobj->ops->control_unload(comp, dobj); in remove_bytes()
404 static void remove_route(struct snd_soc_component *comp, in remove_route() argument
411 dobj->ops->dapm_route_unload(comp, dobj); in remove_route()
417 static void remove_widget(struct snd_soc_component *comp, in remove_widget() argument
420 struct snd_card *card = comp->card->snd_card; in remove_widget()
429 dobj->ops->widget_unload(comp, dobj); in remove_widget()
445 static void remove_dai(struct snd_soc_component *comp, in remove_dai() argument
456 dobj->ops->dai_unload(comp, dobj); in remove_dai()
458 for_each_component_dais_safe(comp, dai, _dai) in remove_dai()
466 static void remove_link(struct snd_soc_component *comp, in remove_link() argument
476 dobj->ops->link_unload(comp, dobj); in remove_link()
479 snd_soc_remove_pcm_runtime(comp->card, in remove_link()
480 snd_soc_get_pcm_runtime(comp->card, link)); in remove_link()
484 static void remove_backend_link(struct snd_soc_component *comp, in remove_backend_link() argument
491 dobj->ops->link_unload(comp, dobj); in remove_backend_link()
623 return tplg->ops->control_load(tplg->comp, tplg->index, k, in soc_tplg_init_kcontrol()
749 list_add(&sbe->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dbytes_create()
849 list_add(&sm->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dmixer_create()
1028 list_add(&se->dobj.list, &tplg->comp->dobj_list); in soc_tplg_denum_create()
1095 return tplg->ops->dapm_route_load(tplg->comp, tplg->index, in soc_tplg_add_route()
1104 struct snd_soc_dapm_context *dapm = &tplg->comp->dapm; in soc_tplg_dapm_graph_elems_load()
1176 list_add(&routes[i]->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dapm_graph_elems_load()
1420 struct snd_soc_dapm_context *dapm = &tplg->comp->dapm; in soc_tplg_dapm_widget_create()
1423 struct snd_soc_card *card = tplg->comp->card; in soc_tplg_dapm_widget_create()
1565 list_add(&widget->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dapm_widget_create()
1617 struct snd_soc_card *card = tplg->comp->card; in soc_tplg_dapm_complete()
1681 snd_soc_component_get_dapm(tplg->comp); in soc_tplg_dai_create()
1726 list_add(&dai_drv->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dai_create()
1729 dai = snd_soc_register_dai(tplg->comp, dai_drv, false); in soc_tplg_dai_create()
1836 ret = snd_soc_add_pcm_runtime(tplg->comp->card, link); in soc_tplg_fe_link_create()
1842 list_add(&link->dobj.list, &tplg->comp->dobj_list); in soc_tplg_fe_link_create()
2177 link = snd_soc_find_dai_link(tplg->comp->card, le32_to_cpu(cfg->id), in soc_tplg_link_config()
2206 list_add(&link->dobj.list, &tplg->comp->dobj_list); in soc_tplg_link_config()
2453 ret = tplg->ops->manifest(tplg->comp, tplg->index, _manifest); in soc_tplg_manifest_load()
2641 int snd_soc_tplg_component_load(struct snd_soc_component *comp, in snd_soc_tplg_component_load() argument
2654 if (!comp || !comp->dev || !comp->card || !fw) in snd_soc_tplg_component_load()
2660 tplg.dev = comp->dev; in snd_soc_tplg_component_load()
2661 tplg.comp = comp; in snd_soc_tplg_component_load()
2673 snd_soc_tplg_component_remove(comp); in snd_soc_tplg_component_load()
2680 int snd_soc_tplg_component_remove(struct snd_soc_component *comp) in snd_soc_tplg_component_remove() argument
2682 struct snd_card *card = comp->card->snd_card; in snd_soc_tplg_component_remove()
2691 list_for_each_entry_safe(dobj, next_dobj, &comp->dobj_list, in snd_soc_tplg_component_remove()
2696 remove_mixer(comp, dobj, pass); in snd_soc_tplg_component_remove()
2699 remove_enum(comp, dobj, pass); in snd_soc_tplg_component_remove()
2702 remove_bytes(comp, dobj, pass); in snd_soc_tplg_component_remove()
2705 remove_route(comp, dobj, pass); in snd_soc_tplg_component_remove()
2708 remove_widget(comp, dobj, pass); in snd_soc_tplg_component_remove()
2711 remove_dai(comp, dobj, pass); in snd_soc_tplg_component_remove()
2714 remove_link(comp, dobj, pass); in snd_soc_tplg_component_remove()
2721 remove_backend_link(comp, dobj, pass); in snd_soc_tplg_component_remove()
2724 dev_err(comp->dev, "ASoC: invalid component type %d for removal\n", in snd_soc_tplg_component_remove()
2734 return !list_empty(&comp->dobj_list); in snd_soc_tplg_component_remove()