mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
08432e59c7
The new driver fails to build when PCI is disabled:
WARNING: unmet direct dependencies detected for SND_SOC_LOONGSON_I2S_PCI
Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && (LOONGARCH || COMPILE_TEST [=y]) && PCI [=n]
Selected by [y]:
- SND_SOC_LOONGSON_CARD [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && (LOONGARCH || COMPILE_TEST [=y])
sound/soc/loongson/loongson_i2s_pci.c:167:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
module_pci_driver(loongson_i2s_driver);
Add the appropriate Kconfig dependency.
Fixes: d24028606e
("ASoC: loongson: Add Loongson ASoC Sound Card Support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230616090156.2347850-3-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
28 lines
715 B
Plaintext
28 lines
715 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
menu "SoC Audio for Loongson CPUs"
|
|
depends on LOONGARCH || COMPILE_TEST
|
|
|
|
config SND_SOC_LOONGSON_I2S_PCI
|
|
tristate "Loongson I2S-PCI Device Driver"
|
|
select REGMAP_MMIO
|
|
depends on PCI
|
|
help
|
|
Say Y or M if you want to add support for I2S driver for
|
|
Loongson I2S controller.
|
|
|
|
The controller is found in loongson bridge chips or SoCs,
|
|
and work as a PCI device.
|
|
|
|
config SND_SOC_LOONGSON_CARD
|
|
tristate "Loongson Sound Card Driver"
|
|
select SND_SOC_LOONGSON_I2S_PCI
|
|
depends on PCI
|
|
help
|
|
Say Y or M if you want to add support for SoC audio using
|
|
loongson I2S controller.
|
|
|
|
The driver add support for ALSA SoC Audio support using
|
|
loongson I2S controller.
|
|
|
|
endmenu
|