Lines Matching refs:comp

65 	struct snd_soc_component *comp;  member
295 if (tplg->comp && tplg->ops && tplg->ops->vendor_load) in soc_tplg_vendor_load_()
296 ret = tplg->ops->vendor_load(tplg->comp, hdr); in soc_tplg_vendor_load_()
327 if (tplg->comp && tplg->ops && tplg->ops->widget_load) in soc_tplg_widget_load()
328 return tplg->ops->widget_load(tplg->comp, w, tplg_w); in soc_tplg_widget_load()
337 if (tplg->comp && tplg->ops && tplg->ops->pcm_dai_load) in soc_tplg_pcm_dai_load()
338 return tplg->ops->pcm_dai_load(tplg->comp, pcm_dai, num_pcm_dai); in soc_tplg_pcm_dai_load()
346 if (tplg->comp && tplg->ops && tplg->ops->complete) in soc_tplg_complete()
347 tplg->ops->complete(tplg->comp); in soc_tplg_complete()
378 struct snd_soc_component *comp = tplg->comp; in soc_tplg_add_kcontrol() local
380 return soc_tplg_add_dcontrol(comp->card->snd_card, in soc_tplg_add_kcontrol()
381 comp->dev, k, NULL, comp, kcontrol); in soc_tplg_add_kcontrol()
385 static void remove_mixer(struct snd_soc_component *comp, in remove_mixer() argument
388 struct snd_card *card = comp->card->snd_card; in remove_mixer()
397 dobj->ops->control_unload(comp, dobj); in remove_mixer()
408 static void remove_enum(struct snd_soc_component *comp, in remove_enum() argument
411 struct snd_card *card = comp->card->snd_card; in remove_enum()
419 dobj->ops->control_unload(comp, dobj); in remove_enum()
431 static void remove_bytes(struct snd_soc_component *comp, in remove_bytes() argument
434 struct snd_card *card = comp->card->snd_card; in remove_bytes()
442 dobj->ops->control_unload(comp, dobj); in remove_bytes()
450 static void remove_widget(struct snd_soc_component *comp, in remove_widget() argument
453 struct snd_card *card = comp->card->snd_card; in remove_widget()
462 dobj->ops->widget_unload(comp, dobj); in remove_widget()
499 static void remove_pcm_dai(struct snd_soc_component *comp, in remove_pcm_dai() argument
506 dobj->ops->pcm_dai_unload(comp, dobj); in remove_pcm_dai()
617 if (tplg->comp && tplg->ops && tplg->ops->control_load) in soc_tplg_init_kcontrol()
618 return tplg->ops->control_load(tplg->comp, k, hdr); in soc_tplg_init_kcontrol()
750 list_add(&sbe->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dbytes_create()
848 list_add(&sm->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dmixer_create()
1016 list_add(&se->dobj.list, &tplg->comp->dobj_list); in soc_tplg_denum_create()
1072 struct snd_soc_dapm_context *dapm = &tplg->comp->dapm; in soc_tplg_dapm_graph_elems_load()
1373 struct snd_soc_dapm_context *dapm = &tplg->comp->dapm; in soc_tplg_dapm_widget_create()
1376 struct snd_soc_card *card = tplg->comp->card; in soc_tplg_dapm_widget_create()
1493 list_add(&widget->dobj.list, &tplg->comp->dobj_list); in soc_tplg_dapm_widget_create()
1527 struct snd_soc_card *card = tplg->comp->card; in soc_tplg_dapm_complete()
1578 dev_err(tplg->comp->dev, "ASoC: PCM DAI loading failed\n"); in soc_tplg_pcm_dai_elems_load()
1587 list_add(&dobj->list, &tplg->comp->dobj_list); in soc_tplg_pcm_dai_elems_load()
1606 if (tplg->comp && tplg->ops && tplg->ops->manifest) in soc_tplg_manifest_load()
1607 return tplg->ops->manifest(tplg->comp, manifest); in soc_tplg_manifest_load()
1756 int snd_soc_tplg_component_load(struct snd_soc_component *comp, in snd_soc_tplg_component_load() argument
1764 tplg.dev = comp->dev; in snd_soc_tplg_component_load()
1765 tplg.comp = comp; in snd_soc_tplg_component_load()
1813 int snd_soc_tplg_component_remove(struct snd_soc_component *comp, u32 index) in snd_soc_tplg_component_remove() argument
1822 list_for_each_entry_safe(dobj, next_dobj, &comp->dobj_list, in snd_soc_tplg_component_remove()
1832 remove_mixer(comp, dobj, pass); in snd_soc_tplg_component_remove()
1835 remove_enum(comp, dobj, pass); in snd_soc_tplg_component_remove()
1838 remove_bytes(comp, dobj, pass); in snd_soc_tplg_component_remove()
1841 remove_widget(comp, dobj, pass); in snd_soc_tplg_component_remove()
1846 remove_pcm_dai(comp, dobj, pass); in snd_soc_tplg_component_remove()
1849 dev_err(comp->dev, "ASoC: invalid component type %d for removal\n", in snd_soc_tplg_component_remove()
1858 return !list_empty(&comp->dobj_list); in snd_soc_tplg_component_remove()