Files
linux-stable-mirror/sound/soc/sdca/Kconfig
T
Nathan ChancellorandMark Brown 64172fa308 ASoC: SDCA: Make CONFIG_SND_SOC_SDCA a user selectable symbol
Currently, CONFIG_SND_SOC_SDCA is a hidden Kconfig symbol, so it must be
selected by a user selectable symbol to be enabled. However, it may not
be possible for configurations to select this symbol without running
into a recursive dependency issue:

  error: recursive dependency detected!
          symbol SOUNDWIRE depends on SND_SOC_SDCA_OPTIONAL
          symbol SND_SOC_SDCA_OPTIONAL default value contains SND_SOC_SDCA
          symbol SND_SOC_SDCA is selected by SND_SOC_ES9356
          symbol SND_SOC_ES9356 depends on SOUNDWIRE

Turn CONFIG_SND_SOC_SDCA into a user selectable symbol so that drivers
can depend on it and allow the user to enable it explicitly.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20260526-es9356-dep-fixes-v1-1-39ac16f43d54@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-05-27 11:13:59 +01:00

62 lines
1.5 KiB
Plaintext

# SPDX-License-Identifier: GPL-2.0-only
menu "SoundWire (SDCA)"
config SND_SOC_SDCA
tristate "SDCA core support"
depends on ACPI
select AUXILIARY_BUS
help
This option enables support for the MIPI SoundWire Device
Class for Audio (SDCA).
config SND_SOC_SDCA_HID
bool "SDCA HID support"
depends on SND_SOC_SDCA
depends on HID=y || HID=SND_SOC_SDCA
default y
help
This option enables support for audio jack button reporting using HID.
config SND_SOC_SDCA_IRQ
bool "SDCA IRQ support"
select REGMAP
select REGMAP_IRQ
depends on SND_SOC_SDCA
default y
help
This option enables support for SDCA IRQs.
config SND_SOC_SDCA_FDL
bool "SDCA FDL (File DownLoad) support"
depends on SND_SOC_SDCA
default y
help
This option enables support for the File Download using UMP,
typically used for downloading firmware to devices.
config SND_SOC_SDCA_OPTIONAL
def_tristate SND_SOC_SDCA || !SND_SOC_SDCA
config SND_SOC_SDCA_CLASS
tristate "SDCA Class Driver"
depends on SOUNDWIRE
depends on HID=y || HID=SND_SOC_SDCA
depends on SND_SOC_SDCA
select SND_SOC_SDCA_CLASS_FUNCTION
select SND_SOC_SDCA_FDL
select SND_SOC_SDCA_HID
select SND_SOC_SDCA_IRQ
select REGMAP_SOUNDWIRE
help
This option enables support for the SDCA Class driver which should
support any class compliant SDCA part.
config SND_SOC_SDCA_CLASS_FUNCTION
tristate
select REGMAP_SOUNDWIRE_MBQ
help
This option enables support for the SDCA Class Function drivers,
these implement the individual functions of the SDCA Class driver.
endmenu