From: Lars-Peter Clausen <lars@metafoo.de>
Date: Fri, 27 Sep 2013 11:47:10 +0000 (+0200)
Subject: ASoC: adau1373: Issue soft reset on probe
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=729485f6adbf1c7e1e08a01d2c276da30a91b0a4;p=linux.git

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>
---

diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c
index 2f84054c9b7dd..59654b1e7f3fb 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,