mirror of https://github.com/thesofproject/sof.git
audio: Add new kconfig for shared library modules
Add a new kconfig option to build the shared library modules that can be used to run the pipelines on the host with the testbench or the ALSA plugin. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
40b9e31925
commit
b720f1a733
|
@ -6,7 +6,7 @@ elseif(CONFIG_IPC_MAJOR_4)
|
||||||
set(mixer_src mixin_mixout/mixin_mixout.c mixin_mixout/mixin_mixout_generic.c mixin_mixout/mixin_mixout_hifi3.c)
|
set(mixer_src mixin_mixout/mixin_mixout.c mixin_mixout/mixin_mixout_generic.c mixin_mixout/mixin_mixout_hifi3.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
|
if(NOT CONFIG_COMP_MODULE_SHARED_LIBRARY_BUILD)
|
||||||
add_local_sources(sof
|
add_local_sources(sof
|
||||||
host-legacy.c
|
host-legacy.c
|
||||||
component.c
|
component.c
|
||||||
|
@ -17,6 +17,7 @@ if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
|
||||||
audio_stream.c
|
audio_stream.c
|
||||||
channel_map.c
|
channel_map.c
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CONFIG_COMP_BLOB)
|
if(CONFIG_COMP_BLOB)
|
||||||
add_local_sources(sof data_blob.c)
|
add_local_sources(sof data_blob.c)
|
||||||
endif()
|
endif()
|
||||||
|
@ -62,7 +63,7 @@ if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
|
||||||
dai-legacy.c
|
dai-legacy.c
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
if(CONFIG_COMP_KPB)
|
if(CONFIG_COMP_KPB AND NOT CONFIG_LIBRARY_STATIC)
|
||||||
add_local_sources(sof
|
add_local_sources(sof
|
||||||
kpb.c
|
kpb.c
|
||||||
)
|
)
|
||||||
|
@ -89,7 +90,7 @@ if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
|
||||||
if(CONFIG_COMP_RTNR)
|
if(CONFIG_COMP_RTNR)
|
||||||
add_subdirectory(rtnr)
|
add_subdirectory(rtnr)
|
||||||
endif()
|
endif()
|
||||||
if(CONFIG_COMP_BASEFW_IPC4)
|
if(CONFIG_COMP_BASEFW_IPC4 AND NOT CONFIG_LIBRARY)
|
||||||
add_local_sources(sof
|
add_local_sources(sof
|
||||||
base_fw.c
|
base_fw.c
|
||||||
)
|
)
|
||||||
|
@ -125,6 +126,11 @@ add_local_sources(sof
|
||||||
component.c
|
component.c
|
||||||
data_blob.c
|
data_blob.c
|
||||||
buffer.c
|
buffer.c
|
||||||
|
source_api_helper.c
|
||||||
|
sink_api_helper.c
|
||||||
|
sink_source_utils.c
|
||||||
|
audio_stream.c
|
||||||
|
channel_map.c
|
||||||
)
|
)
|
||||||
|
|
||||||
# Audio Modules with various optimizaitons
|
# Audio Modules with various optimizaitons
|
||||||
|
|
|
@ -703,4 +703,12 @@ config WRAP_ACTUAL_POSITION
|
||||||
It is not necessary that on wrap, the buffer position would be zero.At wrap,
|
It is not necessary that on wrap, the buffer position would be zero.At wrap,
|
||||||
in some cases based on the period size, the frame may not exactly be at the
|
in some cases based on the period size, the frame may not exactly be at the
|
||||||
end of the buffer and roll over for some bytes from the beginning of the buffer.
|
end of the buffer and roll over for some bytes from the beginning of the buffer.
|
||||||
|
|
||||||
|
config COMP_MODULE_SHARED_LIBRARY_BUILD
|
||||||
|
bool "Build SOF modules as shared libraries"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Select if you want to build modules as shared objects that can be used to run
|
||||||
|
pipelines on the host with the testbench or the ALSA plugin.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
add_local_sources(sof module_adapter.c module/generic.c)
|
add_local_sources(sof module_adapter.c module/generic.c)
|
||||||
|
|
||||||
if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
|
if(NOT CONFIG_COMP_MODULE_SHARED_LIBRARY_BUILD)
|
||||||
if(CONFIG_CADENCE_CODEC)
|
if(CONFIG_CADENCE_CODEC)
|
||||||
add_local_sources(sof module/cadence.c)
|
add_local_sources(sof module/cadence.c)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue