[PATCH] GTA01: Hack to make GTA01 boot

Jonas Bonn jonas.bonn at gmail.com
Sun Nov 9 10:57:32 CET 2008


This is probably not correct as the i2c registration is not supposed to
work this way, but for the time being, add this hack to make the GTA01
at least boot.  Revisit this and drop this patch when possible.

Thanks to Andy Green for the tip.

Signed-off-by: Jonas Bonn <jonas.bonn at gmail.com>
---
 sound/soc/s3c24xx/neo1973_wm8753.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c
index 135006b..4c2117a 100644
--- a/sound/soc/s3c24xx/neo1973_wm8753.c
+++ b/sound/soc/s3c24xx/neo1973_wm8753.c
@@ -585,10 +585,16 @@ static struct snd_soc_machine neo1973 = {
 	.num_links = ARRAY_SIZE(neo1973_dai),
 };
 
+static struct wm8753_setup_data soc_codec_data_wm8753_gta01 = {
+	.i2c_bus = 0,
+	.i2c_address = 0x1a,
+};
+
 static struct snd_soc_device neo1973_snd_devdata = {
 	.machine = &neo1973,
 	.platform = &s3c24xx_soc_platform,
 	.codec_dev = &soc_codec_dev_wm8753,
+	.codec_data = &soc_codec_data_wm8753_gta01
 };
 
 static int lm4857_i2c_probe(struct i2c_client *client,
-- 
1.5.6.3




More information about the openmoko-kernel mailing list