|
19 | 19 | #define NUM_IO_STREAMS (1) |
20 | 20 |
|
21 | 21 | SOF_DEFINE_REG_UUID(waves); |
| 22 | + |
22 | 23 | DECLARE_TR_CTX(waves_tr, SOF_UUID(waves_uuid), LOG_LEVEL_INFO); |
| 24 | +LOG_MODULE_REGISTER(waves, CONFIG_SOF_LOG_LEVEL); |
23 | 25 |
|
24 | 26 | struct waves_codec_data { |
25 | 27 | uint32_t sample_rate; |
@@ -248,7 +250,8 @@ static int waves_effect_check(struct comp_dev *dev) |
248 | 250 |
|
249 | 251 | /* different interleaving is not supported */ |
250 | 252 | if (audio_stream_get_buffer_fmt(src_fmt) != audio_stream_get_buffer_fmt(snk_fmt)) { |
251 | | - comp_err(dev, "waves_effect_check() source %d sink %d buffer format mismatch"); |
| 253 | + comp_err(dev, "waves_effect_check() source %d sink %d buffer format mismatch", |
| 254 | + audio_stream_get_buffer_fmt(src_fmt), audio_stream_get_buffer_fmt(snk_fmt)); |
252 | 255 | return -EINVAL; |
253 | 256 | } |
254 | 257 |
|
@@ -896,3 +899,24 @@ static const struct module_interface waves_interface = { |
896 | 899 |
|
897 | 900 | DECLARE_MODULE_ADAPTER(waves_interface, waves_uuid, waves_tr); |
898 | 901 | SOF_MODULE_INIT(waves, sys_comp_module_waves_interface_init); |
| 902 | + |
| 903 | +#if CONFIG_WAVES_CODEC_MODULE && CONFIG_WAVES_CODEC_STUB |
| 904 | +/* modular: llext dynamic link */ |
| 905 | + |
| 906 | +#include <module/module/api_ver.h> |
| 907 | +#include <module/module/llext.h> |
| 908 | +#include <rimage/sof/user/manifest.h> |
| 909 | + |
| 910 | +/* d944281a-afe9-4695-a043-d7f62b89538e */ |
| 911 | +#define UUID_WAVES_CODEC 0x1A, 0x28, 0x44, 0xD9, 0xE9, 0xAF, 0x95, 0x46, \ |
| 912 | + 0xA0, 0x43, 0xD7, 0xF6, 0x2B, 0x89, 0x53, 0x8E |
| 913 | + |
| 914 | +SOF_LLEXT_MOD_ENTRY(waves, &waves_interface); |
| 915 | + |
| 916 | +static const struct sof_man_module_manifest mod_manifest __section(".module") __used = |
| 917 | + SOF_LLEXT_MODULE_MANIFEST("WAVES", waves_llext_entry, |
| 918 | + 7, UUID_WAVES_CODEC, 8); |
| 919 | + |
| 920 | +SOF_LLEXT_BUILDINFO; |
| 921 | + |
| 922 | +#endif |
0 commit comments