Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1490587pxb; Thu, 7 Oct 2021 08:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnie80782T1U8uj77f/LTjcY/JqFQrxi2gDL/0cJCVjzZ5bDUbvsf04P0X8yaI2YCYy1nn X-Received: by 2002:a17:906:a18f:: with SMTP id s15mr6871490ejy.269.1633621643164; Thu, 07 Oct 2021 08:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633621643; cv=none; d=google.com; s=arc-20160816; b=Ggu3upKtAd27/PVEY2ishsyVKVqG5t8DiUPfy6BmW+mf2/yYap6Gh1zZBefNhLaa5a MVM19OnqihrYpL0uZPB9ddgBOofDNO+sULXi0JWBKPqzqv0LZLicOv7c69YVlAxrTN8C yx5G/bGBlk6NDpL5k8c314wi5WKkx+QxIy4Or/RFsQiZRhSh6owgvfQv+o1anzadrTZh 3QH/3NmdyconIsW/XmULJpuTUrJInJY8qGj948lBz27297kOmF32lx9RuUlYOc3v0Aum 5oaAJFXUBopKBS7GEbWo6j4uVW8unq1dw4Vx80Ng/p+LL+q9re1mpHUzF+Dn1hofldUD EN/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JmI9Xb1yRSSSNlr3bLX03Fwf/+HcWlHnhsZDlHxB6vE=; b=P4bL+3saJ2FM21WEIKEXs1opzQYeG1lozamHF++ppjZfkej4WFg20G3qlL2Gm/IQil VVmVx/dQNlHcM+DJBkayNumh4xmkfLFjsNau1cK+kJ0SwVPwG4HCLui9cuX1hHwSxy3X CrLILQlYFQmL8uL2c/C+o93HdLf2OOrbK1jY4JIkEwIlWhXMICOTuvfee565ePw1jmVk 1DMOi0Ia+JKbgL4Drro8KSly59hU75yPAttOdCCxchtMCVLFyevcoOVkyLpGFyr3s1j7 jFREF1AWMcanBr5R65WUAV/mtLrWOCBhJQXfMW5CGKjyAwQ31XSntjnZ9mDt/pQSULez DPow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dYj5vqnS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x21si26178751eje.216.2021.10.07.08.46.57; Thu, 07 Oct 2021 08:47:23 -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=@linaro.org header.s=google header.b=dYj5vqnS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241663AbhJGN4f (ORCPT + 99 others); Thu, 7 Oct 2021 09:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241783AbhJGN4e (ORCPT ); Thu, 7 Oct 2021 09:56:34 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCD2C061570 for ; Thu, 7 Oct 2021 06:54:41 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id i12so6767897wrb.7 for ; Thu, 07 Oct 2021 06:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JmI9Xb1yRSSSNlr3bLX03Fwf/+HcWlHnhsZDlHxB6vE=; b=dYj5vqnSQwe5DgTOReWWmmfQLM4MrKLltnTo3um2EWr33clCTkzznA4ppLNtrHZjyK FWAhLR+4z882pjupUtfHVJlDBp4PXKBOoeQU8I+n/eu5SCdEMWWLrP8UZIvBTPeJTBsd 0uQMo+o/t29f5eCUd+JnE7sTW1DP1qO0BYA7oGI/1YFxPZ6cJ2yA+UAr8paCBEY+L2J9 BoLl5aM2Hn3T2G01wLjfjisETY412ydBWjcnw2P9m3xY7ziCi+AvYpe3awHBX5hePijU 46TPCQvyQ275BnutZ11qBJ2uOgr25e5WycpvgAOsgciZyHe9sFbOs4w/tGP9Tj0S+iUS 929Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JmI9Xb1yRSSSNlr3bLX03Fwf/+HcWlHnhsZDlHxB6vE=; b=qocl9mipPX2Jb0UcEobri1rB5cINsuRGOf0sYh6nofQkvSpChVDU71CgxyFfSpzZj9 uFaKNWDW9eJJTgLs9POYTrjaylUP5u6b9By+CB0Da1NjrFOR4lcmAizC1qRK7U3KlWUj wDzzick9MRhQJOP/nB9GasVWcMW7zBaAZTFjnGdoypwTnmaEnZDkN+ZE/nrqtN6oPbkk eGTiteTlXv3GYAj7nGxmhovKPp9MIo5ynoIONywHNaSXyJItXW6QlYBFks/fH6epn40v 9GsZt3ZMv9qkChWImPmiPfxeSt0Wwk4Iq40SWAZ8Il4QijJE08Hj1BpZhOVYaia4fQPh DX+A== X-Gm-Message-State: AOAM533FZYndoya0JTsZkvcD1GPPF4uqxN966TVebGSvHfSHhaMnK1xm gmcZO8XTeUT/eBVWFd38ZC87wg== X-Received: by 2002:a1c:1b90:: with SMTP id b138mr4836177wmb.160.1633614879620; Thu, 07 Oct 2021 06:54:39 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id l12sm17979848wro.14.2021.10.07.06.54.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Oct 2021 06:54:39 -0700 (PDT) Subject: Re: [PATCH] ASoC: wcd938x: Fix jack detection issue To: Srinivasa Rao Mandadapu , 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, 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: Venkata Prasad Potturu References: <1633614619-27026-1-git-send-email-srivasam@codeaurora.org> From: Srinivas Kandagatla Message-ID: Date: Thu, 7 Oct 2021 14:54:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <1633614619-27026-1-git-send-email-srivasam@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/10/2021 14:50, Srinivasa Rao Mandadapu wrote: > 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 Reviewed-by: Srinivas Kandagatla > --- > 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; > } >