ASoC: pxa: avoid AC97_BUS build warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Sep 2018 12:46:35 +0000 (14:46 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 27 Sep 2018 22:22:26 +0000 (23:22 +0100)
commitbec5ecdf41d404691980c9c82ba867113cc8dee5
tree4202e5a58bd4c6229b83eb89c5719e6ffb8cdfdc
parent42cfb412e24ffbb46d6de9590293bc44f921a0fb
ASoC: pxa: avoid AC97_BUS build warning

Selecting AC97_BUS_NEW from SND_PXA2XX_SOC_AC97 leads to a Kconfig
warning if any other driver selects AC97_BUS:

WARNING: unmet direct dependencies detected for AC97_BUS_COMPAT
  Depends on [n]: SOUND [=y] && !UML && SND [=y] && AC97_BUS_NEW [=y] && !AC97_BUS [=y]
  Selected by [y]:
  - SND_SOC_WM9713 [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && AC97_BUS_NEW [=y]

I don't know if that combination is supposed to work.
Assuming it is not, this adds a dependency on all users
for PXA to avoids the combination.

Fixes: 1c8bc7b3de5e ("ASoC: pxa: switch to new ac97 bus support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/Kconfig