diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-11-04 21:48:49 +0100 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-11-04 21:48:49 +0100 |
commit | 0658a53466a32a8951a2da5e3ddeab2764bf61da (patch) | |
tree | 9b53ddf75056b6abd71147847134e322a08cdf18 | |
parent | d166f09d709cce9e702f91adb5cb248ba6a1f1cb (diff) | |
parent | 5e9322c51ad527d3f6456f1eca2a52c2c9c3cc79 (diff) |
Merge branch 'wm8753-2.6.31' into om-gta01-2.6.31
-rw-r--r-- | sound/soc/s3c24xx/neo1973_wm8753.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c index 7f28af2058e..5cc1ef2c8fe 100644 --- a/sound/soc/s3c24xx/neo1973_wm8753.c +++ b/sound/soc/s3c24xx/neo1973_wm8753.c @@ -50,6 +50,9 @@ static struct lm4857 { static void lm4857_write_regs(void) { + if (!lm4857.i2c) + return; + if (i2c_master_send(lm4857.i2c, lm4857.regs, 4) != 4) printk(KERN_ERR "lm4857: i2c write failed\n"); } @@ -510,8 +513,8 @@ static int neo1973_wm8753_init(struct snd_soc_codec *codec) machine_widgets = wm8753_dapm_widgets_gta02; num_machine_widgets = ARRAY_SIZE(wm8753_dapm_widgets_gta02); - machine_controls = wm8753_neo1973_gta01_controls; - num_machine_controls = ARRAY_SIZE(wm8753_neo1973_gta01_controls); + machine_controls = wm8753_neo1973_gta02_controls; + num_machine_controls = ARRAY_SIZE(wm8753_neo1973_gta02_controls); } /* set up NC codec pins */ @@ -676,6 +679,10 @@ static int __init neo1973_init(void) return -ENODEV; } + if (machine_is_neo1973_gta02()) { + neo1973_snd_devdata.card->name = "neo1973gta02"; + } + /* register bluetooth DAI here */ ret = snd_soc_register_dai(&bt_dai); if (ret) |