mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
Make the Kconfig item for cirrus_scodec visible if CONFIG_KUNIT is enabled. This is so that its KUnit test can be enabled by KUnit scripts without requiring a large amount of irrelevant additional components. The general rule for KUNIT_ALL_TESTS is that it should only enable tests for components that are already selected. However, the UML environment does not support ACPI, which means the HDA codec drivers that use cirrus_scodec cannot be selected. But cirrus_scodec does not need ACPI. By making the Kconfig option visible if CONFIG_KUNIT, the KUnit test can be enabled with only the minimal set of functionality that is required for cirrus_scodec. This is still compliant with the KUNIT_ALL_TESTS rule "only tests for enabled modules" because by default cirrus_scodec will only be enabled if the drivers that use it are enabled. It must be intentionally enabled to force it to be included for testing. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://patch.msgid.link/20260709121224.614350-1-rf@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
146 lines
4.0 KiB
Plaintext
146 lines
4.0 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config SND_HDA_CIRRUS_SCODEC
|
|
tristate "Cirrus side-codec library" if KUNIT
|
|
|
|
config SND_HDA_CIRRUS_SCODEC_KUNIT_TEST
|
|
tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS
|
|
depends on SND_HDA_CIRRUS_SCODEC && GPIOLIB && KUNIT
|
|
default KUNIT_ALL_TESTS
|
|
help
|
|
This builds KUnit tests for the cirrus side-codec library.
|
|
For more information on KUnit and unit tests in general,
|
|
please refer to the KUnit documentation in
|
|
Documentation/dev-tools/kunit/.
|
|
If in doubt, say "N".
|
|
|
|
config SND_HDA_SCODEC_CS35L41
|
|
tristate
|
|
select SND_HDA_GENERIC
|
|
select REGMAP_IRQ
|
|
select FW_CS_DSP
|
|
|
|
config SND_HDA_SCODEC_COMPONENT
|
|
tristate
|
|
|
|
config SND_HDA_SCODEC_CS35L41_I2C
|
|
tristate "Build CS35L41 HD-audio side codec support for I2C Bus"
|
|
depends on I2C
|
|
depends on ACPI
|
|
depends on EFI
|
|
depends on SND_SOC
|
|
imply SERIAL_MULTI_INSTANTIATE
|
|
select SND_SOC_CS35L41_LIB
|
|
select SND_HDA_SCODEC_CS35L41
|
|
select SND_SOC_CS_AMP_LIB
|
|
help
|
|
Say Y or M here to include CS35L41 I2C HD-audio side codec support
|
|
in snd-hda-intel driver, such as ALC287.
|
|
|
|
comment "Set to Y if you want auto-loading the side codec driver"
|
|
depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_I2C=m
|
|
|
|
config SND_HDA_SCODEC_CS35L41_SPI
|
|
tristate "Build CS35L41 HD-audio codec support for SPI Bus"
|
|
depends on SPI_MASTER
|
|
depends on ACPI
|
|
depends on EFI
|
|
depends on SND_SOC
|
|
imply SERIAL_MULTI_INSTANTIATE
|
|
select SND_SOC_CS35L41_LIB
|
|
select SND_HDA_SCODEC_CS35L41
|
|
select SND_SOC_CS_AMP_LIB
|
|
help
|
|
Say Y or M here to include CS35L41 SPI HD-audio side codec support
|
|
in snd-hda-intel driver, such as ALC287.
|
|
|
|
comment "Set to Y if you want auto-loading the side codec driver"
|
|
depends on SND_HDA=y && SND_HDA_SCODEC_CS35L41_SPI=m
|
|
|
|
config SND_HDA_SCODEC_CS35L56
|
|
tristate
|
|
|
|
config SND_HDA_SCODEC_CS35L56_I2C
|
|
tristate "Build CS35L56 HD-audio side codec support for I2C Bus"
|
|
depends on I2C
|
|
depends on ACPI
|
|
depends on SND_SOC
|
|
select FW_CS_DSP
|
|
imply SERIAL_MULTI_INSTANTIATE
|
|
select SND_HDA_GENERIC
|
|
select SND_SOC_CS35L56_SHARED
|
|
select SND_HDA_SCODEC_CS35L56
|
|
select SND_HDA_CIRRUS_SCODEC
|
|
select SND_SOC_CS_AMP_LIB
|
|
help
|
|
Say Y or M here to include CS35L56 amplifier support with
|
|
I2C control.
|
|
|
|
config SND_HDA_SCODEC_CS35L56_SPI
|
|
tristate "Build CS35L56 HD-audio side codec support for SPI Bus"
|
|
depends on SPI_MASTER
|
|
depends on ACPI
|
|
depends on SND_SOC
|
|
select FW_CS_DSP
|
|
imply SERIAL_MULTI_INSTANTIATE
|
|
select SND_HDA_GENERIC
|
|
select SND_SOC_CS35L56_SHARED
|
|
select SND_HDA_SCODEC_CS35L56
|
|
select SND_HDA_CIRRUS_SCODEC
|
|
select SND_SOC_CS_AMP_LIB
|
|
help
|
|
Say Y or M here to include CS35L56 amplifier support with
|
|
SPI control.
|
|
|
|
menu "CS35L56 driver options"
|
|
depends on SND_HDA_SCODEC_CS35L56
|
|
|
|
config SND_HDA_SCODEC_CS35L56_CAL_DEBUGFS
|
|
bool "CS35L56 create debugfs for factory calibration"
|
|
depends on DEBUG_FS
|
|
select SND_SOC_CS35L56_CAL_DEBUGFS_COMMON
|
|
help
|
|
Create debugfs entries used during factory-line manufacture
|
|
for factory calibration.
|
|
|
|
If unsure select "N".
|
|
endmenu
|
|
|
|
config SND_HDA_SCODEC_TAS2781
|
|
tristate
|
|
select SND_HDA_GENERIC
|
|
|
|
config SND_HDA_SCODEC_TAS2781_I2C
|
|
tristate "Build TAS2781 HD-audio side codec support for I2C Bus"
|
|
depends on I2C
|
|
depends on ACPI
|
|
depends on EFI
|
|
depends on SND_SOC
|
|
select SND_HDA_SCODEC_TAS2781
|
|
select SND_SOC_TAS2781_COMLIB_I2C
|
|
select SND_SOC_TAS2781_FMWLIB
|
|
select CRC32
|
|
help
|
|
Say Y or M here to include TAS2781 I2C HD-audio side codec support
|
|
in snd-hda-intel driver, such as ALC287.
|
|
|
|
comment "Set to Y if you want auto-loading the side codec driver"
|
|
depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_I2C=m
|
|
|
|
config SND_HDA_SCODEC_TAS2781_SPI
|
|
tristate "Build TAS2781 HD-audio side codec support for SPI Bus"
|
|
depends on SPI_MASTER
|
|
depends on ACPI
|
|
depends on EFI
|
|
depends on SND_SOC
|
|
select SND_HDA_SCODEC_TAS2781
|
|
select SND_SOC_TAS2781_COMLIB
|
|
select SND_SOC_TAS2781_FMWLIB
|
|
select CRC8
|
|
select CRC32
|
|
help
|
|
Say Y or M here to include TAS2781 SPI HD-audio side codec support
|
|
in snd-hda-intel driver, such as ALC287.
|
|
|
|
comment "Set to Y if you want auto-loading the side codec driver"
|
|
depends on SND_HDA=y && SND_HDA_SCODEC_TAS2781_SPI=m
|