projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df6a3e2
)
ASoC: rt5645: reset RT5645_AD_DA_MIXER at probe
author
Bard Liao
<bardliao@realtek.com>
Wed, 22 Nov 2017 05:59:19 +0000
(13:59 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 22 Nov 2017 11:50:12 +0000
(11:50 +0000)
RT5645_AD_DA_MIXER (0x29) register will not be reset to default after
SW reset. So we have to write it to its default value in i2c_probe.
Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/rt5645.c
b/sound/soc/codecs/rt5645.c
index 5f24df4fae8ece83f0258a022938b722e3a39dbd..fcd02c2c76f168b9bd4d79b25dd0c509fde9813f 100644
(file)
--- a/
sound/soc/codecs/rt5645.c
+++ b/
sound/soc/codecs/rt5645.c
@@
-3823,6
+3823,8
@@
static int rt5645_i2c_probe(struct i2c_client *i2c,
regmap_read(regmap, RT5645_VENDOR_ID, &val);
rt5645->v_id = val & 0xff;
+ regmap_write(rt5645->regmap, RT5645_AD_DA_MIXER, 0x8080);
+
ret = regmap_register_patch(rt5645->regmap, init_list,
ARRAY_SIZE(init_list));
if (ret != 0)