From e4c2872b60f6dff42363ab2fba6f98d38dc955db Mon Sep 17 00:00:00 2001 From: Paul Olaru Date: Mon, 25 Jul 2022 15:41:48 +0300 Subject: [PATCH] audio: module_adapter: Visual fixes to kconfig Group together the Cadence main Kconfig option with the options related to various Cadence based codecs. This is only a visual fix. Signed-off-by: Paul Olaru --- src/audio/module_adapter/Kconfig | 90 ++++++++++++++++---------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/src/audio/module_adapter/Kconfig b/src/audio/module_adapter/Kconfig index 7f5bd64ca694..e132250f264d 100644 --- a/src/audio/module_adapter/Kconfig +++ b/src/audio/module_adapter/Kconfig @@ -11,50 +11,6 @@ menu "Processing modules" This will cause codec adapter component to include header files specific to CADENCE base codecs. - config COMP_VOLUME - bool "Volume component" - default y - depends on COMP_MODULE_ADAPTER - help - Select for Volume component - -if COMP_VOLUME - -config COMP_VOLUME_WINDOWS_FADE - bool "Windows Fade shape volume transitions support" - help - This option enables volume ramp shape that follows - power of 1.75. The shape is not linear, not logarithmic. - The power function uses a lookup table that consumes - 256 bytes. The topology must set volume ramp token to - SOF_VOLUME_WINDOWS_FADE for the volume instance to use - this ramp shape. - -config COMP_VOLUME_LINEAR_RAMP - bool "Linear ramp volume transitions support" - default y - depends on IPC_MAJOR_3 - help - This option enables volume linear ramp shape. - -config COMP_PEAK_VOL - bool "Report peak vol data to host" - default y - depends on IPC_MAJOR_4 - help - This option enables reporting to host peak vol regs. - See: struct ipc4_peak_volume_regs - -config COMP_GAIN - bool "GAIN component" - default y - depends on IPC_MAJOR_4 - help - This option enables gain to change volume. It works - as peak volume without updating peak vol to host - -endif # volume - if CADENCE_CODEC config CADENCE_CODEC_WRAPPER bool 'Cadence codec wrapper' @@ -192,7 +148,51 @@ if CADENCE_CODEC This option is a string and takes the full name of the SRC library binary. endif -endif +endif # Cadence + + config COMP_VOLUME + bool "Volume component" + default y + depends on COMP_MODULE_ADAPTER + help + Select for Volume component + +if COMP_VOLUME + +config COMP_VOLUME_WINDOWS_FADE + bool "Windows Fade shape volume transitions support" + help + This option enables volume ramp shape that follows + power of 1.75. The shape is not linear, not logarithmic. + The power function uses a lookup table that consumes + 256 bytes. The topology must set volume ramp token to + SOF_VOLUME_WINDOWS_FADE for the volume instance to use + this ramp shape. + +config COMP_VOLUME_LINEAR_RAMP + bool "Linear ramp volume transitions support" + default y + depends on IPC_MAJOR_3 + help + This option enables volume linear ramp shape. + +config COMP_PEAK_VOL + bool "Report peak vol data to host" + default y + depends on IPC_MAJOR_4 + help + This option enables reporting to host peak vol regs. + See: struct ipc4_peak_volume_regs + +config COMP_GAIN + bool "GAIN component" + default y + depends on IPC_MAJOR_4 + help + This option enables gain to change volume. It works + as peak volume without updating peak vol to host + +endif # volume config PASSTHROUGH_CODEC bool "Passthrough codec"