Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1388472pxb; Thu, 7 Oct 2021 06:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1hwF2ppFTRXAA6SfvsU20VJhxN2OBPQqZB7EV30Lbv92+uk3svegpY2UdqVOgkt7Fqp3G X-Received: by 2002:a17:906:60c3:: with SMTP id f3mr5600559ejk.561.1633614825745; Thu, 07 Oct 2021 06:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633614825; cv=none; d=google.com; s=arc-20160816; b=tNCrWlsw8DNJDYM7fTIX65qO9dcp/jj0e+V9nPPQsh3E0Rtc38Df6feDTUb20Gixo2 4e8sfoMFmE59KJUEnslAVMVs5vWU6HX8tS71n2lXcgflVnTQ/Xuqb6rchd4leJ1Awgkz 8d4lLSxElM7DkCmEwRA3EuM/X8qoxqnWivqwRVgDc7lzpHnkX5lXSpQt/J1rNE6SEQ4T Xgi2FHP0T2I6crNmw3ZrmLx6203/OpfTvYmDhrPEBVNGDTfffPMVm3K4CCp5yQgDyCmV 4LWK5teTP0WNUdL69ZXhSLiH8dmBntvBkNQPYWWpFIBdPlPYhkCA+jmLI+b9M/gGLa8A YSqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=3CEZgXTEZL9EUcW9pUPQYk38GbsDwoy8OdFI8TZi800=; b=TWtFWQg3OO34RK2n8W8CvlyIedhwauTcdGqSGqWxALlEGyXdTvwUjH/xieHfKpwur3 rHIyfKh0UJPPIy00kZsbRKJQ1Prz43wdOdg9X0/GROTzUu2IMCq5tJezehVWMv44QrqV WVp+DpaW1+ePsE75O6T60IwXKBvue5m0h4pdTZmfQ5Mcqj+LlKywpspbbtO/j6KFL3Un VA6Ffk2FH2FNrdM+KQPXINSUDcHa0WYFyNNcxqhlsJKv7Jdd5X2dA8QT1Z2eCswgTl+n 7T9lOwqVLJRgO+GIKrHjJXXNfRo3thnQUmxbYVG7ZuzuA6Isu9SBX9r50o4/FO/8DFMU 2XXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=GPBHBi4B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si14684818edl.466.2021.10.07.06.53.21; Thu, 07 Oct 2021 06:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=GPBHBi4B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241804AbhJGNwy (ORCPT + 99 others); Thu, 7 Oct 2021 09:52:54 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:29788 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241788AbhJGNwt (ORCPT ); Thu, 7 Oct 2021 09:52:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1633614656; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=3CEZgXTEZL9EUcW9pUPQYk38GbsDwoy8OdFI8TZi800=; b=GPBHBi4BA4D0DtcTDJdZYzYGYxSmFZKkhV6B6xkx6ElfsQauzUTFBQX/8aDuXSDnIMyxfGOb OoGaGl1fb8hbbX2mTpJUhPfyH8fYuAGnHMIuAtexVtiupuYRoEwlhgxEuu4XatnZ5Ni2IBzx +kYkMPQWx4V6Rs/B6tQu4sllPVU= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 615efb2eff0285fb0ab98daf (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 07 Oct 2021 13:50:38 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B9EDFC43637; Thu, 7 Oct 2021 13:50:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from hu-srivasam-hyd.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id C316AC43617; Thu, 7 Oct 2021 13:50:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org C316AC43617 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Srinivasa Rao Mandadapu To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Srinivasa Rao Mandadapu , Venkata Prasad Potturu Subject: [PATCH] ASoC: wcd938x: Fix jack detection issue Date: Thu, 7 Oct 2021 19:20:19 +0530 Message-Id: <1633614619-27026-1-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to fix audio 3.5mm jack detection failure on wcd938x codec based target. Fixes: bcee7ed09b8e (ASoC: codecs: wcd938x: add Multi Button Headset Control support) Signed-off-by: Venkata Prasad Potturu Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/codecs/wcd938x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index f0daf8d..52de7d1 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -4144,10 +4144,10 @@ static int wcd938x_codec_set_jack(struct snd_soc_component *comp, { struct wcd938x_priv *wcd = dev_get_drvdata(comp->dev); - if (!jack) + if (jack) return wcd_mbhc_start(wcd->wcd_mbhc, &wcd->mbhc_cfg, jack); - - wcd_mbhc_stop(wcd->wcd_mbhc); + else + wcd_mbhc_stop(wcd->wcd_mbhc); return 0; } -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.