From patchwork Tue Sep 2 03:27:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xavier Hsu X-Patchwork-Id: 36433 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f69.google.com (mail-qg0-f69.google.com [209.85.192.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E514520C7F for ; Tue, 2 Sep 2014 03:28:02 +0000 (UTC) Received: by mail-qg0-f69.google.com with SMTP id a108sf20438988qge.4 for ; Mon, 01 Sep 2014 20:28:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=cS7yoM94cK6UuoYbnxSDfx+fol1myyMBqOeSBZbYXs0=; b=fTAc4dsD6D4BHoOhpydrWT/D9thdg5iUNoR9AKN8mtx91KIDVLcmdnLo4oCNKAVOmR kGZAFrFFUHmFxgS6NJSdDq//TFwW5sq+4sYcQRpHnUKE6gzX8W1qiigFyUOY94glEHxE sC0mi1F/t+Zpjt3IKhY7Na+CfTwxf3aRmY6ARdjEhMj3kNSfr8xON0p8by7agXIm9vme YTIOngoGf32yG94ULTzIt/V3hvy7sDM7nFV3AuRF4zzZHWskrzYMo9fC6PD+om8Z2SgQ 01Yuu794gkCxvgkYJ7qOe7bKLyRQ/gKAX/JRJF65qQ5qGuGSkuZVFC+ONR8G2MoHPxkf mfaA== X-Gm-Message-State: ALoCoQmRQJocQKp34uHkTUojOSGB7NU6Zkv1ThaVNNDQIRQsauLGbxyYW9WQS5g5g5AxfC6kTVLL X-Received: by 10.236.199.108 with SMTP id w72mr15776081yhn.31.1409628482784; Mon, 01 Sep 2014 20:28:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.231 with SMTP id v94ls2061850qgv.16.gmail; Mon, 01 Sep 2014 20:28:02 -0700 (PDT) X-Received: by 10.52.121.74 with SMTP id li10mr23477877vdb.19.1409628482732; Mon, 01 Sep 2014 20:28:02 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id wd4si1758682vdb.33.2014.09.01.20.28.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 20:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id im17so6358217vcb.32 for ; Mon, 01 Sep 2014 20:28:02 -0700 (PDT) X-Received: by 10.220.168.210 with SMTP id v18mr28398778vcy.3.1409628482666; Mon, 01 Sep 2014 20:28:02 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp465123vcb; Mon, 1 Sep 2014 20:28:02 -0700 (PDT) X-Received: by 10.66.124.136 with SMTP id mi8mr43745704pab.89.1409628480762; Mon, 01 Sep 2014 20:28:00 -0700 (PDT) Received: from Kraken ([124.219.7.128]) by mx.google.com with ESMTP id mq9si3776770pdb.91.2014.09.01.20.27.59 for ; Mon, 01 Sep 2014 20:28:00 -0700 (PDT) Received-SPF: none (google.com: xavier@kraken does not designate permitted sender hosts) client-ip=124.219.7.128; Received: by Kraken (Postfix, from userid 1011) id 1BB5F6A27A8; Tue, 2 Sep 2014 11:27:58 +0800 (CST) From: Xavier Hsu To: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, patches@linaro.org Cc: Xavier Hsu , Andy Green Subject: [PATCHv3 8/9] WM8971 adds kcontrol functions Date: Tue, 2 Sep 2014 11:27:49 +0800 Message-Id: <1409628470-13059-8-git-send-email-xavier.hsu@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409628470-13059-1-git-send-email-xavier.hsu@linaro.org> References: <1409628470-13059-1-git-send-email-xavier.hsu@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: xavier.hsu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch improves WM8971. We add kcontrol functions on WM8971. Any comments about improving the patch are welcome. Thanks. Signed-off-by: Xavier Hsu Signed-off-by: Andy Green --- sound/soc/codecs/wm8971.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c index 95e7c39..6d34565 100755 --- a/sound/soc/codecs/wm8971.c +++ b/sound/soc/codecs/wm8971.c @@ -284,6 +284,12 @@ static const struct snd_kcontrol_new wm8971_snd_controls[] = { SOC_DOUBLE_R_TLV("ADC Volume", WM8971_LADC, WM8971_RADC, 0, 255, 0, adc_vol), + + SOC_SINGLE("Analogue Bias", WM8971_ADCTL1, 6, 3, 0), + SOC_SINGLE("Right Speaker Playback Invert Switch", WM8971_ADCTL2, + 4, 1, 0), + SOC_SINGLE("Headphone Switch POL", WM8971_ADCTL2, 5, 1, 0), + SOC_SINGLE("Headphone Switch EN", WM8971_ADCTL2, 6, 1, 0), }; /*