From patchwork Tue Sep 2 03:30:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xavier Hsu X-Patchwork-Id: 36442 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f71.google.com (mail-qg0-f71.google.com [209.85.192.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1A61020C7F for ; Tue, 2 Sep 2014 03:30:59 +0000 (UTC) Received: by mail-qg0-f71.google.com with SMTP id f51sf20502985qge.2 for ; Mon, 01 Sep 2014 20:30:58 -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=AiVSJ/VtMs7Uc3LTlNvkFhWegRxxMa2cOc5wzDghDJI6GpwjtRzEdJ/wB6ex9hrxA2 n0hzBuh5lu07qDK2WMirsgzNRQPsEsj2kVm2rmQij+bcYJ+EehiElWwj2GMWEUO9BCi/ BDlMaOaMLs4JrQTj/Oen7kc0eSZYH4mPWQYVuZSHsQt1cCZpsHYbrZXeBmLl2QMNapah HEmqbHFmTmZbr60A8TsXVND0or3MpiW6yMWQ9tan3qxjESZIPd5xnY+gH8F507FV5hSE wtt8WRM5HJbivZPJXKIIHnjwuUcwTV3EZ4K+OKDEV22ZcFOq0H3MQOu90xkjhVgf+3sn HXyg== X-Gm-Message-State: ALoCoQk/wQS21u/3k7dtwaHfJTWZFpGIKBKyVv2CGdi9zNa/JlvZelu7WR31mJoTVOXnQtOfMQ1N X-Received: by 10.236.63.197 with SMTP id a45mr17814178yhd.9.1409628658966; Mon, 01 Sep 2014 20:30:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.130 with SMTP id a2ls2258461qgf.90.gmail; Mon, 01 Sep 2014 20:30:58 -0700 (PDT) X-Received: by 10.221.68.66 with SMTP id xx2mr28426337vcb.1.1409628658896; Mon, 01 Sep 2014 20:30:58 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id p4si1752748vcn.54.2014.09.01.20.30.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 20:30:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so6360400vcb.16 for ; Mon, 01 Sep 2014 20:30:58 -0700 (PDT) X-Received: by 10.52.27.16 with SMTP id p16mr23971278vdg.14.1409628658823; Mon, 01 Sep 2014 20:30:58 -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 uj3csp465343vcb; Mon, 1 Sep 2014 20:30:58 -0700 (PDT) X-Received: by 10.66.155.105 with SMTP id vv9mr43123789pab.61.1409628657952; Mon, 01 Sep 2014 20:30:57 -0700 (PDT) Received: from Kraken ([124.219.7.128]) by mx.google.com with ESMTP id ra1si3575061pbb.187.2014.09.01.20.30.56 for ; Mon, 01 Sep 2014 20:30:57 -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 D8B056A27A8; Tue, 2 Sep 2014 11:30:54 +0800 (CST) From: Xavier Hsu To: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, patches@linaro.org Cc: lars@metafoo.de, ckeepax@opensource.wolfsonmicro.com, Xavier Hsu , Andy Green Subject: [PATCHv3 8/9] WM8971 adds kcontrol functions Date: Tue, 2 Sep 2014 11:30:47 +0800 Message-Id: <1409628648-13732-8-git-send-email-xavier.hsu@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409628648-13732-1-git-send-email-xavier.hsu@linaro.org> References: <1409628648-13732-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.171 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), }; /*