From patchwork Mon May 11 01:04:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6372331 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 64A389F32E for ; Mon, 11 May 2015 01:04:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 90F41203DA for ; Mon, 11 May 2015 01:04:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 97CFB2037E for ; Mon, 11 May 2015 01:04:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id EE5FB2605DD; Mon, 11 May 2015 03:04:30 +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, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 29B36260513; Mon, 11 May 2015 03:04:22 +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 9C20B260577; Mon, 11 May 2015 03:04:20 +0200 (CEST) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by alsa0.perex.cz (Postfix) with ESMTP id 5D66F2604AB for ; Mon, 11 May 2015 03:04:13 +0200 (CEST) Received: by pacyx8 with SMTP id yx8so96475814pac.1 for ; Sun, 10 May 2015 18:04:12 -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=ZiVPdbbD1h+O432VZ/WIBLqFScZKPAMoKApNKpQte+k=; b=S4EiTfNsJRVqkjwJWQPlZrowjpFGNEGigZGsal2RdzN3EjwaRU5/KT9LIxebaqcx9a YDcbQr7WO0en4EV91InswLR2Z+/LNXgTzaLrxlKtLh7iFTuLbc1FCTsdF5nh2SlrgUIb F+9lgx7zLzPzwkPAhHXzfFHi80PsXUBFkmcY+A9v2FXw7w4BYbEngz1YlgGBHb8y6D8h ZcNH0NzzC7W4cWktWvWomK+beYjShxpT2fAf6+gyfuTnr35U7rVdLdZ6Dckgs9Nn+2oZ qaSNlNWClWoVohrTDtFrotag4hjLTftLspSO4NUwU/b1grkzSGEJ68DrhF8Oqbjsv4gD 2itg== X-Gm-Message-State: ALoCoQnzXtwqAcokKe0ffT5g7wFFhRjKo3WFFL2EhL7b4ehApSQv9xUmuyalL4bxdEDjs4LoW5Hq X-Received: by 10.70.35.171 with SMTP id i11mr14936300pdj.103.1431306251841; Sun, 10 May 2015 18:04:11 -0700 (PDT) Received: from phoenix.local (36-239-228-250.dynamic-ip.hinet.net. [36.239.228.250]) by mx.google.com with ESMTPSA id b10sm11245486pdj.0.2015.05.10.18.04.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 May 2015 18:04:10 -0700 (PDT) Message-ID: <1431306246.8012.1.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Mon, 11 May 2015 09:04:06 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: "alsa-devel@alsa-project.org" , "patches@opensource.wolfsonmicro.com" , Charles Keepax , Liam Girdwood Subject: [alsa-devel] [PATCH] ASoC: wm8903: Fix define for WM8903_VMID_RES_250K 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 VMID Control 0 BIT[2:1] is VMID Divider Enable and Select 00 = VMID disabled (for OFF mode) 01 = 2 x 50k? divider (for normal operation) 10 = 2 x 250k? divider (for low power standby) 11 = 2 x 5k? divider (for fast start-up) So WM8903_VMID_RES_250K should be 2 << 1, which is 4. Signed-off-by: Axel Lin --- sound/soc/codecs/wm8903.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8903.h b/sound/soc/codecs/wm8903.h index db94931..0bb4a64 100644 --- a/sound/soc/codecs/wm8903.h +++ b/sound/soc/codecs/wm8903.h @@ -172,7 +172,7 @@ extern int wm8903_mic_detect(struct snd_soc_codec *codec, #define WM8903_VMID_BUF_ENA_WIDTH 1 /* VMID_BUF_ENA */ #define WM8903_VMID_RES_50K 2 -#define WM8903_VMID_RES_250K 3 +#define WM8903_VMID_RES_250K 4 #define WM8903_VMID_RES_5K 6 /*