|
32 | 32 | #include <stdint.h> |
33 | 33 | #include "asrc.h" |
34 | 34 |
|
35 | | -LOG_MODULE_REGISTER(asrc, CONFIG_SOF_LOG_LEVEL); |
| 35 | +LOG_MODULE_DECLARE(asrc, CONFIG_SOF_LOG_LEVEL); |
36 | 36 |
|
37 | 37 | /* In-line functions */ |
38 | 38 |
|
@@ -318,7 +318,7 @@ static int asrc_free(struct processing_module *mod) |
318 | 318 | struct comp_data *cd = module_get_private_data(mod); |
319 | 319 | struct comp_dev *dev = mod->dev; |
320 | 320 |
|
321 | | - comp_info(dev, "asrc_free()"); |
| 321 | + comp_dbg(dev, "asrc_free()"); |
322 | 322 |
|
323 | 323 | rfree(cd->buf); |
324 | 324 | asrc_release_buffers(cd->asrc_obj); |
@@ -850,8 +850,7 @@ static int asrc_reset(struct processing_module *mod) |
850 | 850 | struct comp_dev *dev = mod->dev; |
851 | 851 | struct comp_data *cd = module_get_private_data(mod); |
852 | 852 |
|
853 | | - comp_info(dev, "asrc_reset(), skew_min=%d, skew_max=%d", cd->skew_min, cd->skew_max); |
854 | | - |
| 853 | + comp_dbg(dev, "asrc_reset(), skew_min=%d, skew_max=%d", cd->skew_min, cd->skew_max); |
855 | 854 |
|
856 | 855 | /* If any resources feasible to stop */ |
857 | 856 | if (cd->track_drift) |
@@ -879,3 +878,21 @@ static const struct module_interface asrc_interface = { |
879 | 878 |
|
880 | 879 | DECLARE_MODULE_ADAPTER(asrc_interface, ASRC_UUID, asrc_tr); |
881 | 880 | SOF_MODULE_INIT(asrc, sys_comp_module_asrc_interface_init); |
| 881 | + |
| 882 | +#if CONFIG_COMP_ASRC_MODULE |
| 883 | +/* modular: llext dynamic link */ |
| 884 | + |
| 885 | +#include <module/module/api_ver.h> |
| 886 | +#include <module/module/llext.h> |
| 887 | +#include <rimage/sof/user/manifest.h> |
| 888 | + |
| 889 | +#define UUID_ASRC 0x2d, 0x40, 0xb4, 0x66, 0x68, 0xb4, 0xf2, 0x42, \ |
| 890 | + 0x81, 0xa7, 0xb3, 0x71, 0x21, 0x86, 0x3d, 0xd4 |
| 891 | +SOF_LLEXT_MOD_ENTRY(asrc, &asrc_interface); |
| 892 | + |
| 893 | +static const struct sof_man_module_manifest mod_manifest[] __section(".module") __used = { |
| 894 | + SOF_LLEXT_MODULE_MANIFEST("ASRC", asrc_llext_entry, 1, UUID_ASRC, 2), |
| 895 | +}; |
| 896 | + |
| 897 | +SOF_LLEXT_BUILDINFO; |
| 898 | +#endif |
0 commit comments