aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-05-22 18:11:19 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-03 08:06:37 -0400
commitb350ecbe4c2e4639ed3a716ec67accb744e4417d (patch)
tree59c45e1a3be06258f086c64738e2d1743d1c2ece /sound
parent14df415a38234aa483219335bc6c1ee899b85e10 (diff)
ASoC: tegra+wm8903: remove non-DT support for Seaboard
In kernel 3.6, Seaboard will only be supported when booting using device tree; the board files are being removed. Hence, remove the non-DT support for Seaboard and derivatives Kaen and Aebl from the audio driver. Harmony is the only remaining board supported by this driver when not using DT. This support is currently scheduled for removal in 3.7. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/tegra/tegra_wm8903.c48
1 files changed, 2 insertions, 46 deletions
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index 1fd6a41b9162..b75e0e8db1d0 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -28,8 +28,6 @@
28 * 28 *
29 */ 29 */
30 30
31#include <asm/mach-types.h>
32
33#include <linux/module.h> 31#include <linux/module.h>
34#include <linux/platform_device.h> 32#include <linux/platform_device.h>
35#include <linux/slab.h> 33#include <linux/slab.h>
@@ -196,37 +194,6 @@ static const struct snd_soc_dapm_route harmony_audio_map[] = {
196 {"IN1L", NULL, "Mic Jack"}, 194 {"IN1L", NULL, "Mic Jack"},
197}; 195};
198 196
199static const struct snd_soc_dapm_route seaboard_audio_map[] = {
200 {"Headphone Jack", NULL, "HPOUTR"},
201 {"Headphone Jack", NULL, "HPOUTL"},
202 {"Int Spk", NULL, "ROP"},
203 {"Int Spk", NULL, "RON"},
204 {"Int Spk", NULL, "LOP"},
205 {"Int Spk", NULL, "LON"},
206 {"Mic Jack", NULL, "MICBIAS"},
207 {"IN1R", NULL, "Mic Jack"},
208};
209
210static const struct snd_soc_dapm_route kaen_audio_map[] = {
211 {"Headphone Jack", NULL, "HPOUTR"},
212 {"Headphone Jack", NULL, "HPOUTL"},
213 {"Int Spk", NULL, "ROP"},
214 {"Int Spk", NULL, "RON"},
215 {"Int Spk", NULL, "LOP"},
216 {"Int Spk", NULL, "LON"},
217 {"Mic Jack", NULL, "MICBIAS"},
218 {"IN2R", NULL, "Mic Jack"},
219};
220
221static const struct snd_soc_dapm_route aebl_audio_map[] = {
222 {"Headphone Jack", NULL, "HPOUTR"},
223 {"Headphone Jack", NULL, "HPOUTL"},
224 {"Int Spk", NULL, "LINEOUTR"},
225 {"Int Spk", NULL, "LINEOUTL"},
226 {"Mic Jack", NULL, "MICBIAS"},
227 {"IN1R", NULL, "Mic Jack"},
228};
229
230static const struct snd_kcontrol_new tegra_wm8903_controls[] = { 197static const struct snd_kcontrol_new tegra_wm8903_controls[] = {
231 SOC_DAPM_PIN_SWITCH("Int Spk"), 198 SOC_DAPM_PIN_SWITCH("Int Spk"),
232}; 199};
@@ -377,19 +344,8 @@ static __devinit int tegra_wm8903_driver_probe(struct platform_device *pdev)
377 tegra_wm8903_dai.platform_of_node = 344 tegra_wm8903_dai.platform_of_node =
378 tegra_wm8903_dai.cpu_dai_of_node; 345 tegra_wm8903_dai.cpu_dai_of_node;
379 } else { 346 } else {
380 if (machine_is_harmony()) { 347 card->dapm_routes = harmony_audio_map;
381 card->dapm_routes = harmony_audio_map; 348 card->num_dapm_routes = ARRAY_SIZE(harmony_audio_map);
382 card->num_dapm_routes = ARRAY_SIZE(harmony_audio_map);
383 } else if (machine_is_seaboard()) {
384 card->dapm_routes = seaboard_audio_map;
385 card->num_dapm_routes = ARRAY_SIZE(seaboard_audio_map);
386 } else if (machine_is_kaen()) {
387 card->dapm_routes = kaen_audio_map;
388 card->num_dapm_routes = ARRAY_SIZE(kaen_audio_map);
389 } else {
390 card->dapm_routes = aebl_audio_map;
391 card->num_dapm_routes = ARRAY_SIZE(aebl_audio_map);
392 }
393 } 349 }
394 350
395 if (gpio_is_valid(pdata->gpio_spkr_en)) { 351 if (gpio_is_valid(pdata->gpio_spkr_en)) {