Skip to content

Commit

Permalink
smart-amp-test: remove obsolete build options
Browse files Browse the repository at this point in the history
smart-amp-test was one of the first modules, used as an example for
loadable module development. Currently it can be built in 4 ways:
- monolithic
- as an LMDK native module
- as legacy LLEXT
- as current LLEXT
This commit removes legacy options and only preserves the first and
the last options.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Jan 13, 2025
1 parent 7d11802 commit 64bb4fb
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 238 deletions.
2 changes: 1 addition & 1 deletion lmdk/cmake/ldscripts/data_linker_script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SECTIONS {
_data_end = ABSOLUTE(.);
} >HPSRAM_seg : data_phdr

.rodata : ALIGN(4096) {
.rodata : {
_rodata_start = ABSOLUTE(.);
*(.gnu.linkonce.r.*)
*(.rodata)
Expand Down
25 changes: 0 additions & 25 deletions lmdk/libraries/smart_amp_test/CMakeLists.txt

This file was deleted.

79 changes: 0 additions & 79 deletions lmdk/libraries/smart_amp_test/smart_amp_test.toml

This file was deleted.

16 changes: 0 additions & 16 deletions lmdk/modules/smart_amp_test/CMakeLists.txt

This file was deleted.

3 changes: 1 addition & 2 deletions src/include/ipc4/base-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@

#ifndef __SOF_IPC4_BASE_CONFIG_H__
#define __SOF_IPC4_BASE_CONFIG_H__
#ifndef __SOF_MODULE_SERVICE_BUILD__

#include <sof/compiler_attributes.h>
#endif
#include <module/ipc4/base-config.h>

struct sof_ipc_stream_params;
Expand Down
16 changes: 2 additions & 14 deletions src/include/sof/samples/audio/smart_amp_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
#ifndef __SOF_AUDIO_SMART_AMP_H__
#define __SOF_AUDIO_SMART_AMP_H__

#ifndef __SOF_MODULE_SERVICE_BUILD__
#include <sof/audio/component.h>
#include <sof/audio/data_blob.h>
#endif

#if CONFIG_IPC_MAJOR_4
#include <ipc4/base-config.h>
Expand All @@ -21,20 +19,10 @@

#define SMART_AMP_MAX_STREAM_CHAN 8

/* Max channels for all intel platforms are 8 */
#define MAX_CHANNELS 8

/** IPC blob types */
#define SOF_SMART_AMP_CONFIG 0
#define SOF_SMART_AMP_MODEL 1

#ifdef __SOF_MODULE_SERVICE_BUILD__
#define LOG_ERR(...)
#define LOG_WRN(...)
#define LOG_DBG(...)
#define LOG_INF(...)
#endif

struct smart_amp_model_data {
uint32_t data_size;
void *data;
Expand Down Expand Up @@ -95,8 +83,8 @@ struct smart_amp_model_data {
struct sof_smart_amp_config {
uint32_t size;
uint32_t feedback_channels;
int8_t source_ch_map[MAX_CHANNELS];
int8_t feedback_ch_map[MAX_CHANNELS];
int8_t source_ch_map[PLATFORM_MAX_CHANNELS];
int8_t feedback_ch_map[PLATFORM_MAX_CHANNELS];
};

#if CONFIG_IPC_MAJOR_4
Expand Down
Loading

0 comments on commit 64bb4fb

Please sign in to comment.