-
Notifications
You must be signed in to change notification settings - Fork 140
ASoC: intel: sof_sdw: init all aggregated codecs #1962
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
Conversation
RanderWang
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.
Thanks!
plbossart
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.
The code looks fine @bardliao but I don't know how things worked before? Is this required now that we have the NO_AGGREGATION removed?
Yes, NO_AGGREGATION flag will hide the issue. |
yes, without aggregation we only need to init codec on current link for current BE DAI. |
|
|
||
| part_id = SDW_PART_ID(link->adr_d[i].adr); | ||
| codec_index = find_codec_info_part(part_id); | ||
| do { |
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.
Took me a while to figure out why we need to loop here. It looks like now with aggregation the loop over links in sof_card_dai_links_create() only calls create_sdw_dailink() for the first link in each group. That's why you now have to walk over all links, looking for others from the same group. Maybe you could add a comment about that for the next reader :-)
kv2019i
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.
@bardliao Functionality looks good, but I think some commentary is needed to keep the code maintainable.
|
@bardliao please add comments to explain that the loop is done once and group_id > 0 means aggregation. You and I know this, but others may not. |
kv2019i
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.
Still some iteration on code comments needed.
Init codecs which belong to the same group id on all links. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
|
Jenkins build stalled, CI errors are known or unrelated (GLK sof-logger error), merging. |
Init codecs which belong to the same group id on all links.
Signed-off-by: Bard Liao yung-chuan.liao@linux.intel.com
Fixes #1953