-
Notifications
You must be signed in to change notification settings - Fork 325
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
Update waves codec integration for Zephyr production builds #9820
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -1141,17 +1141,21 @@ elseif(CONFIG_DTS_CODEC) | |||
endif() | ||||
endif() | ||||
|
||||
if(CONFIG_WAVES_CODEC STREQUAL "m") | ||||
add_subdirectory(${SOF_AUDIO_PATH}/module_adapter/module/waves/llext | ||||
${PROJECT_BINARY_DIR}/waves_llext) | ||||
add_dependencies(app waves) | ||||
elseif(CONFIG_WAVES_CODEC) | ||||
zephyr_library_sources( | ||||
${SOF_AUDIO_PATH}/module_adapter/module/waves/waves.c | ||||
) | ||||
zephyr_library_sources_ifdef(CONFIG_WAVES_CODEC_STUB | ||||
${SOF_AUDIO_PATH}/module_adapter/module/waves/maxx_stub.c | ||||
) | ||||
if(CONFIG_WAVES_CODEC) | ||||
set(WAVES_DIR ${SOF_AUDIO_PATH}/module_adapter/module/waves) | ||||
if(CONFIG_WAVES_CODEC STREQUAL "m") | ||||
add_subdirectory(${WAVES_DIR}/llext ${PROJECT_BINARY_DIR}/waves_llext) | ||||
add_dependencies(app waves) | ||||
else() | ||||
zephyr_library_sources(${WAVES_DIR}/waves.c) | ||||
if(CONFIG_WAVES_CODEC_STUB) | ||||
zephyr_library_sources_ifdef(CONFIG_WAVES_CODEC_STUB | ||||
${WAVES_DIR}/maxx_stub.c) | ||||
else() | ||||
zephyr_library_import(waves_codec | ||||
${sof_top_dir}/third_party/lib/libMaxxChrome.a) | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you think it would also be good to enable modular build with the library?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Undeniably, I just don't know how the llext stuff works yet and was afraid to break anything. :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That can be done as stage 2 - no reason to block this PR today. |
||||
endif() | ||||
endif() | ||||
endif() | ||||
|
||||
if(CONFIG_PROBE STREQUAL "m") | ||||
|
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.
This looks a bit weird with CONFIG_WAVES_CODEC_STUB tested both at LL1151 and then 1152, but should work still.