Skip to content

Conversation

@bardliao
Copy link
Collaborator

@bardliao bardliao commented Mar 31, 2020

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

RanderWang
RanderWang previously approved these changes Mar 31, 2020
Copy link

@RanderWang RanderWang left a comment

Choose a reason for hiding this comment

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

Thanks!

plbossart
plbossart previously approved these changes Mar 31, 2020
Copy link
Member

@plbossart plbossart left a 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?

@bardliao
Copy link
Collaborator Author

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.

@RanderWang
Copy link

RanderWang commented Apr 1, 2020

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, without aggregation we only need to init codec on current link for current BE DAI.

ranj063
ranj063 previously approved these changes Apr 1, 2020

part_id = SDW_PART_ID(link->adr_d[i].adr);
codec_index = find_codec_info_part(part_id);
do {
Copy link
Collaborator

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 :-)

lyakh
lyakh previously approved these changes Apr 1, 2020
Copy link
Collaborator

@kv2019i kv2019i left a 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.

@plbossart
Copy link
Member

@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.

@bardliao bardliao dismissed stale reviews from lyakh and ranj063 via 0a5dd8c April 2, 2020 01:10
@bardliao bardliao requested review from kv2019i and lyakh April 2, 2020 01:11
Copy link
Collaborator

@kv2019i kv2019i left a 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>
@kv2019i
Copy link
Collaborator

kv2019i commented Apr 3, 2020

Jenkins build stalled, CI errors are known or unrelated (GLK sof-logger error), merging.

@kv2019i kv2019i merged commit 052e45d into thesofproject:topic/sof-dev Apr 3, 2020
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.

[BUG][CML]Aplay0,2 rt1308 right speaker have sound output when muted speaker in alsamixer.

6 participants