summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm3060.c
diff options
context:
space:
mode:
authorKirill Marinushkin <kmarinushkin@birdec.tech>2019-02-11 07:08:38 +0100
committerMark Brown <broonie@kernel.org>2019-02-11 16:59:22 +0100
commita3daee085905e97ba20e6b9e72e6639fa518209c (patch)
treeda8af6c7ad9f81c9fd7c2cedfe5c746cf0240c75 /sound/soc/codecs/pcm3060.c
parentASoC: Intel: Skylake: set .ignore_module_refcount field in component (diff)
downloadlinux-a3daee085905e97ba20e6b9e72e6639fa518209c.tar.xz
linux-a3daee085905e97ba20e6b9e72e6639fa518209c.zip
ASoC: pcm3060: Add soft reset on probe
Softly reset registers values on module probe Signed-off-by: Kirill Marinushkin <kmarinushkin@birdec.tech> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/pcm3060.c')
-rw-r--r--sound/soc/codecs/pcm3060.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c
index 6714aa8d9026..543cb86fd764 100644
--- a/sound/soc/codecs/pcm3060.c
+++ b/sound/soc/codecs/pcm3060.c
@@ -287,6 +287,14 @@ int pcm3060_probe(struct device *dev)
int rc;
struct pcm3060_priv *priv = dev_get_drvdata(dev);
+ /* soft reset */
+ rc = regmap_update_bits(priv->regmap, PCM3060_REG64,
+ PCM3060_REG_MRST, 0);
+ if (rc) {
+ dev_err(dev, "failed to reset component, rc=%d\n", rc);
+ return rc;
+ }
+
if (dev->of_node)
pcm3060_parse_dt(dev->of_node, priv);