kernel_samsung_a53x/sound/soc/samsung/abox/Kconfig
2024-06-15 16:02:09 -03:00

122 lines
No EOL
4 KiB
Text
Executable file

config SND_SOC_SAMSUNG_ABOX
tristate "ASoC support for Samsung ABOX Audio"
select REGMAP_MMIO
select SND_SOC_COMPRESS
select SND_SOC_TOPOLOGY
select SND_HWDEP
help
Say Y or M if you want to add support for codecs attached to
the Samsung SoC ABOX interface. You will also need to
select the audio interfaces to support below.
config SND_SOC_SAMSUNG_ABOX_VERSION
hex "ABOX IP version"
depends on SND_SOC_SAMSUNG_ABOX
default 0x10000 if SOC_EXYNOS8895
default 0x10100 if SOC_EXYNOS9810
default 0x11100 if SOC_EXYNOS9610
default 0x12100 if SOC_EXYNOS7872
default 0x12300 if SOC_EXYNOS7885
default 0x20000 if SOC_EXYNOS9820 && SOC_EXYNOS9820_EVT0
default 0x20001 if SOC_EXYNOS9820
default 0x21000 if SOC_EXYNOS9630
default 0x30000 if SOC_EXYNOS9830 && SOC_EXYNOS9830_EVT0
default 0x30001 if SOC_EXYNOS9830
default 0x30100 if SOC_EXYNOS2100 && SOC_EXYNOS2100_EVT0
default 0x30101 if SOC_EXYNOS2100
default 0x40000 if SOC_S5E9925 && SOC_S5E9925_EVT0
default 0x40001 if SOC_S5E9925
default 0x42000 if SOC_S5E8825
help
Version of ABOX IP.
Value = 0x10000 * major + 0x100 * minor + rev.
Ex. 1.01 rev0 => 0x10100, 1.25 rev1 => 0x12501
config SND_SOC_SAMSUNG_ABOX_UDMA
bool
depends on SND_SOC_SAMSUNG_ABOX
default n if SND_SOC_SAMSUNG_ABOX_VERSION < 0x30100
default y if SND_SOC_SAMSUNG_ABOX_VERSION >= 0x30100
config SND_SOC_SAMSUNG_ABOX_V1
bool
depends on SND_SOC_SAMSUNG_ABOX
default y if SND_SOC_SAMSUNG_ABOX_VERSION < 0x20000
default n if SND_SOC_SAMSUNG_ABOX_VERSION >= 0x20000
config SND_SOC_SAMSUNG_ABOX_V2
bool
depends on SND_SOC_SAMSUNG_ABOX
default n if SND_SOC_SAMSUNG_ABOX_VERSION < 0x20000
default y if SND_SOC_SAMSUNG_ABOX_VERSION >= 0x20000 \
&& SND_SOC_SAMSUNG_ABOX_VERSION < 0x21000
config SND_SOC_SAMSUNG_ABOX_V3
bool
depends on SND_SOC_SAMSUNG_ABOX
default n if SND_SOC_SAMSUNG_ABOX_VERSION < 0x21000
default y if SND_SOC_SAMSUNG_ABOX_VERSION >= 0x21000 \
&& SND_SOC_SAMSUNG_ABOX_VERSION < 0x30100
config SND_SOC_SAMSUNG_ABOX_V3_1
bool
depends on SND_SOC_SAMSUNG_ABOX
default n if SND_SOC_SAMSUNG_ABOX_VERSION < 0x30100
default y if SND_SOC_SAMSUNG_ABOX_VERSION >= 0x30100 \
&& SND_SOC_SAMSUNG_ABOX_VERSION < 0x40000
config SND_SOC_SAMSUNG_ABOX_V4
bool
depends on SND_SOC_SAMSUNG_ABOX
default n if SND_SOC_SAMSUNG_ABOX_VERSION < 0x40000
default y if SND_SOC_SAMSUNG_ABOX_VERSION >= 0x40000 \
&& SND_SOC_SAMSUNG_ABOX_VERSION < 0x42000
config SND_SOC_SAMSUNG_ABOX_V4_2
bool
depends on SND_SOC_SAMSUNG_ABOX
default n if SND_SOC_SAMSUNG_ABOX_VERSION < 0x42000
default y if SND_SOC_SAMSUNG_ABOX_VERSION >= 0x42000
config SND_SOC_SAMSUNG_ABOX_SRAM_SIZE
hex "Size of SRAM for ABOX firmware"
default 0x40000 if SND_SOC_SAMSUNG_ABOX_V4
default 0x85000 if SND_SOC_SAMSUNG_ABOX_V4_2
config SND_SOC_SAMSUNG_ABOX_DRAM_SIZE
hex "Size of DRAM for ABOX firmware"
default 0x1200000 if SND_SOC_SAMSUNG_ABOX_V1
default 0x1A00000 if SND_SOC_SAMSUNG_ABOX_V2
default 0x2800000 if SND_SOC_SAMSUNG_ABOX_V3
default 0x2800000 if SND_SOC_SAMSUNG_ABOX_V3_1
default 0x2800000 if SND_SOC_SAMSUNG_ABOX_V4
default 0x2800000 if SND_SOC_SAMSUNG_ABOX_V4_2
config SND_SOC_SAMSUNG_ABOX_DEBUG
bool "Debug mode for ABOX"
depends on SND_SOC_SAMSUNG_ABOX
default n
config SEC_SND_ADAPTATION
tristate "Samsung ABOX Adaptation for Audio"
depends on SND_SOC_SAMSUNG_ABOX
help
Say Y or M if you want to add support for external devices attached to
the Samsung SoC ABOX interface. You will also need to
select the audio interfaces to support below.
config SEC_SND_SYNCHRONIZED_IPC
tristate "Samsung SYNC IPC Goodix"
help
Say Y or M if you want to add support for external devices attached to
the Samsung SoC ABOX interface. You will also need to
select the audio interfaces to support below.
config SND_SOC_SAMSUNG_ABOX_CHANGE_RMEM_SIZE
tristate "Release some reserved memory"
depends on SND_SOC_SAMSUNG_ABOX
depends on SND_SOC_SAMSUNG_AUDIO
default n
help
change reserved memory size for abox_dbg or abox_slog
check debug_level or force_upload before alloc reserved memory and change the size.