From patchwork Wed Aug 2 17:09:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 109262 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp3031577qge; Wed, 2 Aug 2017 10:09:48 -0700 (PDT) X-Received: by 10.28.129.70 with SMTP id c67mr4384158wmd.175.1501693788418; Wed, 02 Aug 2017 10:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501693788; cv=none; d=google.com; s=arc-20160816; b=Tn/t6GumVvDo0Kh/03LRCGxzE1sIlAKSlO1XWdkypcKKwIcaUYr8yznSmaN+gqJE+E cRHHFvNg+8m49zJ7WEybzcm7DVNcIBJPHP38Ghcmm0H2oofj79t1/4fxqIXmcH6NuLbD 3rEIA1klIr0+BICVURvmDR4oLcvsIVU24PH359NXwxmVXJVFnhZk+hSrSRcNup5oNmuC LUGlNmsN/LexnesbZFf/hKg8APutzb8ygdFsp/eNtRaqMQLqFhv4xCXz+5qjT+sslRc3 qIYB1sjSdWLWZgtfs5ri8AYVrpvm3aWtDWIeMorApdw9wh/nStfuzn+EZdz/JWusLb0R fiig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=zNbGoaP0/Ht5JzoxS+EswNweSSGPUlX6bQYVJyJ/khc=; b=UKSyw0SEwh3vZ6GupXqKlWueHG5pb4paC8xz+NRFnJmmzRtBXMCi5KmISfC9UtJQcJ d4E4W0jpceCZcaRPPwua99K8V/MRcxdsahguXYkQWQb93x8ftjmPJaCVE2MYcq+oIqF/ W24f4JiL4CgiObCaw7FQKxkmOHzJJZ7kysQB+74erDJHjbWyUgZNKa3T0S7a/S7aqT5c 7VsyGa4pZEx9iCguzDPYLfeklGt/6JboaDYn2ECQMwGvvgYXSGWFxUQZ90HHKMo2a0wW rmVmSsk/neTpTwkv/IAV5zcxFLw/ET15jzQ7gCxz/Pf6684b1bGVBpDcbTpR7fg5jClq ah6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=VM++5U9R; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 136si3679929wmg.178.2017.08.02.10.09.47; Wed, 02 Aug 2017 10:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=VM++5U9R; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 32C50267356; Wed, 2 Aug 2017 19:09:46 +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 C3029267358; Wed, 2 Aug 2017 19:09:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-it0-f53.google.com (mail-it0-f53.google.com [209.85.214.53]) by alsa0.perex.cz (Postfix) with ESMTP id CDC4B266847 for ; Wed, 2 Aug 2017 19:09:42 +0200 (CEST) Received: by mail-it0-f53.google.com with SMTP id v127so25713508itd.0 for ; Wed, 02 Aug 2017 10:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QJGfOAyfbbLMQbqjFL9/+ENlm9GIvf7CYRw6GLk+NWM=; b=VM++5U9RgoMIXkirM6gBfFMCtM+7pVb4TMq2pKgl64EJP5dFCz9ZcoNjygoxW1gZFe vqeeMrK9HBNJ64C2rMJCoaXZo8rfYWc1aCtuR9NTMYtnnIxeyB7lm6YryLiw2mBZwbiz 1mTRCl+uM2/LI/ZWib96ZAKAXLYiqecVjN3F8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QJGfOAyfbbLMQbqjFL9/+ENlm9GIvf7CYRw6GLk+NWM=; b=lnAMsMF6wOL6mNfkhNwv21bqzJf1fyaPCiIRrVh9B1i0Y4iHYRvXj/eCkUJJq0o4IR 7myGDAtNraqhv9XiCGfxsujDX9WvBxUCHIvwuDKewxC+uhQsAjSSSH/izrlJ+HywkgG1 JmFCA01sgp5F6CfdWtGEjq49z7/+LE88vyLNwLJ7yAph9jgIjhMnW1TMezzRn5Z5WWgg huSo+gDs+9jEgH0T/upgAizJAubK3hgX9UZbJ0i9kKboQoFMf96CtEmbK3RsONh34cYm /Oek234gYWLF+Q9T8uoTlJvRTU+eGIuXM+LIXwPUaE+hCbZbAV46HbcxdUFfHxTTQNu2 inBg== X-Gm-Message-State: AIVw112XQh1RJNTt9l61riPpMzU8UG8cfQSh1xXJ5r12vh99gXB8vAke DjGNeiOttnQyhtuB X-Received: by 10.36.178.92 with SMTP id h28mr6366879iti.164.1501693781608; Wed, 02 Aug 2017 10:09:41 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id u79sm2291222ita.24.2017.08.02.10.09.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Aug 2017 10:09:40 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Mark Brown , Banajit Goswami , alsa-devel@alsa-project.org Date: Wed, 2 Aug 2017 19:09:24 +0200 Message-Id: <20170802170930.26083-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 Cc: damien.riegel@savoirfairelinux.com, Patrick Lai , linux-kernel@vger.kernel.org, Takashi Iwai , Srinivas Kandagatla Subject: [alsa-devel] [PATCH v2 0/6] ASoC: codecs: msm8916-wcd-analog: Add support to MBHC 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org From: Srinivas Kandagatla This patchset adds support to MBHC(Multibutton headset control) block in PM8916 analog block. MBHC support comes from2 blocks first mechanical headset detection and second headset type, 5 button detection. This patchset adds support to: 1> Support to NC and NO type of headset Jacks. 2> Mechanical insertion and detection of headset jack. 3> Detect a 3 pole Headphone and a 4 pole Headset. 4> Detect 5 buttons. Damien sent a similar patchset to add support to mechanical detection, but that patch has issues and will not work on most usecases (for example after a playback/capture session, multicodec case). So I only picked up the BIT mask patch from that series. Tested it on DB410c with Audio Mezz board with 4 pole and 3 pole and during playback and recording use cases. Changes since v1(https://www.spinics.net/lists/kernel/msg2565463.html): - Micbias left to hardware default value suggested by Mark. - Updated commit log to reflect low power state for mbhc - cleaned up code spotted by Mark. - Moved the button voltage threshold to dt, suggested by Mark - Fixed key release issue reported by Damien Srinivas Kandagatla (6): ASoC: jack: fix snd_soc_codec_set_jack return error ASoC: codecs: msm8916-wcd-analog: move codec reset to probe ASoC: codecs: msm8916-wcd-analog: get micbias voltage from dt ASoC: codecs: msm8916-wcd-analog: add MBHC support ASoC: qcom: apq8016-sbc: Add support to Headset JACK arm64: dts: apq8016-sbc: add mbhc buttons support .../bindings/sound/qcom,msm8916-wcd-analog.txt | 18 +- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 2 + sound/soc/codecs/msm8916-wcd-analog.c | 412 +++++++++++++++++++-- sound/soc/qcom/apq8016_sbc.c | 34 ++ sound/soc/soc-jack.c | 2 +- 5 files changed, 444 insertions(+), 24 deletions(-) -- 2.9.3 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel