mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 09:34:12 +08:00
a50067d4f3
With SND_SOC_AMD_RV_RT5682_MACH using the i2c version of the driver, we can easily get a build failure when I2C is built-in but soundwire is not: WARNING: unmet direct dependencies detected for SND_SOC_RT5682 Depends on [m]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && (I2C [=y] || SOUNDWIRE [=m]) && (SOUNDWIRE [=m] || !SOUNDWIRE [=m]) && (I2C [=y] || !I2C [=y]) Selected by [y]: - SND_SOC_AMD_RV_RT5682_MACH [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_SOC_AMD_ACP3x [=y] && I2C [=y] && CROS_EC [=y] Selected by [m]: - SND_SOC_RT5682_SDW [=m] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SOUNDWIRE [=m] && (I2C [=y] || !I2C [=y]) Rework the driver to have three separate modules, with the main driver just dealing with the common bits and the actual initialization as part of i2c and sdw specific modules. The conversion is fairly mechanical to keep it easy to review, i.e. it moves code around with the minimal required renaming and changes. Fixes:6b8e4e7db3
("ASoC: amd: Add machine driver for Raven based platform") Fixes:fd443a20c2
("ASoC: rt5682: fix I2C/Soundwire dependencies") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200528091851.2889754-1-arnd@arndb.de Signed-off-by: Mark Brown <broonie@kernel.org>
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config SND_SOC_AMD_ACP
|
|
tristate "AMD Audio Coprocessor support"
|
|
help
|
|
This option enables ACP DMA support on AMD platform.
|
|
|
|
config SND_SOC_AMD_CZ_DA7219MX98357_MACH
|
|
tristate "AMD CZ support for DA7219 and MAX9835"
|
|
select SND_SOC_DA7219
|
|
select SND_SOC_MAX98357A
|
|
select SND_SOC_ADAU7002
|
|
select REGULATOR
|
|
depends on SND_SOC_AMD_ACP && I2C && GPIOLIB
|
|
help
|
|
This option enables machine driver for DA7219 and MAX9835.
|
|
|
|
config SND_SOC_AMD_CZ_RT5645_MACH
|
|
tristate "AMD CZ support for RT5645"
|
|
select SND_SOC_RT5645
|
|
depends on SND_SOC_AMD_ACP && I2C
|
|
help
|
|
This option enables machine driver for rt5645.
|
|
|
|
config SND_SOC_AMD_ACP3x
|
|
tristate "AMD Audio Coprocessor-v3.x support"
|
|
depends on X86 && PCI
|
|
help
|
|
This option enables ACP v3.x I2S support on AMD platform
|
|
|
|
config SND_SOC_AMD_RV_RT5682_MACH
|
|
tristate "AMD RV support for RT5682"
|
|
select SND_SOC_RT5682_I2C
|
|
select SND_SOC_MAX98357A
|
|
select SND_SOC_CROS_EC_CODEC
|
|
select I2C_CROS_EC_TUNNEL
|
|
depends on SND_SOC_AMD_ACP3x && I2C && CROS_EC
|
|
help
|
|
This option enables machine driver for RT5682 and MAX9835.
|
|
|
|
config SND_SOC_AMD_RENOIR
|
|
tristate "AMD Audio Coprocessor - Renoir support"
|
|
depends on X86 && PCI
|
|
help
|
|
This option enables ACP support for Renoir platform
|
|
|
|
config SND_SOC_AMD_RENOIR_MACH
|
|
tristate "AMD Renoir support for DMIC"
|
|
select SND_SOC_DMIC
|
|
depends on SND_SOC_AMD_RENOIR
|
|
help
|
|
This option enables machine driver for DMIC
|