Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b130f85
zephyr: move primary_core_init() to POST_KERNEL
lyakh Jan 24, 2023
af98b12
zephyr: add a macro for module initialisation
lyakh Jan 24, 2023
c750068
volume: convert to Zephyr native initialisation
lyakh Jan 24, 2023
379d6b8
mixer: convert to Zephyr native initialisation
lyakh Jan 24, 2023
b5e3709
dai: convert to Zephyr native initialisation
lyakh Jan 24, 2023
1c505af
src: convert to Zephyr native initialisation
lyakh Jan 24, 2023
0ab9ea8
chain-dma: convert to Zephyr native initialisation
lyakh Jan 25, 2023
71ec0b4
selector: convert to Zephyr native initialisation
lyakh Jan 24, 2023
a63ed1b
switch: convert to Zephyr native initialisation
lyakh Jan 24, 2023
8080a72
tone: convert to Zephyr native initialisation
lyakh Jan 24, 2023
04130ea
eq-fir: convert to Zephyr native initialisation
lyakh Jan 24, 2023
41deb55
eq-iir: convert to Zephyr native initialisation
lyakh Jan 24, 2023
244c02a
keyword: convert to Zephyr native initialisation
lyakh Jan 24, 2023
b3e3eaa
host: convert to Zephyr native initialisation
lyakh Jan 24, 2023
eb589e7
kpb: convert to Zephyr native initialisation
lyakh Jan 24, 2023
f325b9c
smart-amp: convert to Zephyr native initialisation
lyakh Jan 24, 2023
cef8756
asrc: convert to Zephyr native initialisation
lyakh Jan 24, 2023
fbe6cc6
dcblock: convert to Zephyr native initialisation
lyakh Jan 24, 2023
6a1b713
mux: convert to Zephyr native initialisation
lyakh Jan 24, 2023
1c5eda4
basefw: convert to Zephyr native initialisation
lyakh Jan 25, 2023
4f0a474
copier: convert to Zephyr native initialisation
lyakh Jan 25, 2023
ab18579
cadence: convert to Zephyr native initialisation
lyakh Jan 25, 2023
c6c3735
passthrough: convert to Zephyr native initialisation
lyakh Jan 25, 2023
01ea2dc
aria: convert to Zephyr native initialisation
lyakh Jan 25, 2023
dadc152
crossover: convert to Zephyr native initialisation
lyakh Jan 25, 2023
351c54b
drc: convert to Zephyr native initialisation
lyakh Jan 25, 2023
b5fb4a6
multiband-drc: convert to Zephyr native initialisation
lyakh Jan 25, 2023
ed41ed9
google-rtc: convert to Zephyr native initialisation
lyakh Jan 25, 2023
7b15828
igo-nr: convert to Zephyr native initialisation
lyakh Jan 25, 2023
8a638ca
rtnr: convert to Zephyr native initialisation
lyakh Jan 25, 2023
a3d522f
up-down-mixer: convert to Zephyr native initialisation
lyakh Jan 25, 2023
64748f0
tdfb: convert to Zephyr native initialisation
lyakh Jan 25, 2023
2326b39
google-hotword: convert to Zephyr native initialisation
lyakh Jan 25, 2023
ae21eb3
dts: convert to Zephyr native initialisation
lyakh Jan 25, 2023
50b4827
waves: convert to Zephyr native initialisation
lyakh Jan 25, 2023
aa1816f
probe: convert to Zephyr native initialisation
lyakh Jan 25, 2023
4bb3ec8
zephyr: remove unused module initialisation
lyakh Jan 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/audio/aria/aria.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <sof/lib/uuid.h>
Expand Down Expand Up @@ -378,3 +379,4 @@ UT_STATIC void sys_comp_aria_init(void)
}

DECLARE_MODULE(sys_comp_aria_init);
SOF_MODULE_INIT(aria, sys_comp_aria_init);
2 changes: 2 additions & 0 deletions src/audio/asrc/asrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/math/numbers.h>
Expand Down Expand Up @@ -1106,3 +1107,4 @@ UT_STATIC void sys_comp_asrc_init(void)
}

DECLARE_MODULE(sys_comp_asrc_init);
SOF_MODULE_INIT(asrc, sys_comp_asrc_init);
2 changes: 2 additions & 0 deletions src/audio/base_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <sof_versions.h>
#include <sof/lib/cpu-clk-manager.h>
#include <sof/lib/cpu.h>
#include <rtos/init.h>

#if CONFIG_ACE_V1X_ART_COUNTER || CONFIG_ACE_V1X_RTC_COUNTER
#include <zephyr/device.h>
Expand Down Expand Up @@ -495,3 +496,4 @@ UT_STATIC void sys_comp_basefw_init(void)
}

DECLARE_MODULE(sys_comp_basefw_init);
SOF_MODULE_INIT(basefw, sys_comp_basefw_init);
2 changes: 2 additions & 0 deletions src/audio/chain_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <ipc4/pipeline.h>
#include <sof/ut.h>
#include <zephyr/pm/policy.h>
#include <rtos/init.h>

static const struct comp_driver comp_chain_dma;
static const uint32_t max_chain_number = DAI_NUM_HDA_OUT + DAI_NUM_HDA_IN;
Expand Down Expand Up @@ -653,3 +654,4 @@ UT_STATIC void sys_comp_chain_dma_init(void)
}

DECLARE_MODULE(sys_comp_chain_dma_init);
SOF_MODULE_INIT(chain_dma, sys_comp_chain_dma_init);
2 changes: 2 additions & 0 deletions src/audio/copier/copier.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <rtos/timer.h>
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <sof/lib/uuid.h>
Expand Down Expand Up @@ -1565,3 +1566,4 @@ UT_STATIC void sys_comp_copier_init(void)
}

DECLARE_MODULE(sys_comp_copier_init);
SOF_MODULE_INIT(copier, sys_comp_copier_init);
2 changes: 2 additions & 0 deletions src/audio/crossover/crossover.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/math/iir_df2t.h>
Expand Down Expand Up @@ -852,3 +853,4 @@ UT_STATIC void sys_comp_crossover_init(void)
}

DECLARE_MODULE(sys_comp_crossover_init);
SOF_MODULE_INIT(crossover, sys_comp_crossover_init);
2 changes: 2 additions & 0 deletions src/audio/dai-legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <rtos/timer.h>
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <rtos/init.h>
#include <sof/lib/dai.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
Expand Down Expand Up @@ -1117,3 +1118,4 @@ UT_STATIC void sys_comp_dai_init(void)
}

DECLARE_MODULE(sys_comp_dai_init);
SOF_MODULE_INIT(dai, sys_comp_dai_init);
2 changes: 2 additions & 0 deletions src/audio/dai-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <rtos/timer.h>
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <rtos/init.h>
#include <sof/lib/dai.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
Expand Down Expand Up @@ -1459,3 +1460,4 @@ UT_STATIC void sys_comp_dai_init(void)
}

DECLARE_MODULE(sys_comp_dai_init);
SOF_MODULE_INIT(dai, sys_comp_dai_init);
2 changes: 2 additions & 0 deletions src/audio/dcblock/dcblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -431,3 +432,4 @@ UT_STATIC void sys_comp_dcblock_init(void)
}

DECLARE_MODULE(sys_comp_dcblock_init);
SOF_MODULE_INIT(dcblock, sys_comp_dcblock_init);
2 changes: 2 additions & 0 deletions src/audio/drc/drc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -486,3 +487,4 @@ UT_STATIC void sys_comp_drc_init(void)
}

DECLARE_MODULE(sys_comp_drc_init);
SOF_MODULE_INIT(drc, sys_comp_drc_init);
2 changes: 2 additions & 0 deletions src/audio/eq_fir/eq_fir.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -544,3 +545,4 @@ static struct module_interface eq_fir_interface = {
};

DECLARE_MODULE_ADAPTER(eq_fir_interface, eq_fir_uuid, eq_fir_tr);
SOF_MODULE_INIT(eq_fir, sys_comp_module_eq_fir_interface_init);
2 changes: 2 additions & 0 deletions src/audio/eq_iir/eq_iir.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -993,3 +994,4 @@ UT_STATIC void sys_comp_eq_iir_init(void)
}

DECLARE_MODULE(sys_comp_eq_iir_init);
SOF_MODULE_INIT(eq_iir, sys_comp_eq_iir_init);
2 changes: 2 additions & 0 deletions src/audio/google/google_hotword_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <rtos/wait.h>
Expand Down Expand Up @@ -484,3 +485,4 @@ UT_STATIC void sys_comp_ghd_init(void)
}

DECLARE_MODULE(sys_comp_ghd_init);
SOF_MODULE_INIT(ghd, sys_comp_ghd_init);
2 changes: 2 additions & 0 deletions src/audio/google/google_rtc_audio_processing.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <sof/lib/uuid.h>
Expand Down Expand Up @@ -690,3 +691,4 @@ UT_STATIC void sys_comp_google_rtc_audio_processing_init(void)
}

DECLARE_MODULE(sys_comp_google_rtc_audio_processing_init);
SOF_MODULE_INIT(google_rtc_audio_processing, sys_comp_google_rtc_audio_processing_init);
2 changes: 2 additions & 0 deletions src/audio/host-legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
Expand Down Expand Up @@ -1101,3 +1102,4 @@ UT_STATIC void sys_comp_host_init(void)
}

DECLARE_MODULE(sys_comp_host_init);
SOF_MODULE_INIT(host, sys_comp_host_init);
2 changes: 2 additions & 0 deletions src/audio/host-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
Expand Down Expand Up @@ -1174,3 +1175,4 @@ UT_STATIC void sys_comp_host_init(void)
}

DECLARE_MODULE(sys_comp_host_init);
SOF_MODULE_INIT(host, sys_comp_host_init);
2 changes: 2 additions & 0 deletions src/audio/igo_nr/igo_nr.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <sof/common.h>
#include <sof/debug/panic.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -853,3 +854,4 @@ UT_STATIC void sys_comp_igo_nr_init(void)
}

DECLARE_MODULE(sys_comp_igo_nr_init);
SOF_MODULE_INIT(igo_nr, sys_comp_igo_nr_init);
2 changes: 2 additions & 0 deletions src/audio/kpb.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <rtos/timer.h>
#include <rtos/alloc.h>
#include <rtos/clk.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <sof/lib/pm_runtime.h>
Expand Down Expand Up @@ -1886,3 +1887,4 @@ UT_STATIC void sys_comp_kpb_init(void)
}

DECLARE_MODULE(sys_comp_kpb_init);
SOF_MODULE_INIT(kpb, sys_comp_kpb_init);
2 changes: 2 additions & 0 deletions src/audio/mixer/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -230,3 +231,4 @@ static struct module_interface mixer_interface = {
};

DECLARE_MODULE_ADAPTER(mixer_interface, mixer_uuid, mixer_tr);
SOF_MODULE_INIT(mixer, sys_comp_module_mixer_interface_init);
3 changes: 3 additions & 0 deletions src/audio/mixin_mixout/mixin_mixout.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -918,6 +919,7 @@ static struct module_interface mixin_interface = {
};

DECLARE_MODULE_ADAPTER(mixin_interface, mixin_uuid, mixin_tr);
SOF_MODULE_INIT(mixin, sys_comp_module_mixin_interface_init);

static struct module_interface mixout_interface = {
.init = mixout_init,
Expand All @@ -928,3 +930,4 @@ static struct module_interface mixout_interface = {
};

DECLARE_MODULE_ADAPTER(mixout_interface, mixout_uuid, mixout_tr);
SOF_MODULE_INIT(mixout, sys_comp_module_mixout_interface_init);
2 changes: 2 additions & 0 deletions src/audio/module_adapter/module/cadence.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <sof/audio/module_adapter/module/generic.h>
#include <sof/audio/module_adapter/module/cadence.h>
#include <ipc/compress_params.h>
#include <rtos/init.h>

/* d8218443-5ff3-4a4c-b388-6cfe07b956aa */
DECLARE_SOF_RT_UUID("cadence_codec", cadence_uuid, 0xd8218443, 0x5ff3, 0x4a4c,
Expand Down Expand Up @@ -749,3 +750,4 @@ static struct module_interface cadence_interface = {
};

DECLARE_MODULE_ADAPTER(cadence_interface, cadence_uuid, cadence_tr);
SOF_MODULE_INIT(cadence, sys_comp_module_cadence_interface_init);
2 changes: 2 additions & 0 deletions src/audio/module_adapter/module/dts.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Author: Mark Barton <mark.barton@xperi.com>

#include "sof/audio/module_adapter/module/generic.h"
#include <rtos/init.h>

#include "DtsSofInterface.h"

Expand Down Expand Up @@ -462,3 +463,4 @@ static struct module_interface dts_interface = {
};

DECLARE_MODULE_ADAPTER(dts_interface, dts_uuid, dts_tr);
SOF_MODULE_INIT(dts, sys_comp_module_dts_interface_init);
2 changes: 2 additions & 0 deletions src/audio/module_adapter/module/passthrough.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// Passthrough codec implementation to demonstrate Codec Adapter API

#include <sof/audio/module_adapter/module/generic.h>
#include <rtos/init.h>

/* 376b5e44-9c82-4ec2-bc83-10ea101afa8f */
DECLARE_SOF_RT_UUID("passthrough_codec", passthrough_uuid, 0x376b5e44, 0x9c82, 0x4ec2,
Expand Down Expand Up @@ -122,3 +123,4 @@ static struct module_interface passthrough_interface = {
};

DECLARE_MODULE_ADAPTER(passthrough_interface, passthrough_uuid, passthrough_tr);
SOF_MODULE_INIT(passthrough, sys_comp_module_passthrough_interface_init);
4 changes: 4 additions & 0 deletions src/audio/module_adapter/module/volume/volume.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/cpu.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
Expand Down Expand Up @@ -1542,6 +1543,7 @@ UT_STATIC void sys_comp_volume_init(void)
}

DECLARE_MODULE(sys_comp_volume_init);
SOF_MODULE_INIT(volume, sys_comp_volume_init);
#else
static struct module_interface volume_interface = {
.init = volume_init,
Expand All @@ -1554,6 +1556,7 @@ static struct module_interface volume_interface = {
};

DECLARE_MODULE_ADAPTER(volume_interface, volume_uuid, volume_tr);
SOF_MODULE_INIT(volume, sys_comp_module_volume_interface_init);

#if CONFIG_COMP_GAIN
static struct module_interface gain_interface = {
Expand All @@ -1567,5 +1570,6 @@ static struct module_interface gain_interface = {
};

DECLARE_MODULE_ADAPTER(gain_interface, gain_uuid, gain_tr);
SOF_MODULE_INIT(gain, sys_comp_module_gain_interface_init);
#endif
#endif
2 changes: 2 additions & 0 deletions src/audio/module_adapter/module/waves.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <sof/audio/module_adapter/module/generic.h>
#include <sof/debug/debug.h>
#include <sof/compiler_attributes.h>
#include <rtos/init.h>

#include "MaxxEffect/MaxxEffect.h"
#include "MaxxEffect/MaxxStream.h"
Expand Down Expand Up @@ -889,3 +890,4 @@ static struct module_interface waves_interface = {
};

DECLARE_MODULE_ADAPTER(waves_interface, waves_uuid, waves_tr);
SOF_MODULE_INIT(waves, sys_comp_module_waves_interface_init);
2 changes: 2 additions & 0 deletions src/audio/multiband_drc/multiband_drc.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -643,3 +644,4 @@ UT_STATIC void sys_comp_multiband_drc_init(void)
}

DECLARE_MODULE(sys_comp_multiband_drc_init);
SOF_MODULE_INIT(multiband_drc, sys_comp_multiband_drc_init);
4 changes: 2 additions & 2 deletions src/audio/mux/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
// Artur Kloniecki <arturx.kloniecki@linux.intel.com>



#if CONFIG_COMP_MUX

#include <sof/audio/component.h>
Expand All @@ -15,6 +13,7 @@
#include <sof/common.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
Expand Down Expand Up @@ -1012,5 +1011,6 @@ UT_STATIC void sys_comp_mux_init(void)
}

DECLARE_MODULE(sys_comp_mux_init);
SOF_MODULE_INIT(mux, sys_comp_mux_init);

#endif /* CONFIG_COMP_MUX */
Loading