From patchwork Thu Jul 23 15:22:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6854201 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 07F3B9F1D4 for ; Thu, 23 Jul 2015 15:22:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 266922077A for ; Thu, 23 Jul 2015 15:22:52 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8204E206E3 for ; Thu, 23 Jul 2015 15:22:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8187A2657BA; Thu, 23 Jul 2015 17:22:49 +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.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 9C2A62610B1; Thu, 23 Jul 2015 17:22:41 +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 59148261586; Thu, 23 Jul 2015 17:22:40 +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 3061D2606F9 for ; Thu, 23 Jul 2015 17:22:33 +0200 (CEST) Received: by pachj5 with SMTP id hj5so159107316pac.3 for ; Thu, 23 Jul 2015 08:22:32 -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=yW74A3QZ9Sa7LhlsclQYnUA4Ng+nv1Tq7oS/zFEHJp8=; b=c/p2AiKfMen8/LA9oE1VLmgls3dM6zVYEwP6Sxov6dqfaMjdHWERFEbOJHZE7FKsMC dh/Q5i4E9RWWgJthDxq0p+BusdSpT1zzbBm43dapOnWShezdmu04F1YwEnkuPqRDJWjR XP3o30Xa7+UHpbtOgBv/FzNvWAfEFjYo+SIS917VVr8/UVKopfmFvOgtI7CzWevROsx7 C9TfNIwWiCNIDmMNPuAXXECnFJBHfubqNqSKGRAfeHxeruNW1lbvR0M5NhbcITTl2t+l V28FSCqKaDSRk7ixciNC+OG8ArUbakUnKtBIhLtfv/cio57ymcyPC9INUDs5Nd0eGjug VEMw== X-Gm-Message-State: ALoCoQkuTTueCggqMeq2crZcUrssyK5OKcKa01NyKMUws1wMR8IqJS8siykLju7xgy4qim8XjJaH X-Received: by 10.70.65.5 with SMTP id t5mr20163388pds.16.1437664951762; Thu, 23 Jul 2015 08:22:31 -0700 (PDT) Received: from phoenix.local (218-164-29-101.dynamic.hinet.net. [218.164.29.101]) by smtp.gmail.com with ESMTPSA id k5sm9608391pdn.10.2015.07.23.08.22.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jul 2015 08:22:30 -0700 (PDT) Message-ID: <1437664946.20606.5.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Thu, 23 Jul 2015 23:22:26 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: Marek Belisko , alsa-devel@alsa-project.org, Liam Girdwood Subject: [alsa-devel] [PATCH 1/2] ASoC: pcm1681: Fix setting de-emphasis sampling rate selection 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 de-emphasis sampling rate selection is controlled by BIT[3:4] of PCM1681_DEEMPH_CONTROL register. Do proper left shift to set it. Signed-off-by: Axel Lin --- sound/soc/codecs/pcm1681.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/pcm1681.c b/sound/soc/codecs/pcm1681.c index b2c990f..1011142 100644 --- a/sound/soc/codecs/pcm1681.c +++ b/sound/soc/codecs/pcm1681.c @@ -102,7 +102,7 @@ static int pcm1681_set_deemph(struct snd_soc_codec *codec) if (val != -1) { regmap_update_bits(priv->regmap, PCM1681_DEEMPH_CONTROL, - PCM1681_DEEMPH_RATE_MASK, val); + PCM1681_DEEMPH_RATE_MASK, val << 3); enable = 1; } else enable = 0;