projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c159a85
)
ASoC: da732x: Print correct major id
author
Axel Lin
<
[email protected]
>
Thu, 3 Apr 2014 11:56:32 +0000
(19:56 +0800)
committer
Mark Brown
<
[email protected]
>
Mon, 7 Apr 2014 11:57:56 +0000
(12:57 +0100)
DA732X_ID_MAJOR_MASK is 0xF0, so the major id is
(reg & DA732X_ID_MAJOR_MASK) >> 4.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Adam Thomson <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/da732x.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/da732x.c
b/sound/soc/codecs/da732x.c
index 7d168ec71cd70409095ee82fb95ec8a929601f98..48f3fef6848451cecb80c586a742d4ccaa619dbd 100644
(file)
--- 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));