Skip to content

Commit b350ecb

Browse files
Stephen Warrenbroonie
authored andcommitted
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>
1 parent 14df415 commit b350ecb

1 file changed

Lines changed: 2 additions & 46 deletions

File tree

‎sound/soc/tegra/tegra_wm8903.c‎

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
*
2929
*/
3030

31-
#include <asm/mach-types.h>
32-
3331
#include <linux/module.h>
3432
#include <linux/platform_device.h>
3533
#include <linux/slab.h>
@@ -196,37 +194,6 @@ static const struct snd_soc_dapm_route harmony_audio_map[] = {
196194
{"IN1L", NULL, "Mic Jack"},
197195
};
198196

199-
static 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-
210-
static 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-
221-
static 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-
230197
static const struct snd_kcontrol_new tegra_wm8903_controls[] = {
231198
SOC_DAPM_PIN_SWITCH("Int Spk"),
232199
};
@@ -377,19 +344,8 @@ static __devinit int tegra_wm8903_driver_probe(struct platform_device *pdev)
377344
tegra_wm8903_dai.platform_of_node =
378345
tegra_wm8903_dai.cpu_dai_of_node;
379346
} else {
380-
if (machine_is_harmony()) {
381-
card->dapm_routes = 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-
}
347+
card->dapm_routes = harmony_audio_map;
348+
card->num_dapm_routes = ARRAY_SIZE(harmony_audio_map);
393349
}
394350

395351
if (gpio_is_valid(pdata->gpio_spkr_en)) {

0 commit comments

Comments
 (0)