From patchwork Wed Oct 5 13:51:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Kulhavy X-Patchwork-Id: 9363069 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8215C6075E for ; Wed, 5 Oct 2016 14:45:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73A792899C for ; Wed, 5 Oct 2016 14:45:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 682D0289FC; Wed, 5 Oct 2016 14:45:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69AC52899C for ; Wed, 5 Oct 2016 14:45:53 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 68265266671; Wed, 5 Oct 2016 16:45:52 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id EE4B5266619; Wed, 5 Oct 2016 16:43:27 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id DDD2B261740; Wed, 5 Oct 2016 15:51:32 +0200 (CEST) Received: from fep27.mx.upcmail.net (fep27.mx.upcmail.net [62.179.121.47]) by alsa0.perex.cz (Postfix) with ESMTP id 671DA266610 for ; Wed, 5 Oct 2016 15:51:22 +0200 (CEST) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep27-int.chello.at (InterMail vM.8.01.05.21 201-2260-151-156-20141103) with ESMTP id <20161005135121.GQOC20850.viefep27-int.chello.at@edge03.upcmail.net> for ; Wed, 5 Oct 2016 15:51:21 +0200 Received: from localhost.localdomain ([83.150.41.162]) by edge03.upcmail.net with edge id rprH1t00x3VvXnX01prLiz; Wed, 05 Oct 2016 15:51:20 +0200 X-SourceIP: 83.150.41.162 X-Authenticated-Sender: brain@hispeed.ch From: Petr Kulhavy To: broonie@kernel.org, lgirdwood@gmail.com Date: Wed, 5 Oct 2016 15:51:06 +0200 Message-Id: <1475675467-5575-4-git-send-email-brain@jikos.cz> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475675467-5575-1-git-send-email-brain@jikos.cz> References: <1475675467-5575-1-git-send-email-brain@jikos.cz> Cc: alsa-devel@alsa-project.org, Petr Kulhavy Subject: [alsa-devel] [PATCH v2 3/4] ASoC: tas571x: wait 50ms after oscillator trim X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Wait extra 50ms after writing the oscillator trim register in probe(), as recommended by the TAS5721 and TAS5711 datasheets. Signed-off-by: Petr Kulhavy --- sound/soc/codecs/tas571x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/tas571x.c b/sound/soc/codecs/tas571x.c index a8a3279..f3252af 100644 --- a/sound/soc/codecs/tas571x.c +++ b/sound/soc/codecs/tas571x.c @@ -744,6 +744,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;