* [PATCH] ASoc : Tegra : Add audio map for Asymptote
@ 2011-11-01 16:32 Taylor Hutt
2011-11-01 16:55 ` Stephen Warren
0 siblings, 1 reply; 2+ messages in thread
From: Taylor Hutt @ 2011-11-01 16:32 UTC (permalink / raw)
To: thutt
Cc: miletus, swarren, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, alsa-devel, linux-kernel
Details
Add pin connections and audio map for the Asymptote board.
Testing
Visual inspection with Chromium OS 2.6.38 code.
Built kernel
Built chromium os image
Booted image on asymptote
Booted image on kaen
Signed-off-by: Taylor Hutt <thutt@chromium.org>
---
sound/soc/tegra/tegra_wm8903.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index b0aef55..e0beeda 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -310,6 +310,7 @@ static void tegra_wm8903_disconnect_pins(struct snd_soc_card *card,
{
#define MACHINES \
M(aebl) \
+ M(asymptote) \
M(harmony) \
M(kaen) \
M(seaboard) \
@@ -355,6 +356,7 @@ static void tegra_wm8903_disconnect_pins(struct snd_soc_card *card,
CONNECT(ventana),
CONNECT(seaboard),
CONNECT(kaen),
+ CONNECT(asymptote),
},
{
.name = "RON",
@@ -362,6 +364,7 @@ static void tegra_wm8903_disconnect_pins(struct snd_soc_card *card,
CONNECT(ventana),
CONNECT(seaboard),
CONNECT(kaen),
+ CONNECT(asymptote),
},
{
.name = "ROP",
@@ -369,6 +372,7 @@ static void tegra_wm8903_disconnect_pins(struct snd_soc_card *card,
CONNECT(ventana),
CONNECT(seaboard),
CONNECT(kaen),
+ CONNECT(asymptote),
},
{
.name = "LOP",
@@ -376,6 +380,7 @@ static void tegra_wm8903_disconnect_pins(struct snd_soc_card *card,
CONNECT(ventana),
CONNECT(seaboard),
CONNECT(kaen),
+ CONNECT(asymptote),
},
{
.name = "LINEOUTR",
@@ -544,13 +549,14 @@ static __devinit int tegra_wm8903_driver_probe(struct platform_device *pdev)
if (machine_is_harmony() || machine_is_ventana()) {
card->dapm_routes = harmony_audio_map;
card->num_dapm_routes = ARRAY_SIZE(harmony_audio_map);
- } else if (machine_is_seaboard()) {
+ } else if (machine_is_seaboard() || machine_is_asymptote()) {
card->dapm_routes = seaboard_audio_map;
card->num_dapm_routes = ARRAY_SIZE(seaboard_audio_map);
} else if (machine_is_kaen()) {
card->dapm_routes = kaen_audio_map;
card->num_dapm_routes = ARRAY_SIZE(kaen_audio_map);
} else {
+ BUG_ON(!machine_is_aebl());
card->dapm_routes = aebl_audio_map;
card->num_dapm_routes = ARRAY_SIZE(aebl_audio_map);
}
--
1.7.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH] ASoc : Tegra : Add audio map for Asymptote
2011-11-01 16:32 [PATCH] ASoc : Tegra : Add audio map for Asymptote Taylor Hutt
@ 2011-11-01 16:55 ` Stephen Warren
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2011-11-01 16:55 UTC (permalink / raw)
To: Taylor Hutt
Cc: miletus, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, alsa-devel, linux-kernel, linux-tegra
Taylor Hutt wrote at Tuesday, November 01, 2011 10:33 AM:
> Details
>
> Add pin connections and audio map for the Asymptote board.
>
> Testing
>
> Visual inspection with Chromium OS 2.6.38 code.
> Built kernel
> Built chromium os image
> Booted image on asymptote
> Booted image on kaen
Presumably all that testing was within the chromeos-3.0 kernel, not
mainline; asymptote isn't supported in mainline.
This patch can't be applied for a few reasons:
a) Asymptote isn't in mainline's arch/arm/tools/mach-types. This means
that function machine_is_asymptote() doesn't exists, and this code can't
compile.
b) Even if the machine were in mach-types, there's no board file for
asymptote, so Russell King's automated mach-types cleanup script would
flag asymptote for removal and eventually it'd go away. This is the same
reason we recently removed Ventana support from tegra_wm8903.c. I'm not
sure how this will work once we have device-tree-only boards; I guess
we need to remove all the machine_is_foo() checks from the code and
parameterize everything from DT instead.
--
nvpublic
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-01 16:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-01 16:32 [PATCH] ASoc : Tegra : Add audio map for Asymptote Taylor Hutt
2011-11-01 16:55 ` Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®