Skip to content

Commit 3bcfe80

Browse files
paulkocialkowskibroonie
authored andcommitted
ASoC: tegra: Remove SoC-specific Kconfig depends and selects
This removes the SoC-specific dependencies on the platform drivers, as well as SoC-specific selections of platform drivers for the machine drivers. The rationale behind this change is that the dependencies are not actual build dependencies but run-time ones. The previously listed SoCs were also incomplete: for instance, tegra124 uses the tegra30 platform drivers, which could not be built without ARCH_TEGRA_3x_SOC set. Descriptions of the tristates are also added to allow these options to be set via defconfig/menuconfig. Signed-off-by: Paul Kocialkowski <[email protected]> Acked-by: Thierry Reding <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 181e8ce commit 3bcfe80

File tree

1 file changed

+14
-28
lines changed

1 file changed

+14
-28
lines changed

sound/soc/tegra/Kconfig

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ config SND_SOC_TEGRA
99
Say Y or M here if you want support for SoC audio on Tegra.
1010

1111
config SND_SOC_TEGRA20_AC97
12-
tristate
13-
depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC
12+
tristate "Tegra20 AC97 interface"
13+
depends on SND_SOC_TEGRA
1414
select SND_SOC_AC97_BUS
1515
select SND_SOC_TEGRA20_DAS
1616
help
@@ -19,42 +19,42 @@ config SND_SOC_TEGRA20_AC97
1919
machine drivers to support below.
2020

2121
config SND_SOC_TEGRA20_DAS
22-
tristate
23-
depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC
22+
tristate "Tegra20 DAS module"
23+
depends on SND_SOC_TEGRA
2424
help
2525
Say Y or M if you want to add support for the Tegra20 DAS module.
2626
You will also need to select the individual machine drivers to
2727
support below.
2828

2929
config SND_SOC_TEGRA20_I2S
30-
tristate
31-
depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC
30+
tristate "Tegra20 I2S interface"
31+
depends on SND_SOC_TEGRA
3232
select SND_SOC_TEGRA20_DAS
3333
help
3434
Say Y or M if you want to add support for codecs attached to the
3535
Tegra20 I2S interface. You will also need to select the individual
3636
machine drivers to support below.
3737

3838
config SND_SOC_TEGRA20_SPDIF
39-
tristate
40-
depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC
39+
tristate "Tegra20 SPDIF interface"
40+
depends on SND_SOC_TEGRA
4141
default m
4242
help
4343
Say Y or M if you want to add support for the Tegra20 SPDIF interface.
4444
You will also need to select the individual machine drivers to support
4545
below.
4646

4747
config SND_SOC_TEGRA30_AHUB
48-
tristate
49-
depends on SND_SOC_TEGRA && ARCH_TEGRA_3x_SOC
48+
tristate "Tegra30 AHUB module"
49+
depends on SND_SOC_TEGRA
5050
help
51-
Say Y or M if you want to add support for the Tegra20 AHUB module.
51+
Say Y or M if you want to add support for the Tegra30 AHUB module.
5252
You will also need to select the individual machine drivers to
5353
support below.
5454

5555
config SND_SOC_TEGRA30_I2S
56-
tristate
57-
depends on SND_SOC_TEGRA && ARCH_TEGRA_3x_SOC
56+
tristate "Tegra30 I2S interface"
57+
depends on SND_SOC_TEGRA
5858
select SND_SOC_TEGRA30_AHUB
5959
help
6060
Say Y or M if you want to add support for codecs attached to the
@@ -64,8 +64,6 @@ config SND_SOC_TEGRA30_I2S
6464
config SND_SOC_TEGRA_RT5640
6565
tristate "SoC Audio support for Tegra boards using an RT5640 codec"
6666
depends on SND_SOC_TEGRA && I2C && GPIOLIB
67-
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
68-
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
6967
select SND_SOC_RT5640
7068
help
7169
Say Y or M here if you want to add support for SoC audio on Tegra
@@ -74,8 +72,6 @@ config SND_SOC_TEGRA_RT5640
7472
config SND_SOC_TEGRA_WM8753
7573
tristate "SoC Audio support for Tegra boards using a WM8753 codec"
7674
depends on SND_SOC_TEGRA && I2C && GPIOLIB
77-
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
78-
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
7975
select SND_SOC_WM8753
8076
help
8177
Say Y or M here if you want to add support for SoC audio on Tegra
@@ -84,8 +80,6 @@ config SND_SOC_TEGRA_WM8753
8480
config SND_SOC_TEGRA_WM8903
8581
tristate "SoC Audio support for Tegra boards using a WM8903 codec"
8682
depends on SND_SOC_TEGRA && I2C && GPIOLIB
87-
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
88-
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
8983
select SND_SOC_WM8903
9084
help
9185
Say Y or M here if you want to add support for SoC audio on Tegra
@@ -94,7 +88,7 @@ config SND_SOC_TEGRA_WM8903
9488

9589
config SND_SOC_TEGRA_WM9712
9690
tristate "SoC Audio support for Tegra boards using a WM9712 codec"
97-
depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC && GPIOLIB
91+
depends on SND_SOC_TEGRA && GPIOLIB
9892
select SND_SOC_TEGRA20_AC97
9993
select SND_SOC_WM9712
10094
help
@@ -104,7 +98,6 @@ config SND_SOC_TEGRA_WM9712
10498
config SND_SOC_TEGRA_TRIMSLICE
10599
tristate "SoC Audio support for TrimSlice board"
106100
depends on SND_SOC_TEGRA && I2C
107-
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
108101
select SND_SOC_TLV320AIC23_I2C
109102
help
110103
Say Y or M here if you want to add support for SoC audio on the
@@ -113,7 +106,6 @@ config SND_SOC_TEGRA_TRIMSLICE
113106
config SND_SOC_TEGRA_ALC5632
114107
tristate "SoC Audio support for Tegra boards using an ALC5632 codec"
115108
depends on SND_SOC_TEGRA && I2C && GPIOLIB
116-
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
117109
select SND_SOC_ALC5632
118110
help
119111
Say Y or M here if you want to add support for SoC audio on the
@@ -122,8 +114,6 @@ config SND_SOC_TEGRA_ALC5632
122114
config SND_SOC_TEGRA_MAX98090
123115
tristate "SoC Audio support for Tegra boards using a MAX98090 codec"
124116
depends on SND_SOC_TEGRA && I2C && GPIOLIB
125-
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
126-
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
127117
select SND_SOC_MAX98090
128118
help
129119
Say Y or M here if you want to add support for SoC audio on Tegra
@@ -132,8 +122,6 @@ config SND_SOC_TEGRA_MAX98090
132122
config SND_SOC_TEGRA_RT5677
133123
tristate "SoC Audio support for Tegra boards using a RT5677 codec"
134124
depends on SND_SOC_TEGRA && I2C && GPIOLIB
135-
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
136-
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
137125
select SND_SOC_RT5677
138126
help
139127
Say Y or M here if you want to add support for SoC audio on Tegra
@@ -142,8 +130,6 @@ config SND_SOC_TEGRA_RT5677
142130
config SND_SOC_TEGRA_SGTL5000
143131
tristate "SoC Audio support for Tegra boards using a SGTL5000 codec"
144132
depends on SND_SOC_TEGRA && I2C && GPIOLIB
145-
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
146-
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
147133
select SND_SOC_SGTL5000
148134
help
149135
Say Y or M here if you want to add support for SoC audio on Tegra

0 commit comments

Comments
 (0)