Skip to content

Commit 3320d9a

Browse files
lrgirdwolgirdwood
authored andcommitted
modules: adapter: move API_CALL macro to cadence header.
API_CALL only used to wrap Cadence API calls so move to correct header. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent cdc0fcf commit 3320d9a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/include/sof/audio/module_adapter/module/cadence.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ extern xa_codec_func_t xa_sbc_dec;
3232
extern xa_codec_func_t xa_vorbis_dec;
3333
extern xa_codec_func_t xa_src_pp;
3434

35+
#define API_CALL(cd, cmd, sub_cmd, value, ret) \
36+
do { \
37+
ret = (cd)->api((cd)->self, \
38+
(cmd), \
39+
(sub_cmd), \
40+
(value)); \
41+
} while (0)
42+
3543
/*****************************************************************************/
3644
/* Cadence private data types */
3745
/*****************************************************************************/

src/include/sof/audio/module_adapter/module/generic.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@
3030
#define MAX_BLOB_SIZE 8192
3131
#define MODULE_MAX_SOURCES 8
3232

33-
#define API_CALL(cd, cmd, sub_cmd, value, ret) \
34-
do { \
35-
ret = (cd)->api((cd)->self, \
36-
(cmd), \
37-
(sub_cmd), \
38-
(value)); \
39-
} while (0)
40-
4133
#if CONFIG_IPC_MAJOR_4
4234
#define IPC_MOD_CMD(v)
4335
#elif CONFIG_IPC_MAJOR_3

0 commit comments

Comments
 (0)