-
Notifications
You must be signed in to change notification settings - Fork 140
!fixup ASoC: SOF: add delay function support for ipc4 driver #4050
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
!fixup ASoC: SOF: add delay function support for ipc4 driver #4050
Conversation
jsarha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Hope to have this merged soon to help me to merge #3953 (it does not work without it).
| if (node_id == SOF_IPC4_INVALID_NODE_ID) | ||
| node_index = SOF_IPC4_NODE_INDEX(host_copier->data.gtw_cfg.node_id); | ||
| if (host_copier->data.gtw_cfg.node_id == SOF_IPC4_INVALID_NODE_ID) | ||
| return -EINVAL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be better to swap these to be easier to follow:
if (host_copier->data.gtw_cfg.node_id == SOF_IPC4_INVALID_NODE_ID)
return -EINVAL;
node_index = SOF_IPC4_NODE_INDEX(host_copier->data.gtw_cfg.node_id);There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ujfalusi I did it first in this way, but I found it resulted to great change in diff, so do it this way. Let's do it as your suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RanderWang, thank you!
It should use full part of node_id to compare to SOF_IPC4_INVALID_NODE_ID, Also rename local variable node_id to node_index to make it more clear Signed-off-by: Rander Wang <rander.wang@intel.com>
00251d2
be83301 to
00251d2
Compare
| if (node_id == SOF_IPC4_INVALID_NODE_ID) | ||
| node_index = SOF_IPC4_NODE_INDEX(host_copier->data.gtw_cfg.node_id); | ||
| if (host_copier->data.gtw_cfg.node_id == SOF_IPC4_INVALID_NODE_ID) | ||
| return -EINVAL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RanderWang, thank you!
jsarha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better than before. Please merge soon!
It should use full part of node_id to compare to SOF_IPC4_INVALID_NODE_ID, Also rename local variable node_id to node_index to make it more clear
fix #4048