Home
last modified time | relevance | path

Searched refs:graph_id (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/sound/soc/qcom/qdsp6/
H A Dq6apm-lpass-dais.c161 int graph_id = dai->id; in q6apm_lpass_dai_prepare() local
179 graph = q6apm_graph_open(dai->dev, NULL, dai->dev, graph_id); in q6apm_lpass_dai_prepare()
181 dev_err(dai->dev, "Failed to open graph (%d)\n", graph_id); in q6apm_lpass_dai_prepare()
185 dai_data->graph[graph_id] = graph; in q6apm_lpass_dai_prepare()
219 int graph_id = dai->id; in q6apm_lpass_dai_startup() local
222 graph = q6apm_graph_open(dai->dev, NULL, dai->dev, graph_id); in q6apm_lpass_dai_startup()
224 dev_err(dai->dev, "Failed to open graph (%d)\n", graph_id); in q6apm_lpass_dai_startup()
227 dai_data->graph[graph_id] = graph; in q6apm_lpass_dai_startup()
H A Dtopology.c19 u32 graph_id; /* Graph ID */ member
28 uint32_t graph_id, in audioreach_tplg_alloc_graph_info() argument
35 info = idr_find(&apm->graph_info_idr, graph_id); in audioreach_tplg_alloc_graph_info()
51 ret = idr_alloc_u32(&apm->graph_info_idr, info, &graph_id, graph_id, GFP_KERNEL); in audioreach_tplg_alloc_graph_info()
55 dev_err(apm->dev, "Failed to allocate Graph ID (%x)\n", graph_id); in audioreach_tplg_alloc_graph_info()
60 info->id = graph_id; in audioreach_tplg_alloc_graph_info()
313 int graph_id, sub_graph_id, tkn_count = 0; in audioreach_parse_sg_tokens() local
334 graph_id = le32_to_cpu(sg_elem->value); in audioreach_parse_sg_tokens()
335 info = audioreach_tplg_alloc_graph_info(apm, graph_id, &found); in audioreach_parse_sg_tokens()
797 scontrol->graph_id = le32_to_cpu(w_elem->value); in audioreach_widget_load_mixer()
[all …]
H A Dq6apm.c40 static struct audioreach_graph *q6apm_get_audioreach_graph(struct q6apm *apm, uint32_t graph_id) in q6apm_get_audioreach_graph() argument
47 graph = idr_find(&apm->graph_idr, graph_id); in q6apm_get_audioreach_graph()
55 info = idr_find(&apm->graph_info_idr, graph_id); in q6apm_get_audioreach_graph()
66 graph->id = graph_id; in q6apm_get_audioreach_graph()
77 id = idr_alloc(&apm->graph_idr, graph, graph_id, graph_id + 1, GFP_KERNEL); in q6apm_get_audioreach_graph()
79 dev_err(apm->dev, "Unable to allocate graph id (%d)\n", graph_id); in q6apm_get_audioreach_graph()
606 void *priv, int graph_id) in q6apm_graph_open() argument
613 ar_graph = q6apm_get_audioreach_graph(apm, graph_id); in q6apm_graph_open()
615 dev_err(dev, "No graph found with id %d\n", graph_id); in q6apm_graph_open()
H A Dq6apm-dai.c339 int graph_id, ret; in q6apm_dai_open() local
341 graph_id = cpu_dai->driver->id; in q6apm_dai_open()
355 prtd->graph = q6apm_graph_open(dev, (q6apm_cb)event_handler, prtd, graph_id); in q6apm_dai_open()
487 int graph_id; in q6apm_dai_compr_open() local
489 graph_id = cpu_dai->driver->id; in q6apm_dai_compr_open()
499 prtd->graph = q6apm_graph_open(dev, (q6apm_cb)event_handler_compr, prtd, graph_id); in q6apm_dai_compr_open()
H A Dq6apm.h114 void *priv, int graph_id);