Skip to content

Commit

Permalink
comments to not resolced struct comp_buffer, source_list);
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinszkudlinski committed Sep 13, 2024
1 parent c7ae2ea commit bebcf0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/audio/mux/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static int demux_trigger(struct processing_module *mod, int cmd)
*/
if (cmd == COMP_TRIGGER_PRE_START) {
list_for_item(li, &mod->dev->bsink_list) {
b = container_of(li, struct comp_buffer, source_list);
b = container_of(li, struct comp_buffer, source_list); //msz ?????
if (b->sink->pipeline != mod->dev->pipeline)
audio_stream_set_overrun(&b->stream, true);
}
Expand Down
9 changes: 3 additions & 6 deletions src/ipc/ipc-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,9 @@ int comp_verify_params(struct comp_dev *dev, uint32_t flag,
*/
if (list_is_empty(source_list) != list_is_empty(sink_list)) {
if (list_is_empty(sink_list))
buf = list_first_item(source_list,
struct comp_buffer,
sink_list);
buf = list_first_item(source_list, struct comp_buffer, sink_list); //msz
else
buf = list_first_item(sink_list, struct comp_buffer, source_list);
buf = list_first_item(sink_list, struct comp_buffer, source_list); //msz

/* update specific pcm parameter with buffer parameter if
* specific flag is set.
Expand Down Expand Up @@ -314,8 +312,7 @@ int ipc_comp_free(struct ipc *ipc, uint32_t comp_id)
}

list_for_item_safe(clist, tmp, &icd->cd->bsink_list) {
struct comp_buffer *buffer = container_of(clist, struct comp_buffer, source_list);

struct comp_buffer *buffer = container_of(clist, struct comp_buffer, source_list); //msz ???
buffer->source = NULL;
/* Also if it isn't shared - we are about to modify uncached data */
dcache_writeback_invalidate_region(uncache_to_cache(buffer),
Expand Down
2 changes: 1 addition & 1 deletion test/cmocka/src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static inline struct comp_buffer *create_test_sink(struct comp_dev *dev,

/* set bsink list */
if (dev)
list_item_append(&buffer->source_list, &dev->bsink_list);
list_item_append(&buffer->source_list, &dev->bsink_list); //msz

/* alloc sink and set default parameters */
buffer->sink = calloc(1, sizeof(struct comp_dev));
Expand Down

0 comments on commit bebcf0c

Please sign in to comment.