Lines Matching full:pipeline
158 int dsp_pipeline_init(struct dsp_pipeline *pipeline) in dsp_pipeline_init() argument
160 if (!pipeline) in dsp_pipeline_init()
163 INIT_LIST_HEAD(&pipeline->list); in dsp_pipeline_init()
168 static inline void _dsp_pipeline_destroy(struct dsp_pipeline *pipeline) in _dsp_pipeline_destroy() argument
172 list_for_each_entry_safe(entry, n, &pipeline->list, list) { in _dsp_pipeline_destroy()
175 dsp_hwec_disable(container_of(pipeline, struct dsp, in _dsp_pipeline_destroy()
176 pipeline)); in _dsp_pipeline_destroy()
183 void dsp_pipeline_destroy(struct dsp_pipeline *pipeline) in dsp_pipeline_destroy() argument
186 if (!pipeline) in dsp_pipeline_destroy()
189 _dsp_pipeline_destroy(pipeline); in dsp_pipeline_destroy()
192 int dsp_pipeline_build(struct dsp_pipeline *pipeline, const char *cfg) in dsp_pipeline_build() argument
200 if (!pipeline) in dsp_pipeline_build()
203 if (!list_empty(&pipeline->list)) in dsp_pipeline_build()
204 _dsp_pipeline_destroy(pipeline); in dsp_pipeline_build()
225 "entry to pipeline: %s (out of " in dsp_pipeline_build()
233 available as a pipeline module */ in dsp_pipeline_build()
234 dsp_hwec_enable(container_of(pipeline, in dsp_pipeline_build()
235 struct dsp, pipeline), args); in dsp_pipeline_build()
237 &pipeline->list); in dsp_pipeline_build()
242 list, &pipeline->list); in dsp_pipeline_build()
245 "to add entry to pipeline: " in dsp_pipeline_build()
263 if (!list_empty(&pipeline->list)) in dsp_pipeline_build()
264 pipeline->inuse = 1; in dsp_pipeline_build()
266 pipeline->inuse = 0; in dsp_pipeline_build()
272 void dsp_pipeline_process_tx(struct dsp_pipeline *pipeline, u8 *data, int len) in dsp_pipeline_process_tx() argument
276 if (!pipeline) in dsp_pipeline_process_tx()
279 list_for_each_entry(entry, &pipeline->list, list) in dsp_pipeline_process_tx()
284 void dsp_pipeline_process_rx(struct dsp_pipeline *pipeline, u8 *data, int len, in dsp_pipeline_process_rx() argument
289 if (!pipeline) in dsp_pipeline_process_rx()
292 list_for_each_entry_reverse(entry, &pipeline->list, list) in dsp_pipeline_process_rx()