Lines Matching refs:pipeline
159 int dsp_pipeline_init(struct dsp_pipeline *pipeline)
161 if (!pipeline)
164 INIT_LIST_HEAD(&pipeline->list);
169 static inline void _dsp_pipeline_destroy(struct dsp_pipeline *pipeline)
173 list_for_each_entry_safe(entry, n, &pipeline->list, list) {
176 dsp_hwec_disable(container_of(pipeline, struct dsp,
177 pipeline));
184 void dsp_pipeline_destroy(struct dsp_pipeline *pipeline)
187 if (!pipeline)
190 _dsp_pipeline_destroy(pipeline);
193 int dsp_pipeline_build(struct dsp_pipeline *pipeline, const char *cfg)
201 if (!pipeline)
204 if (!list_empty(&pipeline->list))
205 _dsp_pipeline_destroy(pipeline);
226 "entry to pipeline: %s (out of "
234 available as a pipeline module */
235 dsp_hwec_enable(container_of(pipeline,
236 struct dsp, pipeline), args);
238 &pipeline->list);
243 list, &pipeline->list);
246 "to add entry to pipeline: "
264 if (!list_empty(&pipeline->list))
265 pipeline->inuse = 1;
267 pipeline->inuse = 0;
273 void dsp_pipeline_process_tx(struct dsp_pipeline *pipeline, u8 *data, int len)
277 if (!pipeline)
280 list_for_each_entry(entry, &pipeline->list, list)
285 void dsp_pipeline_process_rx(struct dsp_pipeline *pipeline, u8 *data, int len,
290 if (!pipeline)
293 list_for_each_entry_reverse(entry, &pipeline->list, list)