Skip to content

Commit 1da868b

Browse files
committed
zephyr: test: userspace: add pipeline_two_components test
Add a new test to userspace_ll set that takes a step towards running full audio pipelines in user-space. The test creates a pipeline with two components (IPC4 host and DAI copiers), does pipeline prepare, one copy cycle in prepared state and tears down the pipeline. One user-space thread is created to manage the pipelines. This would be equivalent to user IPC handler thread. Another user-space thread is created for the LL scheduler. This test has some limitation, but is a useful test point to test resource allocations in pipeline, component and module adapter code. The code adds a reference test case where the same flow is fully run in kernel space. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 788dd94 commit 1da868b

2 files changed

Lines changed: 424 additions & 2 deletions

File tree

src/audio/dai-zephyr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ __cold int dai_common_new(struct dai_data *dd, struct comp_dev *dev,
529529

530530
#ifdef CONFIG_SOF_USERSPACE_LL
531531
dd->dai->lock = k_object_alloc(K_OBJ_MUTEX);
532+
comp_set_drvdata(dev, dd);
532533
#else
533534
dd->dai->lock = &dd->dai->lock_obj;
534535
#endif

0 commit comments

Comments
 (0)