From patchwork Thu Jul 23 00:26:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6848641 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 70E7F9F358 for ; Thu, 23 Jul 2015 00:27:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A44B2206E5 for ; Thu, 23 Jul 2015 00:27:25 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 67F67206D5 for ; Thu, 23 Jul 2015 00:27:23 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id DC9FB265715; Thu, 23 Jul 2015 02:27:21 +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, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 4663626568C; Thu, 23 Jul 2015 02:27:14 +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 C1A102656F6; Thu, 23 Jul 2015 02:27:12 +0200 (CEST) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by alsa0.perex.cz (Postfix) with ESMTP id 7DC3126559B for ; Thu, 23 Jul 2015 02:27:05 +0200 (CEST) Received: by padck2 with SMTP id ck2so146255296pad.0 for ; Wed, 22 Jul 2015 17:27:03 -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=0NRBDzj9zmp198YAxww1qFSs88VVX8kFRzMFb2+ddvI=; b=MhlyoaoE5F3XKdGtxwnzulOBnQf3MLTHwsE6S0suiVKNv5sPiDzm9Sn6WSzHlU7Pbw nkzIt6VPdpx6AQhtzrj4KaV6sQQzrTn4imYcM7YkzSsGSs4YSEu95fGswcPtf982rM9g 9YT38vd8f3BZKYXvwZ8FmsxBXO7gyuGrqfrhir9+svTa0c8DZEAIT6/9q6X5JmajYOJC PxrDw2xsk8Zuzu9E2p5QsmKlIjNg8Zgf8r9keaVo9nq03u6dpXPz/CwaIw8XEOg1jcSy 6oXfxw+SnJVFC6cXqyskPSg3ubhrXXhPTqwNDyAgXYhLQxboBiuyOGhLr9S2jqxQJ6E5 11ow== X-Gm-Message-State: ALoCoQl/G0M9BXr4U7I/VJ4qBHxUwTlnaod3CbtFOicBNRQU1TvRLhtz1rJgTf/oqdOLd3AphwNO X-Received: by 10.70.8.33 with SMTP id o1mr11816251pda.88.1437611222669; Wed, 22 Jul 2015 17:27:02 -0700 (PDT) Received: from phoenix (1-169-147-33.dynamic.hinet.net. [1.169.147.33]) by smtp.gmail.com with ESMTPSA id no6sm5373225pdb.42.2015.07.22.17.27.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jul 2015 17:27:01 -0700 (PDT) Message-ID: <1437611217.6620.2.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Thu, 23 Jul 2015 08:26:57 +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 Subject: [alsa-devel] [PATCH] ASoC: cs42l73: Fix mask for setting CS42L73_SP_3ST 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 CS42L73_SP_3ST is BIT(7), so the mask field is wrong. Fix it. Signed-off-by: Axel Lin Acked-by: Brian Austin --- sound/soc/codecs/cs42l73.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c index 7cb1d70..be6477f 100644 --- a/sound/soc/codecs/cs42l73.c +++ b/sound/soc/codecs/cs42l73.c @@ -1236,8 +1236,8 @@ static int cs42l73_set_tristate(struct snd_soc_dai *dai, int tristate) struct snd_soc_codec *codec = dai->codec; int id = dai->id; - return snd_soc_update_bits(codec, CS42L73_SPC(id), - 0x7F, tristate << 7); + return snd_soc_update_bits(codec, CS42L73_SPC(id), CS42L73_SP_3ST, + tristate << 7); } static const struct snd_pcm_hw_constraint_list constraints_12_24 = {