Skip to content

Commit 25540f6

Browse files
arndbbroonie
authored andcommitted
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: bec5ecd ("ASoC: pxa: avoid AC97_BUS build warning") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 2c2596f commit 25540f6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sound/soc/pxa/Kconfig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ config SND_PXA2XX_SOC_TOSA
7979
tristate "SoC AC97 Audio support for Tosa"
8080
depends on SND_PXA2XX_SOC && MACH_TOSA
8181
depends on MFD_TC6393XB
82-
depends on !AC97_BUS
82+
depends on AC97_BUS=n
8383
select SND_PXA2XX_SOC_AC97
8484
select SND_SOC_WM9712
8585
help
@@ -89,7 +89,7 @@ config SND_PXA2XX_SOC_TOSA
8989
config SND_PXA2XX_SOC_E740
9090
tristate "SoC AC97 Audio support for e740"
9191
depends on SND_PXA2XX_SOC && MACH_E740
92-
depends on !AC97_BUS
92+
depends on AC97_BUS=n
9393
select SND_SOC_WM9705
9494
select SND_PXA2XX_SOC_AC97
9595
help
@@ -99,7 +99,7 @@ config SND_PXA2XX_SOC_E740
9999
config SND_PXA2XX_SOC_E750
100100
tristate "SoC AC97 Audio support for e750"
101101
depends on SND_PXA2XX_SOC && MACH_E750
102-
depends on !AC97_BUS
102+
depends on AC97_BUS=n
103103
select SND_SOC_WM9705
104104
select SND_PXA2XX_SOC_AC97
105105
help
@@ -109,7 +109,7 @@ config SND_PXA2XX_SOC_E750
109109
config SND_PXA2XX_SOC_E800
110110
tristate "SoC AC97 Audio support for e800"
111111
depends on SND_PXA2XX_SOC && MACH_E800
112-
depends on !AC97_BUS
112+
depends on AC97_BUS=n
113113
select SND_SOC_WM9712
114114
select SND_PXA2XX_SOC_AC97
115115
help
@@ -120,7 +120,7 @@ config SND_PXA2XX_SOC_EM_X270
120120
tristate "SoC Audio support for CompuLab EM-x270, eXeda and CM-X300"
121121
depends on SND_PXA2XX_SOC && (MACH_EM_X270 || MACH_EXEDA || \
122122
MACH_CM_X300)
123-
depends on !AC97_BUS
123+
depends on AC97_BUS=n
124124
select SND_PXA2XX_SOC_AC97
125125
select SND_SOC_WM9712
126126
help
@@ -131,7 +131,7 @@ config SND_PXA2XX_SOC_PALM27X
131131
bool "SoC Audio support for Palm T|X, T5, E2 and LifeDrive"
132132
depends on SND_PXA2XX_SOC && (MACH_PALMLD || MACH_PALMTX || \
133133
MACH_PALMT5 || MACH_PALMTE2)
134-
depends on !AC97_BUS
134+
depends on AC97_BUS=n
135135
select SND_PXA2XX_SOC_AC97
136136
select SND_SOC_WM9712
137137
help
@@ -161,7 +161,7 @@ config SND_SOC_TTC_DKB
161161
config SND_SOC_ZYLONITE
162162
tristate "SoC Audio support for Marvell Zylonite"
163163
depends on SND_PXA2XX_SOC && MACH_ZYLONITE
164-
depends on !AC97_BUS
164+
depends on AC97_BUS=n
165165
select SND_PXA2XX_SOC_AC97
166166
select SND_PXA_SOC_SSP
167167
select SND_SOC_WM9713
@@ -201,7 +201,7 @@ config SND_PXA2XX_SOC_MAGICIAN
201201
config SND_PXA2XX_SOC_MIOA701
202202
tristate "SoC Audio support for MIO A701"
203203
depends on SND_PXA2XX_SOC && MACH_MIOA701
204-
depends on !AC97_BUS
204+
depends on AC97_BUS=n
205205
select SND_PXA2XX_SOC_AC97
206206
select SND_SOC_WM9713
207207
help

0 commit comments

Comments
 (0)