Skip to content

Conversation

@andyross
Copy link
Contributor

@andyross andyross commented Jun 7, 2024

Minor changes needed for working Mediatek builds

andyross added 3 commits June 7, 2024 09:33
Commit 296af86 ("Audio: RTNR: Convert to module API") missed a
spot: the "rtnr_printf()" function, which is a logging callback from
the vendor library, was still using the comp_rtnr driver struct even
though it was no longer initialized.  This contained a NULL trace
context, which would panic on use.

(That would then lead to a fun glitch where the reentrantly-confused
trace code would then panic inside the tracing done by the panic
handler, clobbering the original trace info and reporting to the kenel
that the fault was in panic_dump()).

This would have been fine with the stub, which does not call
rtnr_print(), only the real library would blow up.

Fix is to use the trace context directly, as we don't have a component
pointer here.

Signed-off-by: Andy Ross <andyross@google.com>
This was OK a few months ago, but something in recent SOF has expanded
stack requirements and we now get overflows.  Move to 12k stacks when
AEC is enabled.

Signed-off-by: Andy Ross <andyross@google.com>
Compiler flags used with older xcc compilers still disallow
declarations in for() expressions.

Signed-off-by: Andy Ross <andyross@google.com>
@lgirdwood lgirdwood merged commit 5df28c4 into thesofproject:main Jun 10, 2024
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