summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAxel Lin2014-04-03 13:56:32 +0200
committerMark Brown2014-04-07 13:57:56 +0200
commit05b0006734f2aa728331bfe169f105c4b386858a (patch)
treec46fab4cc4f968499c7a2ce3e193b335d18fea73 /sound
parentMerge remote-tracking branches 'asoc/topic/tdm' and 'asoc/topic/tegra' into a... (diff)
downloadkernel-qcow2-linux-05b0006734f2aa728331bfe169f105c4b386858a.tar.gz
kernel-qcow2-linux-05b0006734f2aa728331bfe169f105c4b386858a.tar.xz
kernel-qcow2-linux-05b0006734f2aa728331bfe169f105c4b386858a.zip
ASoC: da732x: Print correct major id
DA732X_ID_MAJOR_MASK is 0xF0, so the major id is (reg & DA732X_ID_MAJOR_MASK) >> 4. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/da732x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c
index 7d168ec71cd7..48f3fef68484 100644
--- a/sound/soc/codecs/da732x.c
+++ b/sound/soc/codecs/da732x.c
@@ -1571,7 +1571,8 @@ static int da732x_i2c_probe(struct i2c_client *i2c,
}
dev_info(&i2c->dev, "Revision: %d.%d\n",
- (reg & DA732X_ID_MAJOR_MASK), (reg & DA732X_ID_MINOR_MASK));
+ (reg & DA732X_ID_MAJOR_MASK) >> 4,
+ (reg & DA732X_ID_MINOR_MASK));
ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_da732x,
da732x_dai, ARRAY_SIZE(da732x_dai));