Lines Matching full:graph
22 struct q6apm_graph *graph[APM_PORT_MAX]; member
150 rc = q6apm_graph_stop(dai_data->graph[dai->id]); in q6apm_lpass_dai_shutdown()
156 if (dai_data->graph[dai->id]) { in q6apm_lpass_dai_shutdown()
157 q6apm_graph_close(dai_data->graph[dai->id]); in q6apm_lpass_dai_shutdown()
158 dai_data->graph[dai->id] = NULL; in q6apm_lpass_dai_shutdown()
166 struct q6apm_graph *graph; in q6apm_lpass_dai_prepare() local
171 q6apm_graph_stop(dai_data->graph[dai->id]); in q6apm_lpass_dai_prepare()
175 q6apm_graph_close(dai_data->graph[dai->id]); in q6apm_lpass_dai_prepare()
176 dai_data->graph[dai->id] = NULL; in q6apm_lpass_dai_prepare()
181 * It is recommend to load DSP with source graph first and then sink in q6apm_lpass_dai_prepare()
182 * graph, so sequence for playback and capture will be different in q6apm_lpass_dai_prepare()
185 graph = q6apm_graph_open(dai->dev, NULL, dai->dev, graph_id); in q6apm_lpass_dai_prepare()
186 if (IS_ERR(graph)) { in q6apm_lpass_dai_prepare()
187 dev_err(dai->dev, "Failed to open graph (%d)\n", graph_id); in q6apm_lpass_dai_prepare()
188 rc = PTR_ERR(graph); in q6apm_lpass_dai_prepare()
191 dai_data->graph[graph_id] = graph; in q6apm_lpass_dai_prepare()
195 rc = q6apm_graph_media_format_pcm(dai_data->graph[dai->id], cfg); in q6apm_lpass_dai_prepare()
201 rc = q6apm_graph_prepare(dai_data->graph[dai->id]); in q6apm_lpass_dai_prepare()
203 dev_err(dai->dev, "Failed to prepare Graph %d\n", rc); in q6apm_lpass_dai_prepare()
207 rc = q6apm_graph_start(dai_data->graph[dai->id]); in q6apm_lpass_dai_prepare()
216 q6apm_graph_close(dai_data->graph[dai->id]); in q6apm_lpass_dai_prepare()
217 dai_data->graph[dai->id] = NULL; in q6apm_lpass_dai_prepare()
224 struct q6apm_graph *graph; in q6apm_lpass_dai_startup() local
228 graph = q6apm_graph_open(dai->dev, NULL, dai->dev, graph_id); in q6apm_lpass_dai_startup()
229 if (IS_ERR(graph)) { in q6apm_lpass_dai_startup()
230 dev_err(dai->dev, "Failed to open graph (%d)\n", graph_id); in q6apm_lpass_dai_startup()
231 return PTR_ERR(graph); in q6apm_lpass_dai_startup()
233 dai_data->graph[graph_id] = graph; in q6apm_lpass_dai_startup()