Skip to content

Commit c029d49

Browse files
committed
HACK: audio: collection of feature limitations to run LL in user
This is a set of temporary changes to audio code to remove calls to privileged interfaces that are not mandatory to run simple audio tests. These need proper solutions to be able to run all use-cases in user LL version. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 12ae283 commit c029d49

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/audio/pipeline/pipeline-graph.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ struct comp_dev *pipeline_get_dai_comp(uint32_t pipeline_id, int dir)
512512
*/
513513
struct comp_dev *pipeline_get_dai_comp_latency(uint32_t pipeline_id, uint32_t *latency)
514514
{
515+
#ifdef CONFIG_SOF_USERSPACE_LL
516+
LOG_WRN("latency cannot be computed in user-space pipelines!");
517+
*latency = 0;
518+
#else
515519
struct ipc_comp_dev *ipc_sink;
516520
struct ipc_comp_dev *ipc_source;
517521
struct comp_dev *source;
@@ -579,7 +583,7 @@ struct comp_dev *pipeline_get_dai_comp_latency(uint32_t pipeline_id, uint32_t *l
579583
/* Get a next sink component */
580584
ipc_sink = ipc_get_ppl_sink_comp(ipc, source->pipeline->pipeline_id);
581585
}
582-
586+
#endif
583587
return NULL;
584588
}
585589
EXPORT_SYMBOL(pipeline_get_dai_comp_latency);

zephyr/include/sof/lib/cpu.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ static inline bool cpu_is_primary(int id)
5555

5656
static inline bool cpu_is_me(int id)
5757
{
58+
#ifdef CONFIG_SOF_USERSPACE_LL
59+
return true;
60+
#else
5861
return id == cpu_get_id();
62+
#endif
5963
}
6064

6165
int cpu_enable_core(int id);

0 commit comments

Comments
 (0)