diff options
author | Vinod Subbarayalu <vsubbarayalu@nvidia.com> | 2012-11-20 19:52:23 -0800 |
---|---|---|
committer | Mrutyunjay Sawant <msawant@nvidia.com> | 2012-11-29 01:30:21 -0800 |
commit | 5f33f354f8c43d9f992804df66ae06dbe8fa8e3f (patch) | |
tree | a208aa0eb045b5e41ce2c11820bcfeec4bef7860 /sound | |
parent | b3b57663ce892ed53527077183833815cf0019fa (diff) |
asoc: codecs: rt5640:Enable rt5439
Change-Id: I13a8a915ec93004cf0e73fcefb821547a52481c3
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
(cherry picked from commit 62a04e4501a46eaef69794eb5e13fbb425889d30)
Reviewed-on: http://git-master/r/166417
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt5640.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c index 4b75f9a9839d..71f6467bca03 100644 --- a/sound/soc/codecs/rt5640.c +++ b/sound/soc/codecs/rt5640.c @@ -32,6 +32,7 @@ #define RT5640_DEMO 1 #define RT5640_REG_RW 1 #define RT5640_DET_EXT_MIC 0 +#define RT5639_RESET_ID 0x0008 #ifdef RT5640_DEMO struct rt5640_init_reg { @@ -2388,9 +2389,9 @@ static int rt5640_probe(struct snd_soc_codec *codec) } val = snd_soc_read(codec, RT5640_RESET); - if (val != rt5640_reg[RT5640_RESET]) { + if ((val != rt5640_reg[RT5640_RESET]) && (val != RT5639_RESET_ID)) { dev_err(codec->dev, - "Device with ID register %x is not a rt5640\n", val); + "Device with ID register %x is not rt5640/39\n", val); return -ENODEV; } |