mirror of https://github.com/thesofproject/sof.git
codec_adapter: Add CONFIG options to select Cadence libraries
Each type of codec will have its own config option that will point to the path in build filesystem where library binary is located. This will make compiling Cadence libraries binaries more flexible. The libraries will be statically linked with SOF firmware. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
parent
71bad3eef7
commit
c2fe4ff10b
|
@ -4,6 +4,39 @@ add_local_sources(sof codec_adapter.c codec/generic.c)
|
||||||
|
|
||||||
if(CONFIG_CADENCE_CODEC)
|
if(CONFIG_CADENCE_CODEC)
|
||||||
add_local_sources(sof codec/cadence.c)
|
add_local_sources(sof codec/cadence.c)
|
||||||
|
|
||||||
|
if(CONFIG_CADENCE_CODEC_WRAPPER)
|
||||||
|
sof_add_static_library(codec_wrapper_lib ${CONFIG_CADENCE_CODEC_WRAPPER_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_CADENCE_CODEC_AAC_DEC)
|
||||||
|
sof_add_static_library(xa_aac_dec ${CONFIG_CADENCE_CODEC_AAC_DEC_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_CADENCE_CODEC_BSAC_DEC)
|
||||||
|
sof_add_static_library(xa_bsac_dec ${CONFIG_CADENCE_CODEC_BSAC_DEC_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
if(CONFIG_CADENCE_CODEC_DAB_DEC)
|
||||||
|
sof_add_static_library(xa_dab_dec ${CONFIG_CADENCE_CODEC_DAB_DEC_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
if(CONFIG_CADENCE_CODEC_DRM_DEC)
|
||||||
|
sof_add_static_library(xa_drm_dec ${CONFIG_CADENCE_CODEC_DRM_DEC_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
if(CONFIG_CADENCE_CODEC_MP3_DEC)
|
||||||
|
sof_add_static_library(xa_mp3_dec ${CONFIG_CADENCE_CODEC_MP3_DEC_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
if(CONFIG_CADENCE_CODEC_SBC_DEC)
|
||||||
|
sof_add_static_library(xa_sbc_dec ${CONFIG_CADENCE_CODEC_SBC_DEC_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_PASSTHROUGH_CODEC)
|
if(CONFIG_PASSTHROUGH_CODEC)
|
||||||
|
|
|
@ -19,6 +19,14 @@ if CADENCE_CODEC
|
||||||
Select for cadence_codec_api wrapper function that will allow
|
Select for cadence_codec_api wrapper function that will allow
|
||||||
users to call into codecs which conforms to the Cadence API without
|
users to call into codecs which conforms to the Cadence API without
|
||||||
explicitly knowing/using the entry function symbol name.
|
explicitly knowing/using the entry function symbol name.
|
||||||
|
|
||||||
|
if CADENCE_CODEC_WRAPPER
|
||||||
|
config CADENCE_CODEC_WRAPPER_LIB
|
||||||
|
string "Cadence codec wrapper library name"
|
||||||
|
help
|
||||||
|
This option is a string and takes the full name of the codec wrapper library binary.
|
||||||
|
endif
|
||||||
|
|
||||||
config CADENCE_CODEC_AAC_DEC
|
config CADENCE_CODEC_AAC_DEC
|
||||||
bool "Cadence AAC decoder"
|
bool "Cadence AAC decoder"
|
||||||
default n
|
default n
|
||||||
|
@ -26,6 +34,14 @@ if CADENCE_CODEC
|
||||||
Select for Cadence AAC decoder support.
|
Select for Cadence AAC decoder support.
|
||||||
This will cause Cadence codec to include Cadence AAC library
|
This will cause Cadence codec to include Cadence AAC library
|
||||||
api symbol.
|
api symbol.
|
||||||
|
|
||||||
|
if CADENCE_CODEC_AAC_DEC
|
||||||
|
config CADENCE_CODEC_AAC_DEC_LIB
|
||||||
|
string "Cadence AAC decoder library name"
|
||||||
|
help
|
||||||
|
This option is a string and takes the full name of the AAC decoder library binary.
|
||||||
|
endif
|
||||||
|
|
||||||
config CADENCE_CODEC_BSAC_DEC
|
config CADENCE_CODEC_BSAC_DEC
|
||||||
bool "Cadence BSAC decoder"
|
bool "Cadence BSAC decoder"
|
||||||
default n
|
default n
|
||||||
|
@ -33,6 +49,14 @@ if CADENCE_CODEC
|
||||||
Select for Cadence BSAC decoder support.
|
Select for Cadence BSAC decoder support.
|
||||||
This will cause Cadence codec to include Cadence BSAC library
|
This will cause Cadence codec to include Cadence BSAC library
|
||||||
api symbol.
|
api symbol.
|
||||||
|
|
||||||
|
if CADENCE_CODEC_BSAC_DEC
|
||||||
|
config CADENCE_CODEC_BSAC_DEC_LIB
|
||||||
|
string "Cadence BSAC decoder library name"
|
||||||
|
help
|
||||||
|
This option is a string and takes the full name of the BSAC decoder library
|
||||||
|
endif
|
||||||
|
|
||||||
config CADENCE_CODEC_DAB_DEC
|
config CADENCE_CODEC_DAB_DEC
|
||||||
bool "Cadence DAB decoder"
|
bool "Cadence DAB decoder"
|
||||||
default n
|
default n
|
||||||
|
@ -40,6 +64,14 @@ if CADENCE_CODEC
|
||||||
Select for Cadence DAB decoder support.
|
Select for Cadence DAB decoder support.
|
||||||
This will cause Cadence codec to include Cadence DAB library
|
This will cause Cadence codec to include Cadence DAB library
|
||||||
api symbol.
|
api symbol.
|
||||||
|
|
||||||
|
if CADENCE_CODEC_DAB_DEC
|
||||||
|
config CADENCE_CODEC_DAB_DEC_LIB
|
||||||
|
string "Cadence DAB decoder library name"
|
||||||
|
help
|
||||||
|
This option is a string and takes the full name of the DAB library binary.
|
||||||
|
endif
|
||||||
|
|
||||||
config CADENCE_CODEC_DRM_DEC
|
config CADENCE_CODEC_DRM_DEC
|
||||||
bool "Cadence DRM decoder"
|
bool "Cadence DRM decoder"
|
||||||
default n
|
default n
|
||||||
|
@ -47,6 +79,14 @@ if CADENCE_CODEC
|
||||||
Select for Cadence DRM decoder support.
|
Select for Cadence DRM decoder support.
|
||||||
This will cause Cadence codec to include Cadence DRM library
|
This will cause Cadence codec to include Cadence DRM library
|
||||||
api symbol.
|
api symbol.
|
||||||
|
|
||||||
|
if CADENCE_CODEC_DRM_DEC
|
||||||
|
config CADENCE_CODEC_DRM_DEC_LIB
|
||||||
|
string "Cadence DRM decoder library name"
|
||||||
|
help
|
||||||
|
This option is a string and takes the full name of the DRM library binary.
|
||||||
|
endif
|
||||||
|
|
||||||
config CADENCE_CODEC_MP3_DEC
|
config CADENCE_CODEC_MP3_DEC
|
||||||
bool "Cadence MP3 decoder"
|
bool "Cadence MP3 decoder"
|
||||||
default n
|
default n
|
||||||
|
@ -54,6 +94,14 @@ if CADENCE_CODEC
|
||||||
Select for Cadence MP3 decoder support.
|
Select for Cadence MP3 decoder support.
|
||||||
This will cause Cadence codec to include Cadence MP3 library
|
This will cause Cadence codec to include Cadence MP3 library
|
||||||
api symbol.
|
api symbol.
|
||||||
|
|
||||||
|
if CADENCE_CODEC_MP3_DEC
|
||||||
|
config CADENCE_CODEC_MP3_DEC_LIB
|
||||||
|
string "Cadence MP3 decoder library name"
|
||||||
|
help
|
||||||
|
This option is a string and takes the full name of the MP3 library binary.
|
||||||
|
endif
|
||||||
|
|
||||||
config CADENCE_CODEC_SBC_DEC
|
config CADENCE_CODEC_SBC_DEC
|
||||||
bool "Cadence SBC decoder"
|
bool "Cadence SBC decoder"
|
||||||
default n
|
default n
|
||||||
|
@ -61,6 +109,14 @@ if CADENCE_CODEC
|
||||||
Select for Cadence SBC decoder support.
|
Select for Cadence SBC decoder support.
|
||||||
This will cause Cadence codec to include Cadence SBC library
|
This will cause Cadence codec to include Cadence SBC library
|
||||||
api symbol.
|
api symbol.
|
||||||
|
|
||||||
|
if CADENCE_CODEC_SBC_DEC
|
||||||
|
config CADENCE_CODEC_SBC_DEC_LIB
|
||||||
|
string "Cadence SBC decoder library name"
|
||||||
|
help
|
||||||
|
This option is a string and takes the full name of the SBC library binary.
|
||||||
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config PASSTHROUGH_CODEC
|
config PASSTHROUGH_CODEC
|
||||||
|
|
Loading…
Reference in New Issue