summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-09-27 15:47:10 +0400
committerMark Brown <broonie@linaro.org>2013-09-27 17:28:41 +0400
commit729485f6adbf1c7e1e08a01d2c276da30a91b0a4 (patch)
treee0836d63bda7a4dcedde9af9177be6d3dd49b66b
parent6fb04138a3068609fa0ef3a98b60e31e686b3160 (diff)
downloadlinux-729485f6adbf1c7e1e08a01d2c276da30a91b0a4.tar.xz
ASoC: adau1373: Issue soft reset on probe
Reset the device on probe to make sure that the register settings match the register cache defaults. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/codecs/adau1373.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c
index 2f84054c9b7d..59654b1e7f3f 100644
--- a/sound/soc/codecs/adau1373.c
+++ b/sound/soc/codecs/adau1373.c
@@ -1540,6 +1540,8 @@ static int adau1373_i2c_probe(struct i2c_client *client,
if (IS_ERR(adau1373->regmap))
return PTR_ERR(adau1373->regmap);
+ regmap_write(adau1373->regmap, ADAU1373_SOFT_RESET, 0x00);
+
dev_set_drvdata(&client->dev, adau1373);
ret = snd_soc_register_codec(&client->dev, &adau1373_codec_driver,