aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-11-19 06:45:05 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-11-19 06:45:05 -0500
commit04af964f9cb666caa7c1436d003f8fac0f1fedcc (patch)
treef59aeb6c00b10294217b5ea75eb87403c61c314d /sound
parent7b306dae22ca377ea0020261ef13aea85b8f5f3f (diff)
parent2811fe2beb7cb9f34eef4bc9627dcabb401bc05e (diff)
Merge branch 'for-2.6.37' into for-2.6.38
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/max98088.c11
-rw-r--r--sound/soc/codecs/uda134x.c1
2 files changed, 11 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index ef06007d8895..9c322373d5de 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -28,6 +28,11 @@
28#include <sound/max98088.h> 28#include <sound/max98088.h>
29#include "max98088.h" 29#include "max98088.h"
30 30
31enum max98088_type {
32 MAX98088,
33 MAX98089,
34};
35
31struct max98088_cdata { 36struct max98088_cdata {
32 unsigned int rate; 37 unsigned int rate;
33 unsigned int fmt; 38 unsigned int fmt;
@@ -36,6 +41,7 @@ struct max98088_cdata {
36 41
37struct max98088_priv { 42struct max98088_priv {
38 u8 reg_cache[M98088_REG_CNT]; 43 u8 reg_cache[M98088_REG_CNT];
44 enum max98088_type devtype;
39 void *control_data; 45 void *control_data;
40 struct max98088_pdata *pdata; 46 struct max98088_pdata *pdata;
41 unsigned int sysclk; 47 unsigned int sysclk;
@@ -2042,6 +2048,8 @@ static int max98088_i2c_probe(struct i2c_client *i2c,
2042 if (max98088 == NULL) 2048 if (max98088 == NULL)
2043 return -ENOMEM; 2049 return -ENOMEM;
2044 2050
2051 max98088->devtype = id->driver_data;
2052
2045 i2c_set_clientdata(i2c, max98088); 2053 i2c_set_clientdata(i2c, max98088);
2046 max98088->control_data = i2c; 2054 max98088->control_data = i2c;
2047 max98088->pdata = i2c->dev.platform_data; 2055 max98088->pdata = i2c->dev.platform_data;
@@ -2061,7 +2069,8 @@ static int __devexit max98088_i2c_remove(struct i2c_client *client)
2061} 2069}
2062 2070
2063static const struct i2c_device_id max98088_i2c_id[] = { 2071static const struct i2c_device_id max98088_i2c_id[] = {
2064 { "max98088", 0 }, 2072 { "max98088", MAX98088 },
2073 { "max98089", MAX98089 },
2065 { } 2074 { }
2066}; 2075};
2067MODULE_DEVICE_TABLE(i2c, max98088_i2c_id); 2076MODULE_DEVICE_TABLE(i2c, max98088_i2c_id);
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c
index 8ea81d48124a..6b6c0d291abf 100644
--- a/sound/soc/codecs/uda134x.c
+++ b/sound/soc/codecs/uda134x.c
@@ -597,6 +597,7 @@ static struct snd_soc_codec_driver soc_codec_dev_uda134x = {
597 .resume = uda134x_soc_resume, 597 .resume = uda134x_soc_resume,
598 .reg_cache_size = sizeof(uda134x_reg), 598 .reg_cache_size = sizeof(uda134x_reg),
599 .reg_word_size = sizeof(u8), 599 .reg_word_size = sizeof(u8),
600 .reg_cache_default = uda134x_reg,
600 .reg_cache_step = 1, 601 .reg_cache_step = 1,
601 .read = uda134x_read_reg_cache, 602 .read = uda134x_read_reg_cache,
602 .write = uda134x_write, 603 .write = uda134x_write,