From patchwork Thu Aug 17 08:02:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 110300 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1858384qge; Thu, 17 Aug 2017 01:02:26 -0700 (PDT) X-Received: by 10.98.48.69 with SMTP id w66mr4461577pfw.214.1502956946120; Thu, 17 Aug 2017 01:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502956946; cv=none; d=google.com; s=arc-20160816; b=KFa8NlBJbjrv1mbEJfRCRWzLbBolb5K9gG2Qb6jdDROcnB03UjoF0peyKjir96eVfI 5HeU/SW9zLC2QqMnnmUi2l8BzH6u//Ebj2ROw+jm3jwBnKs90gM5cDYpqa2WTIGmizDc 7KEsId9tuhkPAX8OrnLTlKT9V+2Td1BOWt/t+0hAWpHMeXdM9v4qSWk/Rrd/SGZOhKMb yMv8ZvugqxnuyO660l0SpZD03ucQYHxP3M/zuPuhkoxH9WfVceJP7JQPHM7KYoNAlorq j34sm0UDbS+e+MMG3MUIctdkRJNoVsnOh4Aw+t5jzCcxA8jP+TWotYeSfi1vncbEl2YY E6/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=kiQld6pAbZnJ3eoM/kcY4Puq44nyKsdgMp4N766S5Qs=; b=Kbmva8o+pVtDwqe+vr/bqh3tQaIpv3SNBSVaXWejagaKHIp/XEPHI7A05YMUdxIB3L MzYeqP+cv2s8OwnqAobJBup+T0o/e7Y89CughVC1bT5e7ebV3J/X4wkOM3+YY2kTUQlf SsKngl1bW9dUGkkKPs6OgbVjg9GYrnYsTTXiIQJXlic/K06yMtqFj2tA+w7U9HogGdRW PD5AIxlFRdP+cEV58tWPVY9sQG2SZqik+lgzat6VhMnfneeRZA9Ule2TV3/GNVP4WsKL cG/ZgRFqVrntMVYE7nJ9CIzBPY1K7CImhxXFM07/Zbf56SoJJsotWpDus44qBIuRrXaX ZW4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P9t8XunK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m137si1692005pga.874.2017.08.17.01.02.25; Thu, 17 Aug 2017 01:02:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P9t8XunK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751711AbdHQICV (ORCPT + 26 others); Thu, 17 Aug 2017 04:02:21 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:33227 "EHLO mail-it0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbdHQICS (ORCPT ); Thu, 17 Aug 2017 04:02:18 -0400 Received: by mail-it0-f48.google.com with SMTP id f16so1503867itb.0 for ; Thu, 17 Aug 2017 01:02:17 -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=kiQld6pAbZnJ3eoM/kcY4Puq44nyKsdgMp4N766S5Qs=; b=P9t8XunKGko6BH2mkAoPKOrg+3ArP5UCmrdBZKTW1+Cytu2yZnODoFSlde87mbIcJD 4iTU6iS3L52e/2buTFLipKs4dcboXIItKOEZIYRz3WZ57bzmC7yiDMCElSN5RaefpoqN vEO1Uizx2h6I0fdGdaQ9fW4AgZD+qb4/B0zDI= 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=kiQld6pAbZnJ3eoM/kcY4Puq44nyKsdgMp4N766S5Qs=; b=LNJzAZ2HIZaaQwr6XRfRLTWTlI9pPSmv4/Z35Z71eI1wVhXhIX4ZFcXjbJLMsqVBMp VKWry0R9w7TxwQXhM05CXWsrQ4ddmYoyUCcJN7R8vVEpsnjS5A3sPRXfFsZ6iDMqdc/a eXJbrgeze7ZEVhttc6ciRidAPt08UcPQ/FQDn9Bdc7OcWHFiKUb3/sBoZ5rX6LQSoUk0 XIoNfvD0jrNdeuNdHs+krRQIQyM2q9jxw/rCrNz3Do4LUHd+F6M7n5988figGte0wFRw uYN5zGxSeR7+SNyv1sOFFaYZXUlXopAfn9TIMedJlLFEGPLUxaFDgPLAmxUaHLiF7/hl jZSQ== X-Gm-Message-State: AHYfb5gZU8T0dj5W9K/ZlMsbIFPSYanC+v8ZTMMxzcbarUvAMQIlwfS0 LPZdup46I3iX8zdz X-Received: by 10.36.225.130 with SMTP id n124mr944980ith.157.1502956937369; Thu, 17 Aug 2017 01:02:17 -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 o10sm1235777ioe.27.2017.08.17.01.02.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Aug 2017 01:02:16 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Mark Brown , Banajit Goswami , alsa-devel@alsa-project.org Cc: damien.riegel@savoirfairelinux.com, Jaroslav Kysela , Takashi Iwai , Patrick Lai , linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v4 0/3] ASoC: codecs: msm8916-wcd-analog: Add support to MBHC Date: Thu, 17 Aug 2017 10:02:08 +0200 Message-Id: <20170817080211.11453-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla This patchset adds support to MBHC(Multibutton headset control) block in PM8916 analog block. MBHC support comes from 2 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. Tested it on DB410c with Audio Mezz board with 4 pole and 3 pole and during playback and recording use cases. Changes since v3(https://lkml.org/lkml/2017/8/2/609): - dropped ASoC: codecs: msm8916-wcd-analog: move codec reset to probe - fixed rampup time for micbias spotted by Mark. - Added tested-by from Dimien - Dropped dt patch from this series. Srinivas Kandagatla (3): 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 .../bindings/sound/qcom,msm8916-wcd-analog.txt | 18 +- sound/soc/codecs/msm8916-wcd-analog.c | 400 ++++++++++++++++++++- sound/soc/qcom/apq8016_sbc.c | 34 ++ 3 files changed, 444 insertions(+), 8 deletions(-) -- 2.11.0