Skip to content

Commit 2edba05

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 13c633a commit 2edba05

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
@@ -509,6 +509,7 @@ __cold int dai_common_new(struct dai_data *dd, struct comp_dev *dev,
509509

510510
#ifdef CONFIG_SOF_USERSPACE_LL
511511
dd->dai->lock = k_object_alloc(K_OBJ_MUTEX);
512+
comp_set_drvdata(dev, dd);
512513
#else
513514
dd->dai->lock = &dd->dai->lock_obj;
514515
#endif

0 commit comments

Comments
 (0)