[PATCH] GTA03: Fix audio dapm settings.

Matt Hsu matt_hsu at openmoko.org
Wed Feb 18 07:47:14 CET 2009


Correct the dapm mapping between audio endpoint and physical pin.

Signed-off-by: Matt Hsu <matt_hsu at openmoko.org>
---
 sound/soc/s3c24xx/om_gta03_wm8753.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/sound/soc/s3c24xx/om_gta03_wm8753.c b/sound/soc/s3c24xx/om_gta03_wm8753.c
index 60879b8..e05cbfa 100644
--- a/sound/soc/s3c24xx/om_gta03_wm8753.c
+++ b/sound/soc/s3c24xx/om_gta03_wm8753.c
@@ -374,8 +374,8 @@ static const struct snd_soc_dapm_widget wm8753_dapm_widgets[] = {
 /* example machine audio_mapnections */
 static const struct snd_soc_dapm_route audio_map[] = {
 
-	{"Stereo Out", NULL, "LOUT1"},
-	{"Stereo Out", NULL, "ROUT1"},
+	{"Stereo Out", NULL, "LOUT2"},
+	{"Stereo Out", NULL, "ROUT2"},
 
 	/* Connections to the GSM Module */
 	{"GSM Line Out", NULL, "MONO1"},
@@ -393,8 +393,8 @@ static const struct snd_soc_dapm_route audio_map[] = {
 	{"Mic Bias", NULL, "Handset Mic"},
 
 	/* Call Speaker */
-	{"Handset Spk", NULL, "LOUT2"},
-	{"Handset Spk", NULL, "ROUT2"},
+	{"Handset Spk", NULL, "OUT3"},
+	{"Handset Spk", NULL, "LOUT1"},
 
 	/* Connect the ALC pins */
 	{"ACIN", NULL, "ACOP"},
@@ -430,7 +430,6 @@ static int om_gta03_wm8753_init(struct snd_soc_codec *codec)
 	int i, err;
 
 	/* set up NC codec pins */
-	snd_soc_dapm_set_endpoint(codec, "OUT3",  0);
 	snd_soc_dapm_set_endpoint(codec, "OUT4",  0);
 	snd_soc_dapm_set_endpoint(codec, "LINE1", 0);
 	snd_soc_dapm_set_endpoint(codec, "LINE2", 0);
-- 
1.5.6.5




More information about the openmoko-kernel mailing list