Skip to content

Commit 1108761

Browse files
committed
audio: comp_buffer: do not call notifier interface in user-space
The notifier feature is not available when running in user-space, so disable the notify calls in comp_buffer_free() in these builds. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 23e3d3d commit 1108761

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/audio/buffers/comp_buffer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,14 @@ static void comp_buffer_free(struct sof_audio_buffer *audio_buffer)
153153

154154
buf_dbg(buffer, "buffer_free()");
155155

156+
#ifndef CONFIG_SOF_USERSPACE_LL
157+
/* TODO: to be replaced with direct function calls */
156158
notifier_event(buffer, NOTIFIER_ID_BUFFER_FREE,
157159
NOTIFIER_TARGET_CORE_LOCAL, &cb_data, sizeof(cb_data));
158160

159161
/* In case some listeners didn't unregister from buffer's callbacks */
160162
notifier_unregister_all(NULL, buffer);
163+
#endif
161164

162165
struct k_heap *heap = buffer->audio_buffer.heap;
163166

0 commit comments

Comments
 (0)