Skip to content

Commit 118ce2e

Browse files
Jyri Sarhalgirdwood
authored andcommitted
Audio: Smart Amp: Couple of fixes need to get this to compile again
Zephyr and broken pass through configuration fixes. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 46e8ed1 commit 118ce2e

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/audio/smart_amp/smart_amp.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <user/smart_amp.h>
1818
#include <sof/audio/ipc-config.h>
1919
#include <sof/audio/smart_amp/smart_amp.h>
20+
#include <sof/lib/uuid.h>
2021

2122
static const struct comp_driver comp_smart_amp;
2223

@@ -29,12 +30,15 @@ SOF_DEFINE_REG_UUID(maxim_dsm);
2930

3031
#else /* Passthrough */
3132
SOF_DEFINE_REG_UUID(passthru_smart_amp);
32-
#define UUID_SYM passthru_smart_amp
33+
#define UUID_SYM passthru_smart_amp_uuid
3334

3435
#endif
36+
3537
DECLARE_TR_CTX(smart_amp_comp_tr, SOF_UUID(UUID_SYM),
3638
LOG_LEVEL_INFO);
3739

40+
LOG_MODULE_REGISTER(smart_amp, CONFIG_SOF_LOG_LEVEL);
41+
3842
/* Amp configuration & model calibration data for tuning/debug */
3943
#define SOF_SMART_AMP_CONFIG 0
4044
#define SOF_SMART_AMP_MODEL 1

src/audio/smart_amp/smart_amp_maxim_dsm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include <sof/audio/smart_amp/smart_amp.h>
2121
#include "dsm_api_public.h"
2222

23+
LOG_MODULE_DECLARE(smart_amp, CONFIG_SOF_LOG_LEVEL);
24+
2325
/* Maxim DSM(Dynamic Speaker Management) process buffer size */
2426
#define DSM_FRM_SZ 48
2527
#define DSM_FF_BUF_SZ (DSM_FRM_SZ * SMART_AMP_FF_MAX_CH_NUM)

src/audio/smart_amp/smart_amp_passthru.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010

1111
#include <sof/trace/trace.h>
1212
#include <user/trace.h>
13-
#include <sof/bit.h>
1413
#include <sof/common.h>
1514
#include <stdint.h>
1615
#include <stdlib.h>
1716
#include <sof/audio/smart_amp/smart_amp.h>
1817

18+
LOG_MODULE_DECLARE(smart_amp, CONFIG_SOF_LOG_LEVEL);
19+
1920
/* self-declared inner model data struct */
2021
struct passthru_mod_data {
2122
struct smart_amp_mod_data_base base;

0 commit comments

Comments
 (0)