diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-09-27 07:47:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-27 09:28:41 -0400 |
commit | 729485f6adbf1c7e1e08a01d2c276da30a91b0a4 (patch) | |
tree | e0836d63bda7a4dcedde9af9177be6d3dd49b66b /sound/soc/codecs/adau1373.c | |
parent | 6fb04138a3068609fa0ef3a98b60e31e686b3160 (diff) |
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>
Diffstat (limited to 'sound/soc/codecs/adau1373.c')
-rw-r--r-- | sound/soc/codecs/adau1373.c | 2 |
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, | |||
1540 | if (IS_ERR(adau1373->regmap)) | 1540 | if (IS_ERR(adau1373->regmap)) |
1541 | return PTR_ERR(adau1373->regmap); | 1541 | return PTR_ERR(adau1373->regmap); |
1542 | 1542 | ||
1543 | regmap_write(adau1373->regmap, ADAU1373_SOFT_RESET, 0x00); | ||
1544 | |||
1543 | dev_set_drvdata(&client->dev, adau1373); | 1545 | dev_set_drvdata(&client->dev, adau1373); |
1544 | 1546 | ||
1545 | ret = snd_soc_register_codec(&client->dev, &adau1373_codec_driver, | 1547 | ret = snd_soc_register_codec(&client->dev, &adau1373_codec_driver, |