From patchwork Sat Jun 18 01:31:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 9185303 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 DB4E06075D for ; Sat, 18 Jun 2016 01:32:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1DC727DCE for ; Sat, 18 Jun 2016 01:32:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B567528357; Sat, 18 Jun 2016 01:32:20 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no 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 E7B0D27DCE for ; Sat, 18 Jun 2016 01:32:19 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id CCED5265D83; Sat, 18 Jun 2016 03:32:17 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 00EAD265707; Sat, 18 Jun 2016 03:32:10 +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 D3A16265713; Sat, 18 Jun 2016 03:32:08 +0200 (CEST) Received: from mail-pa0-f68.google.com (mail-pa0-f68.google.com [209.85.220.68]) by alsa0.perex.cz (Postfix) with ESMTP id 537DC2652D7 for ; Sat, 18 Jun 2016 03:32:01 +0200 (CEST) Received: by mail-pa0-f68.google.com with SMTP id us13so6684076pab.1 for ; Fri, 17 Jun 2016 18:32:01 -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=9hwHLVwbceTg55mT7dtWLLjlKa++l1LtFJ8QgdESyVU=; b=JT+jdTyr2M7GfK78APd5wnIpr81SpchuzSUR12+IKXOuohAY2fedwQwYLFJNJVUSaR 6aZ7hKk92Pz+ANfjX8Q9MJidC+5d2hp4UqQuR2+i2GpIwkJE2Pm9J4noAnE/8+0zOK55 5x9BwwUKINppaCeetIKBL7oxWV7ujfaM040y/G9PC/FaullOLeKcvhq+xU5XvHJxo2Qx vVVZqmT+Bzcj94o4hqwm0WWOpTviXLdrNiC8OurFvYkG8H1+AmRIEYjqNfRPXF3sZC8j +b6/WSUXr7PegkvojSV9NRAOJvsXH1QMjDuUs66gRZYjZA+sHr/jarr0sPoQgXVhuCQc PJBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9hwHLVwbceTg55mT7dtWLLjlKa++l1LtFJ8QgdESyVU=; b=mzA1C6Q8lpKa2M51EJdBfHnczdxQFZTjefME7xCPb3gBYmeOJvMEcDGBxGhG5U85dK AaKP7bmwGQtLmZHCQG3maC8TqCiqlcTrjfW4/0Pi37UpXemhp12p89R6qzRBTRXrjSXH +afcgTGsRvkBW6UTzSe2cFEKrAJKiDKhoF+pgKEsZ9TUOZ8F6Xj2f0POIsHlbCheM32o r468XjpI/CoWzXheNZRcY5AXDGAZd7eBJ3YmYn5yNWQJD9+EFZmCwPM2wK7I3mSwhcEd aj0Y0BFEaDnNVzsSbmLHH4iLraK/+51YUZ+e3dw2pUtjJ53vIVSh2oMBTiuHmHYLA0lc 7Tnw== X-Gm-Message-State: ALyK8tJDFLJfz4pQG6tFNnRIM6f7IDvHMlbJvBRgsuusd59Bevg2DEHaxaqwVUUBQu3mbQ== X-Received: by 10.66.150.105 with SMTP id uh9mr5668859pab.73.1466213519532; Fri, 17 Jun 2016 18:31:59 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id o193sm51335352pfo.12.2016.06.17.18.31.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Jun 2016 18:31:58 -0700 (PDT) From: Nicolin Chen To: broonie@kernel.org Date: Fri, 17 Jun 2016 18:31:57 -0700 Message-Id: <1466213517-18523-1-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.1.4 Cc: brian.austin@cirrus.com, alsa-devel@alsa-project.org, lgirdwood@gmail.com, Paul.Handrigan@cirrus.com, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: cs53l30: Set idle_bias_off true 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 The driver is using the set_bias_level to control the power on and off so it should get SND_SOC_BIAS_OFF in order to proceed normal powering sequences. This patch enables the idle_bias_off option so the DAPM core will set the bias level to SND_SOC_BIAS_OFF instead of stopping at SND_SOC_BIAS_STANDBY. Signed-off-by: Nicolin Chen Acked-by: Paul Handrigan --- sound/soc/codecs/cs53l30.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c index a5976f3..b0a64a1 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c @@ -879,6 +879,7 @@ static int cs53l30_codec_probe(struct snd_soc_codec *codec) static struct snd_soc_codec_driver cs53l30_driver = { .probe = cs53l30_codec_probe, .set_bias_level = cs53l30_set_bias_level, + .idle_bias_off = true, .dapm_widgets = cs53l30_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(cs53l30_dapm_widgets),