Skip to content

Commit 7317b18

Browse files
committed
WIP: audio: pipeline: do not disable irqs if schedule in user-space
pipeline_schedule_triggered() cannot use irq_local_disable() and irq_local_enable() when running in user-space. Comment out this for now as, but this needs a better solution for multicore scenarios. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 48d8ea9 commit 7317b18

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/audio/pipeline/pipeline-schedule.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ void pipeline_schedule_triggered(struct pipeline_walk_context *ctx,
286286
struct pipeline_data *ppl_data = ctx->comp_data;
287287
struct list_item *tlist;
288288
struct pipeline *p;
289+
290+
#ifndef CONFIG_SOF_USERSPACE_LL
289291
uint32_t flags;
290292

291293
/*
@@ -294,6 +296,7 @@ void pipeline_schedule_triggered(struct pipeline_walk_context *ctx,
294296
* immediately before all pipelines achieved a consistent state.
295297
*/
296298
irq_local_disable(flags);
299+
#endif
297300

298301
switch (cmd) {
299302
case COMP_TRIGGER_PAUSE:
@@ -349,8 +352,9 @@ void pipeline_schedule_triggered(struct pipeline_walk_context *ctx,
349352
p->xrun_bytes = 1;
350353
}
351354
}
352-
355+
#ifndef CONFIG_SOF_USERSPACE_LL
353356
irq_local_enable(flags);
357+
#endif
354358
}
355359

356360
int pipeline_comp_ll_task_init(struct pipeline *p)

0 commit comments

Comments
 (0)