]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: pcm3060: Add soft reset on probe
authorKirill Marinushkin <kmarinushkin@birdec.tech>
Mon, 11 Feb 2019 06:08:38 +0000 (07:08 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 11 Feb 2019 15:59:22 +0000 (15:59 +0000)
Softly reset registers values on module probe

Signed-off-by: Kirill Marinushkin <kmarinushkin@birdec.tech>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm3060.c

index 6714aa8d90268241e5f9065d23d420bac06c6361..543cb86fd7646414e31390c464c8b6531e81588e 100644 (file)
@@ -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);