]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: pxa: change ac97 dependencies
authorArnd Bergmann <arnd@arndb.de>
Fri, 2 Nov 2018 11:20:39 +0000 (12:20 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 6 Nov 2018 17:23:24 +0000 (17:23 +0000)
commit989b587b9c0dc3d7e3b6071a082e08b450c4f26c
tree81db0109228a8d6bfa47cf876bf27a3dd259a701
parent8fd5828cbc0e752f91171e67a6dcd90bd900ec4e
ASoC: pxa: change ac97 dependencies

Enabling both the old AC97_BUS code and the new AC97_BUS_COMPAT causes
problems because both modules provide an exported snd_ac97_reset()
function.

I had tried to fix the problem of having both coexist earlier, but
my patch only prevented them from being built-in. This is because
of a special Kconfig feature that lets a symbol have a dependency
on another one being disabled, but still allow both to be loadable
modules.

Changing the dependency to =n avoids that problem, now we can only
build the new driver if the old one is completely disabled.

If we could figure out a way to let rename one of the reset
functions and have each driver link to exactly the old or
the compat code, that would also work, but I could not find if
that's possible.

Fixes: 28da9a2a7313 ("ASoC: pxa: avoid AC97_BUS build warning")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/Kconfig