Skip to content

Commit 12ae283

Browse files
committed
WIP: audio: pipeline: disable pipeline position registers
Disable the code to set up pipeline position registers using the sof_get() singleton instance. This design is not feasible when pipelnes are running in user-space and an alternative implementation is needed. This is not required in initial LL user testing as position reporting via pipeline register is not used in all configurations. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 090096d commit 12ae283

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/audio/pipeline/pipeline-graph.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,28 @@ struct pipeline *pipeline_new(struct k_heap *heap, uint32_t pipeline_id, uint32_
138138
p->pipeline_id = pipeline_id;
139139
p->status = COMP_STATE_INIT;
140140
p->trigger.cmd = COMP_TRIGGER_NO_ACTION;
141+
142+
#ifdef CONFIG_SOF_USERSPACE_LL
143+
LOG_WRN("pipeline trace settings cannot be copied");
144+
#else
141145
ret = memcpy_s(&p->tctx, sizeof(struct tr_ctx), &pipe_tr,
142146
sizeof(struct tr_ctx));
143147
if (ret < 0) {
144148
pipe_err(p, "failed to copy trace settings");
145149
goto free;
146150
}
151+
#endif
147152

153+
#ifdef CONFIG_SOF_USERSPACE_LL
154+
LOG_WRN("pipeline position reporting not available");
155+
#else
148156
ret = pipeline_posn_offset_get(&p->posn_offset);
149157
if (ret < 0) {
150158
pipe_err(p, "pipeline_posn_offset_get failed %d",
151159
ret);
152160
goto free;
153161
}
162+
#endif
154163

155164
/* just for retrieving valid ipc_msg header */
156165
ipc_build_stream_posn(&posn, SOF_IPC_STREAM_TRIG_XRUN, p->comp_id);

0 commit comments

Comments
 (0)