Commit 729485f6 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown

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: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6fb04138
...@@ -1540,6 +1540,8 @@ static int adau1373_i2c_probe(struct i2c_client *client, ...@@ -1540,6 +1540,8 @@ static int adau1373_i2c_probe(struct i2c_client *client,
if (IS_ERR(adau1373->regmap)) if (IS_ERR(adau1373->regmap))
return PTR_ERR(adau1373->regmap); return PTR_ERR(adau1373->regmap);
regmap_write(adau1373->regmap, ADAU1373_SOFT_RESET, 0x00);
dev_set_drvdata(&client->dev, adau1373); dev_set_drvdata(&client->dev, adau1373);
ret = snd_soc_register_codec(&client->dev, &adau1373_codec_driver, ret = snd_soc_register_codec(&client->dev, &adau1373_codec_driver,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment