diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2017-08-17 15:05:52 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-18 07:14:58 -0400 |
commit | 3bcfe80f1c471b6bbade9f1a725778ea0471bb49 (patch) | |
tree | 487f92478163acadc66599240b3014be182cad1d | |
parent | 181e8ce6a6c9a25ffbf10b09d8481f134c5a79ba (diff) |
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 <contact@paulk.fr>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/tegra/Kconfig | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/sound/soc/tegra/Kconfig b/sound/soc/tegra/Kconfig index efbe8d4c019e..6875fc39a575 100644 --- a/sound/soc/tegra/Kconfig +++ b/sound/soc/tegra/Kconfig | |||
@@ -9,8 +9,8 @@ config SND_SOC_TEGRA | |||
9 | Say Y or M here if you want support for SoC audio on Tegra. | 9 | Say Y or M here if you want support for SoC audio on Tegra. |
10 | 10 | ||
11 | config SND_SOC_TEGRA20_AC97 | 11 | config SND_SOC_TEGRA20_AC97 |
12 | tristate | 12 | tristate "Tegra20 AC97 interface" |
13 | depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC | 13 | depends on SND_SOC_TEGRA |
14 | select SND_SOC_AC97_BUS | 14 | select SND_SOC_AC97_BUS |
15 | select SND_SOC_TEGRA20_DAS | 15 | select SND_SOC_TEGRA20_DAS |
16 | help | 16 | help |
@@ -19,16 +19,16 @@ config SND_SOC_TEGRA20_AC97 | |||
19 | machine drivers to support below. | 19 | machine drivers to support below. |
20 | 20 | ||
21 | config SND_SOC_TEGRA20_DAS | 21 | config SND_SOC_TEGRA20_DAS |
22 | tristate | 22 | tristate "Tegra20 DAS module" |
23 | depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC | 23 | depends on SND_SOC_TEGRA |
24 | help | 24 | help |
25 | Say Y or M if you want to add support for the Tegra20 DAS module. | 25 | Say Y or M if you want to add support for the Tegra20 DAS module. |
26 | You will also need to select the individual machine drivers to | 26 | You will also need to select the individual machine drivers to |
27 | support below. | 27 | support below. |
28 | 28 | ||
29 | config SND_SOC_TEGRA20_I2S | 29 | config SND_SOC_TEGRA20_I2S |
30 | tristate | 30 | tristate "Tegra20 I2S interface" |
31 | depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC | 31 | depends on SND_SOC_TEGRA |
32 | select SND_SOC_TEGRA20_DAS | 32 | select SND_SOC_TEGRA20_DAS |
33 | help | 33 | help |
34 | Say Y or M if you want to add support for codecs attached to the | 34 | Say Y or M if you want to add support for codecs attached to the |
@@ -36,8 +36,8 @@ config SND_SOC_TEGRA20_I2S | |||
36 | machine drivers to support below. | 36 | machine drivers to support below. |
37 | 37 | ||
38 | config SND_SOC_TEGRA20_SPDIF | 38 | config SND_SOC_TEGRA20_SPDIF |
39 | tristate | 39 | tristate "Tegra20 SPDIF interface" |
40 | depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC | 40 | depends on SND_SOC_TEGRA |
41 | default m | 41 | default m |
42 | help | 42 | help |
43 | Say Y or M if you want to add support for the Tegra20 SPDIF interface. | 43 | Say Y or M if you want to add support for the Tegra20 SPDIF interface. |
@@ -45,16 +45,16 @@ config SND_SOC_TEGRA20_SPDIF | |||
45 | below. | 45 | below. |
46 | 46 | ||
47 | config SND_SOC_TEGRA30_AHUB | 47 | config SND_SOC_TEGRA30_AHUB |
48 | tristate | 48 | tristate "Tegra30 AHUB module" |
49 | depends on SND_SOC_TEGRA && ARCH_TEGRA_3x_SOC | 49 | depends on SND_SOC_TEGRA |
50 | help | 50 | 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. |
52 | You will also need to select the individual machine drivers to | 52 | You will also need to select the individual machine drivers to |
53 | support below. | 53 | support below. |
54 | 54 | ||
55 | config SND_SOC_TEGRA30_I2S | 55 | config SND_SOC_TEGRA30_I2S |
56 | tristate | 56 | tristate "Tegra30 I2S interface" |
57 | depends on SND_SOC_TEGRA && ARCH_TEGRA_3x_SOC | 57 | depends on SND_SOC_TEGRA |
58 | select SND_SOC_TEGRA30_AHUB | 58 | select SND_SOC_TEGRA30_AHUB |
59 | help | 59 | help |
60 | Say Y or M if you want to add support for codecs attached to the | 60 | Say Y or M if you want to add support for codecs attached to the |
@@ -64,8 +64,6 @@ config SND_SOC_TEGRA30_I2S | |||
64 | config SND_SOC_TEGRA_RT5640 | 64 | config SND_SOC_TEGRA_RT5640 |
65 | tristate "SoC Audio support for Tegra boards using an RT5640 codec" | 65 | tristate "SoC Audio support for Tegra boards using an RT5640 codec" |
66 | depends on SND_SOC_TEGRA && I2C && GPIOLIB | 66 | 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 | ||
69 | select SND_SOC_RT5640 | 67 | select SND_SOC_RT5640 |
70 | help | 68 | help |
71 | Say Y or M here if you want to add support for SoC audio on Tegra | 69 | 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 | |||
74 | config SND_SOC_TEGRA_WM8753 | 72 | config SND_SOC_TEGRA_WM8753 |
75 | tristate "SoC Audio support for Tegra boards using a WM8753 codec" | 73 | tristate "SoC Audio support for Tegra boards using a WM8753 codec" |
76 | depends on SND_SOC_TEGRA && I2C && GPIOLIB | 74 | 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 | ||
79 | select SND_SOC_WM8753 | 75 | select SND_SOC_WM8753 |
80 | help | 76 | help |
81 | Say Y or M here if you want to add support for SoC audio on Tegra | 77 | 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 | |||
84 | config SND_SOC_TEGRA_WM8903 | 80 | config SND_SOC_TEGRA_WM8903 |
85 | tristate "SoC Audio support for Tegra boards using a WM8903 codec" | 81 | tristate "SoC Audio support for Tegra boards using a WM8903 codec" |
86 | depends on SND_SOC_TEGRA && I2C && GPIOLIB | 82 | 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 | ||
89 | select SND_SOC_WM8903 | 83 | select SND_SOC_WM8903 |
90 | help | 84 | help |
91 | Say Y or M here if you want to add support for SoC audio on Tegra | 85 | 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 | |||
94 | 88 | ||
95 | config SND_SOC_TEGRA_WM9712 | 89 | config SND_SOC_TEGRA_WM9712 |
96 | tristate "SoC Audio support for Tegra boards using a WM9712 codec" | 90 | 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 |
98 | select SND_SOC_TEGRA20_AC97 | 92 | select SND_SOC_TEGRA20_AC97 |
99 | select SND_SOC_WM9712 | 93 | select SND_SOC_WM9712 |
100 | help | 94 | help |
@@ -104,7 +98,6 @@ config SND_SOC_TEGRA_WM9712 | |||
104 | config SND_SOC_TEGRA_TRIMSLICE | 98 | config SND_SOC_TEGRA_TRIMSLICE |
105 | tristate "SoC Audio support for TrimSlice board" | 99 | tristate "SoC Audio support for TrimSlice board" |
106 | depends on SND_SOC_TEGRA && I2C | 100 | depends on SND_SOC_TEGRA && I2C |
107 | select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC | ||
108 | select SND_SOC_TLV320AIC23_I2C | 101 | select SND_SOC_TLV320AIC23_I2C |
109 | help | 102 | help |
110 | Say Y or M here if you want to add support for SoC audio on the | 103 | 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 | |||
113 | config SND_SOC_TEGRA_ALC5632 | 106 | config SND_SOC_TEGRA_ALC5632 |
114 | tristate "SoC Audio support for Tegra boards using an ALC5632 codec" | 107 | tristate "SoC Audio support for Tegra boards using an ALC5632 codec" |
115 | depends on SND_SOC_TEGRA && I2C && GPIOLIB | 108 | depends on SND_SOC_TEGRA && I2C && GPIOLIB |
116 | select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC | ||
117 | select SND_SOC_ALC5632 | 109 | select SND_SOC_ALC5632 |
118 | help | 110 | help |
119 | Say Y or M here if you want to add support for SoC audio on the | 111 | 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 | |||
122 | config SND_SOC_TEGRA_MAX98090 | 114 | config SND_SOC_TEGRA_MAX98090 |
123 | tristate "SoC Audio support for Tegra boards using a MAX98090 codec" | 115 | tristate "SoC Audio support for Tegra boards using a MAX98090 codec" |
124 | depends on SND_SOC_TEGRA && I2C && GPIOLIB | 116 | 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 | ||
127 | select SND_SOC_MAX98090 | 117 | select SND_SOC_MAX98090 |
128 | help | 118 | help |
129 | Say Y or M here if you want to add support for SoC audio on Tegra | 119 | 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 | |||
132 | config SND_SOC_TEGRA_RT5677 | 122 | config SND_SOC_TEGRA_RT5677 |
133 | tristate "SoC Audio support for Tegra boards using a RT5677 codec" | 123 | tristate "SoC Audio support for Tegra boards using a RT5677 codec" |
134 | depends on SND_SOC_TEGRA && I2C && GPIOLIB | 124 | 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 | ||
137 | select SND_SOC_RT5677 | 125 | select SND_SOC_RT5677 |
138 | help | 126 | help |
139 | Say Y or M here if you want to add support for SoC audio on Tegra | 127 | 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 | |||
142 | config SND_SOC_TEGRA_SGTL5000 | 130 | config SND_SOC_TEGRA_SGTL5000 |
143 | tristate "SoC Audio support for Tegra boards using a SGTL5000 codec" | 131 | tristate "SoC Audio support for Tegra boards using a SGTL5000 codec" |
144 | depends on SND_SOC_TEGRA && I2C && GPIOLIB | 132 | 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 | ||
147 | select SND_SOC_SGTL5000 | 133 | select SND_SOC_SGTL5000 |
148 | help | 134 | help |
149 | Say Y or M here if you want to add support for SoC audio on Tegra | 135 | Say Y or M here if you want to add support for SoC audio on Tegra |