From patchwork Wed Jul 22 02:22:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6839141 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7D2949F38B for ; Wed, 22 Jul 2015 02:23:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B429E203F7 for ; Wed, 22 Jul 2015 02:22:59 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6F563203EB for ; Wed, 22 Jul 2015 02:22:58 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1B60A265142; Wed, 22 Jul 2015 04:22:57 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 05859260600; Wed, 22 Jul 2015 04:22:50 +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 01CBE26062A; Wed, 22 Jul 2015 04:22:47 +0200 (CEST) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by alsa0.perex.cz (Postfix) with ESMTP id BB4142605FF for ; Wed, 22 Jul 2015 04:22:40 +0200 (CEST) Received: by pdjr16 with SMTP id r16so132550976pdj.3 for ; Tue, 21 Jul 2015 19:22:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=2EcVrEe2FekT83URwjnUwmEJasXBOMdbH2URvV7Cql8=; b=EQqZKCqLA+OY8owaukuJt48fbsSFykuIMZlDzMGZZ74e5YGsa0PEM31Rq1ItB31YLH 5LAjZ/7cAEoQYfhSphPlSOgFty1hd7nmvDHSxmhNwvb7z5igOq70Y02uKvoWYa6Duxp1 b1anP3vkp6Tp6jzG4QmvHJ4aDWubnTIrlgfROP3n5XUc5JHtTD973Au10r+siUiC+5sc uzhUh3MevEvvA2GIA2hudz7n2gmslBen8WnziuHNquaI0PEawdCoAOQst6Lf+Ll1uzkh DF814nFeRlq/Cx4dnOA4bhOOlw6Owwspv8+uSG3tqAlNadkpkcffBpzYFMTeO7AvFLZy b+Qg== X-Gm-Message-State: ALoCoQm7MOWdXyqcTFMXu8Q7O50IVygLcTlu44/aWv+QMEdhedgaOpD2+C2WAmkogeOmeSW6Rvop X-Received: by 10.70.90.42 with SMTP id bt10mr286823pdb.60.1437531759156; Tue, 21 Jul 2015 19:22:39 -0700 (PDT) Received: from phoenix (1-169-147-33.dynamic.hinet.net. [1.169.147.33]) by smtp.gmail.com with ESMTPSA id e8sm4947138pdm.13.2015.07.21.19.22.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 19:22:37 -0700 (PDT) Message-ID: <1437531753.3325.0.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Wed, 22 Jul 2015 10:22:33 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: Brian Austin , alsa-devel@alsa-project.org, Liam Girdwood , Paul Handrigan , Tim Howe Subject: [alsa-devel] [PATCH] ASoC: cs4349: Fix up setting PWR_DWN bit 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The PWR_DWN is Bit 7, so current code does not set the PWR_DWN bit. Fix it. Signed-off-by: Axel Lin Acked-by: Tim Howe --- sound/soc/codecs/cs4349.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs4349.c b/sound/soc/codecs/cs4349.c index 852be85..0d010c2 100644 --- a/sound/soc/codecs/cs4349.c +++ b/sound/soc/codecs/cs4349.c @@ -326,7 +326,7 @@ static int cs4349_runtime_suspend(struct device *dev) struct cs4349_private *cs4349 = dev_get_drvdata(dev); int ret; - ret = regmap_update_bits(cs4349->regmap, CS4349_MISC, PWR_DWN, 1); + ret = regmap_update_bits(cs4349->regmap, CS4349_MISC, PWR_DWN, PWR_DWN); if (ret < 0) return ret;