Skip to content

Commit

Permalink
probe: remove buffer_acquire from probe.c
Browse files Browse the repository at this point in the history
remove buffer ops from probe.c

this is a continuation of changes
from commit 4a03699

Signed-off-by: Tobiasz Dryjanski <[email protected]>
  • Loading branch information
tobonex committed Sep 18, 2023
1 parent 5676688 commit 28078eb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/probe/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,17 +1066,14 @@ 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;

switch (probe_point.fields.type) {
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;
Expand All @@ -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;
Expand Down

0 comments on commit 28078eb

Please sign in to comment.