ASoC: tas571x: wait 50ms after oscillator trim
authorPetr Kulhavy <brain@jikos.cz>
Mon, 3 Oct 2016 14:40:49 +0000 (16:40 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 4 Oct 2016 03:21:56 +0000 (05:21 +0200)
Wait extra 50ms after writing the oscillator trim register in probe(), as
recommended by the TAS5721 and TAS5711 datasheets.

Signed-off-by: Petr Kulhavy <brain@jikos.cz>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas571x.c

index df5e5cb33baaba035b1d9db577cbf772855ac3e9..de65ecf534afaa1d0c6f598058b372dcdd4688d3 100644 (file)
@@ -754,6 +754,7 @@ static int tas571x_i2c_probe(struct i2c_client *client,
        if (ret)
                return ret;
 
+       usleep_range(50000, 60000);
 
        memcpy(&priv->codec_driver, &tas571x_codec, sizeof(priv->codec_driver));
        priv->codec_driver.component_driver.controls = priv->chip->controls;