Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio: remove all redundant list init's #5655

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ranj063
Copy link
Collaborator

@ranj063 ranj063 commented Apr 7, 2022

comp_new() for both IPC3 and IPC4 initializes the source/sink buffer
lists already. So, remove the redundant init from the component create
callbacks.

Signed-off-by: Ranjani Sridharan [email protected]

comp_new() for both IPC3 and IPC4 initializes the source/sink buffer
lists already. So, remove the redundant init from the component create
callbacks.

Signed-off-by: Ranjani Sridharan <[email protected]>
@dbaluta
Copy link
Collaborator

dbaluta commented Apr 7, 2022

oh man, that should have been caught by coverity.

@lgirdwood
Copy link
Member

@kkarask will rerun CI again as the logs are timing out for 2 failed tests.

@lgirdwood
Copy link
Member

SOFCI TEST

@lgirdwood
Copy link
Member

@kkarask @wszypelt fwiw, looks like we have some test failures but the logs wont display. See https://sof-ci.01.org/sof-pr-viewer/#/build/PR5655/build9042903

@kkarask
Copy link

kkarask commented Apr 8, 2022

@lgirdwood Yes, we have noticed that. In order to collect logs for IPC4 tests there is a need to change test code and adjust it to internal services. Work in progress.

@lgirdwood
Copy link
Member

@kkarask ok, thanks - pls ping us when it's back working and we ca rerun this one (and any others)

@sys-pt1s
Copy link

Can one of the admins verify this patch?

@lgirdwood
Copy link
Member

SOFCI TEST

@lgirdwood
Copy link
Member

@wszypelt the CI result is still not loading the logs for failed tests. Can you check ? Thanks !

@lgirdwood
Copy link
Member

@ranj063 ping

@@ -183,9 +183,6 @@ static struct comp_dev *create_host(struct comp_dev *parent_dev, struct copier_d
if (!dev)
return NULL;

list_init(&dev->bsource_list);
list_init(&dev->bsink_list);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this one and the one below are correct? create_host() and create_dai() call drv->ops.create() manually and .create() now doesn't initialise lists, so we initialise them here. create_host() and create_dai() are indeed called from a .new() method but that's creating a different device object.

@kv2019i kv2019i marked this pull request as draft December 16, 2022 11:53
@kv2019i
Copy link
Collaborator

kv2019i commented Dec 16, 2022

No activity in a long time, converting as draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants