aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-02-09 01:19:45 -0500
committerMark Brown <broonie@kernel.org>2015-02-09 02:07:36 -0500
commit3ab888db095518578aac7a13e05f3969531a4f8a (patch)
treed7d5ae579bddac7b06632e08f28362c253b8885d /sound
parent2cc3f2347022969f00a429951ce489d35a9b4ea8 (diff)
ASoC: rt286: Add rt288 codec support
This patch adds support for rt288 codec. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt286.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt286.c b/sound/soc/codecs/rt286.c
index 1fbebaf6dbf4..9a698f01a9a5 100644
--- a/sound/soc/codecs/rt286.c
+++ b/sound/soc/codecs/rt286.c
@@ -34,6 +34,7 @@
34#include "rt286.h" 34#include "rt286.h"
35 35
36#define RT286_VENDOR_ID 0x10ec0286 36#define RT286_VENDOR_ID 0x10ec0286
37#define RT288_VENDOR_ID 0x10ec0288
37 38
38struct rt286_priv { 39struct rt286_priv {
39 struct regmap *regmap; 40 struct regmap *regmap;
@@ -1168,6 +1169,7 @@ static const struct regmap_config rt286_regmap = {
1168 1169
1169static const struct i2c_device_id rt286_i2c_id[] = { 1170static const struct i2c_device_id rt286_i2c_id[] = {
1170 {"rt286", 0}, 1171 {"rt286", 0},
1172 {"rt288", 0},
1171 {} 1173 {}
1172}; 1174};
1173MODULE_DEVICE_TABLE(i2c, rt286_i2c_id); 1175MODULE_DEVICE_TABLE(i2c, rt286_i2c_id);
@@ -1221,7 +1223,7 @@ static int rt286_i2c_probe(struct i2c_client *i2c,
1221 1223
1222 regmap_read(rt286->regmap, 1224 regmap_read(rt286->regmap,
1223 RT286_GET_PARAM(AC_NODE_ROOT, AC_PAR_VENDOR_ID), &ret); 1225 RT286_GET_PARAM(AC_NODE_ROOT, AC_PAR_VENDOR_ID), &ret);
1224 if (ret != RT286_VENDOR_ID) { 1226 if (ret != RT286_VENDOR_ID && ret != RT288_VENDOR_ID) {
1225 dev_err(&i2c->dev, 1227 dev_err(&i2c->dev,
1226 "Device with ID register %x is not rt286\n", ret); 1228 "Device with ID register %x is not rt286\n", ret);
1227 return -ENODEV; 1229 return -ENODEV;