From 28078eb4cbaa8c869f170e7a26b2c7894bb28d4f Mon Sep 17 00:00:00 2001 From: Tobiasz Dryjanski <tobiaszx.dryjanski@intel.com> Date: Fri, 15 Sep 2023 20:11:48 +0200 Subject: [PATCH] probe: remove buffer_acquire from probe.c remove buffer ops from probe.c this is a continuation of changes from commit 4a03699 Signed-off-by: Tobiasz Dryjanski <tobiaszx.dryjanski@intel.com> --- src/probe/probe.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/probe/probe.c b/src/probe/probe.c index af37401529a4..933cea584f6d 100644 --- a/src/probe/probe.c +++ b/src/probe/probe.c @@ -1066,7 +1066,6 @@ static bool probe_purpose_needs_ext_dma(uint32_t purpose) static struct comp_buffer *ipc4_get_buffer(struct ipc_comp_dev *dev, probe_point_id_t probe_point) { struct comp_buffer *buf; - struct comp_buffer *buf_c; struct list_item *sink_list, *source_list; unsigned int queue_id; @@ -1074,9 +1073,7 @@ static struct comp_buffer *ipc4_get_buffer(struct ipc_comp_dev *dev, probe_point case PROBE_TYPE_INPUT: list_for_item(source_list, &dev->cd->bsource_list) { buf = container_of(source_list, struct comp_buffer, sink_list); - buf_c = buffer_acquire(buf); - queue_id = IPC4_SRC_QUEUE_ID(buf_c->id); - buffer_release(buf_c); + queue_id = IPC4_SRC_QUEUE_ID(buf->id); if (queue_id == probe_point.fields.index) return buf; @@ -1085,9 +1082,7 @@ static struct comp_buffer *ipc4_get_buffer(struct ipc_comp_dev *dev, probe_point case PROBE_TYPE_OUTPUT: list_for_item(sink_list, &dev->cd->bsink_list) { buf = container_of(sink_list, struct comp_buffer, source_list); - buf_c = buffer_acquire(buf); - queue_id = IPC4_SINK_QUEUE_ID(buf_c->id); - buffer_release(buf_c); + queue_id = IPC4_SINK_QUEUE_ID(buf->id); if (queue_id == probe_point.fields.index) return buf;