Skip to content

Commit

Permalink
....
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinszkudlinski committed Nov 18, 2024
1 parent 9921428 commit 876b3f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/audio/smart_amp/smart_amp.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ static int smart_amp_copy(struct comp_dev *dev)
if (sad->feedback_buf) {
struct comp_buffer *feedback_buf = sad->feedback_buf;

if (comp_get_state(feedback_buf->source) == dev->state) {
if (comp_get_state(feedback_buf->sourceX) == dev->state) {
/* feedback */
avail_feedback_frames =
audio_stream_get_avail_frames(&feedback_buf->stream);
Expand Down Expand Up @@ -746,7 +746,7 @@ static int smart_amp_prepare(struct comp_dev *dev)
struct comp_buffer *source_buffer;

comp_dev_for_each_producer(dev, source_buffer) {
if (source_buffer->source->ipc_config.type == SOF_COMP_DEMUX)
if (source_buffer->sourceX->ipc_config.type == SOF_COMP_DEMUX)
sad->feedback_buf = source_buffer;
else
sad->source_buf = source_buffer;
Expand Down
16 changes: 8 additions & 8 deletions test/cmocka/src/audio/pipeline/pipeline_connect_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ static void test_audio_pipeline_complete_connect_upstream_ignore_source
*/
list_item_append(&result.sched_comp->bsource_list,
&test_data->b1->Xsink_list);
test_data->b1->sink = result.sched_comp;
test_data->b1->source = test_data->second;
test_data->b1->sinkX = result.sched_comp;
test_data->b1->sourceX = test_data->second;
list_item_append(&test_data->b1->Xsource_list,
&test_data->second->bsink_list);
list_item_append(&test_data->second->bsource_list,
Expand Down Expand Up @@ -158,10 +158,10 @@ static void test_audio_pipeline_complete_connect_downstream_full(void **state)
comp->pipeline_id = PIPELINE_ID_SAME;
list_item_append(&result.sched_comp->bsink_list,
&test_data->b1->Xsource_list);
test_data->b1->source = result.sched_comp;
test_data->b1->sourceX = result.sched_comp;
list_item_append(&test_data->b1->Xsource_list,
&result.sched_comp->bsink_list);
test_data->b1->sink = test_data->second;
test_data->b1->sinkX = test_data->second;
list_item_append(&test_data->b1->Xsink_list,
&test_data->second->bsource_list);

Expand Down Expand Up @@ -189,8 +189,8 @@ static void test_audio_pipeline_complete_connect_upstream_full(void **state)
comp->pipeline_id = PIPELINE_ID_SAME;
list_item_append(&result.sched_comp->bsource_list,
&test_data->b1->Xsink_list);
test_data->b1->sink = test_data->first;
test_data->b1->source = test_data->second;
test_data->b1->sinkX = test_data->first;
test_data->b1->sourceX = test_data->second;

/*Testing component*/
pipeline_complete(&result, test_data->first, test_data->second);
Expand All @@ -214,8 +214,8 @@ static void test_audio_pipeline_complete_connect_upstream_other_pipeline
comp->pipeline_id = PIPELINE_ID_DIFFERENT;
list_item_append(&result.sched_comp->bsource_list,
&test_data->b1->Xsink_list);
test_data->b1->sink = test_data->first;
test_data->b1->source = test_data->second;
test_data->b1->sinkX = test_data->first;
test_data->b1->sourceX = test_data->second;
list_item_append(&test_data->second->bsource_list,
&test_data->b1->Xsource_list);

Expand Down

0 comments on commit 876b3f1

Please sign in to comment.