Skip to content

Commit

Permalink
lmdk: Fix compilation of smart_amp_test example
Browse files Browse the repository at this point in the history
Fixes compilation error when building smart_amp_test as loadable module
using LMDK.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
  • Loading branch information
serhiy-katsyuba-intel committed Jul 18, 2024
1 parent 9aaa78b commit e54c1ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lmdk/modules/smart_amp_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ target_compile_definitions(smart_amp_test PRIVATE
CONFIG_IPC_MAJOR_4=1
)

target_include_directories(smart_amp_test PRIVATE "${SOF_BASE}/src/include")
target_include_directories(smart_amp_test PRIVATE
"${SOF_BASE}/src/include"
"${SOF_BASE}/posix/include"
)
2 changes: 1 addition & 1 deletion src/samples/audio/smart_amp_test_ipc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Author: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>

#ifndef __SOF_MODULE_SERVICE_BUILD__
#include <sof/compiler_attributes.h>
#include <sof/audio/module_adapter/module/generic.h>
#include <sof/audio/ipc-config.h>
#include <sof/trace/trace.h>
Expand Down Expand Up @@ -38,6 +37,7 @@ DECLARE_TR_CTX(smart_amp_test_comp_tr, SOF_UUID(smart_amp_test_uuid),
#include <ipc4/module.h>
#include <sof/math/numbers.h>
#endif
#include <sof/compiler_attributes.h>
#include <sof/samples/audio/smart_amp_test.h>
#include <module/module/api_ver.h>
#include <rimage/sof/user/manifest.h>
Expand Down

0 comments on commit e54c1ce

Please sign in to comment.