From 39285411d35e0d080516cb42ceba482f96f60298 Mon Sep 17 00:00:00 2001 From: Pin-chih Lin Date: Mon, 11 Jan 2021 16:17:03 +0800 Subject: [PATCH] codec_adapter: Used nested Kconfig of codec adapter codecs The codec config of codec adapter should be placed under src/audio/codec_adapter. In the future we might add multiple other types of libraries. So far we support Cadence and Dummy codecs. Signed-off-by: Pin-chih Lin --- src/audio/Kconfig | 17 +---------------- src/audio/codec_adapter/Kconfig | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 src/audio/codec_adapter/Kconfig diff --git a/src/audio/Kconfig b/src/audio/Kconfig index 38c482f9d..f06d26e01 100644 --- a/src/audio/Kconfig +++ b/src/audio/Kconfig @@ -328,23 +328,8 @@ config COMP_CODEC_ADAPTER "src\include\sof\audio\codec_adapter\interfaces.h". It is possible to link several different codecs and use them in parallel. -if COMP_CODEC_ADAPTER -config CADENCE_CODEC - bool "Cadence codec" - default n - help - Select for codecs which conforms to the Cadence API. - This will cause codec adapter component to include header - files specific to CADENCE base codecs. +rsource "codec_adapter/Kconfig" -config DUMMY_CODEC - bool "Dummy codec" - default n - help - Select for a dummy API codec implementation. - This will cause codec adapter component to include header - files specific to DUMMY base codecs. -endif endmenu # "Audio components" menu "Data formats" diff --git a/src/audio/codec_adapter/Kconfig b/src/audio/codec_adapter/Kconfig new file mode 100644 index 000000000..6d0c6cb89 --- /dev/null +++ b/src/audio/codec_adapter/Kconfig @@ -0,0 +1,21 @@ +# SPDX-License-Identifier: BSD-3-Clause + +menu "Codec Adapter codecs" + visible if COMP_CODEC_ADAPTER + + config CADENCE_CODEC + bool "Cadence codec" + default n + help + Select for codecs which conforms to the Cadence API. + This will cause codec adapter component to include header + files specific to CADENCE base codecs. + + config DUMMY_CODEC + bool "Dummy codec" + default n + help + Select for a dummy API codec implementation. + This will cause codec adapter component to include header + files specific to DUMMY base codecs. +endmenu