From patchwork Thu Apr 2 08:17:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pascal Huerst X-Patchwork-Id: 6145081 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5C84BBF4A6 for ; Thu, 2 Apr 2015 08:19:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9064C20328 for ; Thu, 2 Apr 2015 08:19:23 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 740CB20272 for ; Thu, 2 Apr 2015 08:19:22 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4BE9526550C; Thu, 2 Apr 2015 10:19:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id E4A052654D8; Thu, 2 Apr 2015 10:19:07 +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 055422654D8; Thu, 2 Apr 2015 10:19:06 +0200 (CEST) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by alsa0.perex.cz (Postfix) with ESMTP id DAE652654BD; Thu, 2 Apr 2015 10:18:59 +0200 (CEST) Received: by wizk4 with SMTP id k4so6869329wiz.1; Thu, 02 Apr 2015 01:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=TxUASuX1HqRJ6iL2V8UcvO0VcB/8helf7oGQJqYJBpQ=; b=D063rZ0B4uywzz0Fomv6Kv6HHNX0QQc60Hv+aquMO0LYoaq95N5kuEf96yT+9q1bQW 03pix+O8OBGKCiir8XV1pjpE5bKEAoj3S6A/9A/1d1IutksCZQlbeFeWG+FWLYYk4UnZ dQDcJtFthl9cJaBZysEJPErH8Hpb1LkVisFOsIPyB87JvNb2dbTQrme5cg2k6pXzN0ql 4k8q+e2UTBP/purthhvng1SD10Qj6cz7DGxCjXtW/xy9wOZvOW9YyAZnkaSQwdAVWZsm RPAmteO6ehyN4xK9eY53vp1mkBydkMdRgu0JgAsxr7vgDlcOh/kwS8M41kk4lZclOyT+ KCiQ== X-Received: by 10.194.87.100 with SMTP id w4mr88590310wjz.65.1427962739634; Thu, 02 Apr 2015 01:18:59 -0700 (PDT) Received: from localhost.localdomain ([212.91.255.186]) by mx.google.com with ESMTPSA id gt4sm6601037wib.21.2015.04.02.01.18.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Apr 2015 01:18:58 -0700 (PDT) From: pascal.huerst@gmail.com To: patch@alsa-project.org Date: Thu, 2 Apr 2015 10:17:40 +0200 Message-Id: <1427962660-23517-1-git-send-email-pascal.huerst@gmail.com> X-Mailer: git-send-email 1.9.3 Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, tiwai@suse.de, brian.austin@cirrus.com, Paul.Handrigan@cirrus.com, broonie@kernel.org, Pascal Huerst Subject: [alsa-devel] [PATCH] ASoC: cs4271: Increase delay time after reset 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 From: Pascal Huerst The delay time after a reset in the codec probe callback was too short, and did not work on certain hw because the codec needs more time to power on. This increases the delay time from 1us to 1ms. Signed-off-by: Pascal Huerst Acked-by: Brian Austin --- sound/soc/codecs/cs4271.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index 7d3a6ac..e770ee6 100644 --- a/sound/soc/codecs/cs4271.c +++ b/sound/soc/codecs/cs4271.c @@ -561,10 +561,10 @@ static int cs4271_codec_probe(struct snd_soc_codec *codec) if (gpio_is_valid(cs4271->gpio_nreset)) { /* Reset codec */ gpio_direction_output(cs4271->gpio_nreset, 0); - udelay(1); + mdelay(1); gpio_set_value(cs4271->gpio_nreset, 1); /* Give the codec time to wake up */ - udelay(1); + mdelay(1); } ret = regmap_update_bits(cs4271->regmap, CS4271_MODE2,