linux/sound/soc/amd
Julian Braha 5c7dee4407
ASoC: fix unmet dependencies on GPIOLIB for SND_SOC_DMIC
When SND_SOC_AMD_RENOIR_MACH or SND_SOC_AMD_RV_RT5682_MACH
are selected, and GPIOLIB is not selected, Kbuild gives
the following warnings, respectively:

WARNING: unmet direct dependencies detected for SND_SOC_DMIC
  Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && GPIOLIB [=n]
  Selected by [y]:
  - SND_SOC_AMD_RENOIR_MACH [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_SOC_AMD_RENOIR [=y]

and

WARNING: unmet direct dependencies detected for SND_SOC_MAX98357A
  Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && GPIOLIB [=n]
  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]

This is because SND_SOC_DMIC and SND_SOC_MAX98357A are
selected by SND_SOC_AMD_RV_RT5682_MACH and SND_SOC_AMD_RENOIR_MACH,
respectively. However, neither of the selectors depend on or select GPIOLIB,
despite their selectees depending on GPIOLIB.

These unmet dependency bugs were detected by Kismet,
a static analysis tool for Kconfig. Please advise if this
is not the appropriate solution.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
Link: https://lore.kernel.org/r/20211027184835.112916-1-julianbraha@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-10-28 13:28:16 +01:00
..
acp ASoC: amd: acp: fix Kconfig dependencies 2021-10-27 15:59:14 +01:00
include
raven Merge some cs42l42 patches into asoc-5.15 2021-08-06 01:46:24 +01:00
renoir Merge some cs42l42 patches into asoc-5.15 2021-08-06 01:46:24 +01:00
vangogh ASoC: amd: enable vangogh platform machine driver build 2021-10-15 16:10:55 +01:00
yc ASoC: amd: enable Yellow Carp platform machine driver build 2021-10-18 21:11:47 +01:00
acp3x-rt5682-max9836.c ASoC: amd: Use dev_probe_err helper 2021-07-23 14:52:50 +01:00
acp-da7219-max98357a.c ASoC: amd: acp: declare and add prefix to 'bt_uart_enable' symbol 2021-09-13 01:59:03 +01:00
acp-pcm-dma.c ASoC: amd: acp: declare and add prefix to 'bt_uart_enable' symbol 2021-09-13 01:59:03 +01:00
acp-rt5645.c ASoC: amd: acp-rt5645: Constify static snd_soc_ops 2021-10-05 13:09:58 +01:00
acp.h ASoC: amd: acp: declare and add prefix to 'bt_uart_enable' symbol 2021-09-13 01:59:03 +01:00
Kconfig ASoC: fix unmet dependencies on GPIOLIB for SND_SOC_DMIC 2021-10-28 13:28:16 +01:00
Makefile Merge series "ASoC: Add common modules support for ACP hw block" from Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>: 2021-10-23 17:30:02 +01:00