Skip to content

Mixin: fix binding - #6138

Merged
lgirdwood merged 2 commits into
thesofproject:mainfrom
lyakh:mixin-bind
Aug 15, 2022
Merged

lgirdwood merged 2 commits into
thesofproject:mainfrom
lyakh:mixin-bind

Conversation

@lyakh

@lyakh lyakh commented Aug 12, 2022

Copy link
Copy Markdown
Collaborator

.bind() is called twice, in the order this is currently done in SOF, the second call overwrites with 0 the valid configuration from the first call. Remove that overwrite.

lyakh added 2 commits August 12, 2022 16:37
The component .bind() method is called twice - for the upstream and
for the downstream links. When mixout's .bind() is first called for
the upstream link, it correctly sets up its connection to the mixin
component. However, if after that .bind() is called for the
downstream link, that configuration is overwritten with 0. Remove
that overwrite.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
No need to check the same condition twice in a row, once is enough.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
@lyakh

lyakh commented Aug 12, 2022

Copy link
Copy Markdown
Collaborator Author

@marcinszkudlinski @mwasko this fixes the problem, but I'm not sure whether this is really a correct fix

@serhiy-katsyuba-intel serhiy-katsyuba-intel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work, @lyakh!

@serhiy-katsyuba-intel

Copy link
Copy Markdown
Contributor

@marcinszkudlinski @mwasko this fixes the problem, but I'm not sure whether this is really a correct fix.

Why are you not sure? This looks exactly like a proper fix :)

@lyakh

lyakh commented Aug 15, 2022

Copy link
Copy Markdown
Collaborator Author

@marcinszkudlinski @mwasko this fixes the problem, but I'm not sure whether this is really a correct fix.

Why are you not sure? This looks exactly like a proper fix :)

@serhiy-katsyuba-intel I'm not sure because I don't quite understand why it was there initially and I don't know all possible scenarios when that path can be entered. So at least in theory this change, while fixing my case, can break something, that I'm not aware of.

@lyakh

lyakh commented Aug 15, 2022

Copy link
Copy Markdown
Collaborator Author

@lgirdwood

Copy link
Copy Markdown
Member

CI: two tests https://sof-ci.01.org/sofpr/PR6138/build1174/devicetest/?model=ADLP_RVP_NOCODEC_ZEPHYR&testcase=verify-tplg-binary and https://sof-ci.01.org/sofpr/PR6138/build1174/devicetest/?model=ADLP_RVP_NOCODEC_ZEPHYR&testcase=verify-pcm-list on ADLP_RVP_NOCODEC_ZEPHYR fail with

dd if=/dev/zero of=/home/ubuntu/HD_TEST_DELETE_ME bs=1M count=100 conv=fsync

looks like SSD issue ? @marc-hb any idea what this is doing other than wearing out the SSD ? I assume we want to flush VFS ?

@ujfalusi ujfalusi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested and works!

Thanks @lyakh !!!

@lgirdwood
lgirdwood merged commit 8e36544 into thesofproject:main Aug 15, 2022
@lyakh
lyakh deleted the mixin-bind branch August 16, 2022 05:54
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.

4 participants