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:
29b4817
)
ASoC: da7219: software reset codec at probe
author
Hsin-Yu Chao
<
[email protected]
>
Wed, 14 Sep 2016 14:25:40 +0000
(22:25 +0800)
committer
Mark Brown
<
[email protected]
>
Wed, 14 Sep 2016 15:11:31 +0000
(16:11 +0100)
Da7219 does not trigger interrupt to report jack status
when system boots from warm reset because its power
remains on during warm reset.
Doing software reset at probe to handle this.
Signed-off-by: Hsin-Yu Chao <
[email protected]
>
Signed-off-by: Xing Zheng <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/da7219.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/da7219.c
b/sound/soc/codecs/da7219.c
index 50ea94317cb3216d116b9351cf5387a0213b4689..30f35e88bec2964b045afa49c30af367a9e4e867 100644
(file)
--- a/
sound/soc/codecs/da7219.c
+++ b/
sound/soc/codecs/da7219.c
@@
-1937,6
+1937,14
@@
static int da7219_i2c_probe(struct i2c_client *i2c,
return ret;
}
+ /* Software reset codec. */
+ regmap_write_bits(da7219->regmap, DA7219_ACCDET_CONFIG_1,
+ DA7219_ACCDET_EN_MASK, 0);
+ regmap_write_bits(da7219->regmap, DA7219_CIF_CTRL,
+ DA7219_CIF_REG_SOFT_RESET_MASK, 0);
+ regmap_write_bits(da7219->regmap, DA7219_SYSTEM_ACTIVE,
+ DA7219_SYSTEM_ACTIVE_MASK, 0);
+
ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_da7219,
&da7219_dai, 1);
if (ret < 0) {