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

intel_adsp_ace15_mtpm.conf: replace blanket _STUBS with focused RTC MOCK #9404

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Aug 24, 2024

CONFIG_COMP_STUBS=y was enabled in #8722 / commit 8e34109 ("AEC: Enable Google AEC with Mock compliation").

CONFIG_COMP_STUBS indirectly enables
CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK which was the desired effect. However it also automatically and silently "mocks" all other 3rd party modules which is not desirable. So, replace it with the more focused CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK. src/audio/Kconfig says "CONFIG_STUBS: This should only be used in testing environments like fuzzers or CI."

Official sof-bin releases include google_rtc_audio_processing_mock.c
because the CI that uses it can't use extra CONFIGS. That's another
topic for another day, see #9410.

build-mtl/zephyr.strip is identical before versus after this commit.

cc:

@marc-hb
Copy link
Collaborator Author

marc-hb commented Aug 26, 2024

Usual LNL failures in https://sof-ci.01.org/sofpr/PR9404/build7359/devicetest/index.html, everything else green.

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.

Mocks in upstream releases don't make much sense, so why not go with #9410

@marc-hb
Copy link
Collaborator Author

marc-hb commented Aug 27, 2024

If #9410 removal is good then even better. Note #9410 is a "code change", this is not.

I will close this once #9410 is merged. #9410 did not pass, re-instating this.

EDIT: v2 with update comments and commit message - zero change.

@marc-hb marc-hb marked this pull request as draft August 27, 2024 15:53
CONFIG_COMP_STUBS=y was enabled in thesofproject#8722 / commit 8e34109 ("AEC:
Enable Google AEC with Mock compliation").

CONFIG_COMP_STUBS indirectly enables
CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK which was the desired
effect. However it also automatically and silently "mocks" all other 3rd
party modules which is not desirable. So, replace it with the more
focused `CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK`. `src/audio/Kconfig`
says "CONFIG_STUBS: This should only be used in testing environments
like fuzzers or CI."

Official sof-bin releases include `google_rtc_audio_processing_mock.c`
because the CI that uses it can't use extra CONFIGS. That's another
topic for another day, see thesofproject#9410.

build-mtl/zephyr.strip is identical before versus after this commit.

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review September 3, 2024 16:00
@marc-hb marc-hb dismissed kv2019i’s stale review September 3, 2024 16:00

9410 did not pass

@cujomalainey cujomalainey merged commit b2f79a0 into thesofproject:main Sep 4, 2024
45 of 47 checks passed
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.

3 participants