Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3660946pxb; Mon, 24 Jan 2022 14:43:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJZwmzSllgNZRxe1FD7sKDDlgy9MsXaxz4oMjqrcm1wu2iq5jJWSdkOqDtB/Ts6khpxkwb X-Received: by 2002:a63:a84b:: with SMTP id i11mr13139989pgp.486.1643064216145; Mon, 24 Jan 2022 14:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064216; cv=none; d=google.com; s=arc-20160816; b=mxHKuWkYC7JPIZ8urIcXbTgD3htvcsFnW5lQY5zH73OOr3UvJ9mn6MY0Iu+gX3ILK5 P5ltMtV76MgkdsDMKoiF/+zo6q/s/J4pm8oYU8qcSKgU8JlhATLRQ0OCnoMDLZJI8yLM +EXY2QPFkLaqlhF3eL1ksP9+VKkmOn2kkTjup2omLd082AtMG+lvTAJT/NZMS8nAl9VT PSDH0jF+QOQvQYEporHbsW2ZXWqyVXOqogpBeCY7yiWnkrOp+w7yhcaf2YUQkTjpOr5o UGgVhVSFHCOuDpNTVuFCWfFcLL0XTnbgFUq5xPx/xdvN6CyeF1bfkzVq7lD61sQGfmwu 5Qvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1WH3O9MdEHQCmf3c3IuMDFnKY2ghRTIgZC6HN8MB+Sc=; b=XmgpPa2sWMbpaJfZrsNmuQwzlMo3TI84Xi6ZBxkHpC4AsMJO/x+wZNTaKP2W5tcLae JPZ1rCZp+aJhAX8oUTtXyZS7M3fG+7RAeg8M8NHERcwI6ZEdSHv6MDMu5/23TDebHG8+ mjQVfz+aZKThRTaWWsj0hnptMqopRYPdZ89NMl3SfK+TwRGXUEMQwwyU7Mql5pbczG14 3AWTiji70s052PAmOHTvwR+r+wBdwXJ3J6Dbb5KBS0w4UcWmEacS0Ep1kviHJZPL9dvz bJU9eo0AiZWYfD1f45mMNKixhS/Lc/hXm4jVsN+45GvFSn/xoVDaqzad0nHib4ntsRI9 ZRUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EwtqvzaU; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c38si14455747pgc.746.2022.01.24.14.43.24; Mon, 24 Jan 2022 14:43:36 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=EwtqvzaU; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1837073AbiAXWmJ (ORCPT + 99 others); Mon, 24 Jan 2022 17:42:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457363AbiAXVlb (ORCPT ); Mon, 24 Jan 2022 16:41:31 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E728C07E323; Mon, 24 Jan 2022 12:28:26 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BF5A861513; Mon, 24 Jan 2022 20:28:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5DD6C340E7; Mon, 24 Jan 2022 20:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056105; bh=xNtJFVYZOB+Y4RVHodAGBrD4yszD/ahGI9/cxxtSZw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EwtqvzaUYDzQX3Qc1VwYu9B5LkHuMObGa6MQ/PeA1zTA/60SejxYyxE5vTSKJkgXi N+wV2D8QfbcVmJ5Qt4YX0gg9XhNeykhdKbsTYgc0OHrk5lkWJQY4ez5CdhljpyTVKs W2+SAJW7WhwSFLNXUzKoZIS5zboeE9It/QTFClWg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pierre-Louis Bossart , Ranjani Sridharan , Bard Liao , Mark Brown , Sasha Levin Subject: [PATCH 5.15 373/846] ASoC: Intel: sof_sdw: fix jack detection on HP Spectre x360 convertible Date: Mon, 24 Jan 2022 19:38:10 +0100 Message-Id: <20220124184113.806908790@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pierre-Louis Bossart [ Upstream commit 0527b19fa4f390a6054612e1fa1dd4f8efc96739 ] Tests on device show the JD2 mode does not work at all, the 'Headphone Jack' and 'Headset Mic Jack' are shown as 'on' always. JD1 seems to be the better option, with at least a change between the two cases. Jack not plugged-in: [root@fedora ~]# amixer -Dhw:0 cget numid=12 numid=12,iface=CARD,name='Headphone Jack' ; type=BOOLEAN,access=r-------,values=1 : values=off [root@fedora ~]# amixer -Dhw:0 cget numid=13 numid=13,iface=CARD,name='Headset Mic Jack' ; type=BOOLEAN,access=r-------,values=1 : values=off Jack plugged-in: [root@fedora ~]# amixer -Dhw:0 cget numid=13 numid=13,iface=CARD,name='Headset Mic Jack' ; type=BOOLEAN,access=r-------,values=1 : values=on [root@fedora ~]# amixer -Dhw:0 cget numid=13 numid=13,iface=CARD,name='Headset Mic Jack' ; type=BOOLEAN,access=r-------,values=1 : values=on The 'Headset Mic Jack' is updated with a delay which seems normal with additional calibration needed. Fixes: d92e279dee56 ('ASoC: Intel: sof_sdw: add quirk for HP Spectre x360 convertible') Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Signed-off-by: Bard Liao Link: https://lore.kernel.org/r/20211027021824.24776-3-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/sof_sdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index f10496206ceed..76759b2099064 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -188,7 +188,7 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = { }, .driver_data = (void *)(SOF_SDW_TGL_HDMI | SOF_SDW_PCH_DMIC | - RT711_JD2), + RT711_JD1), }, { /* NUC15 'Bishop County' LAPBC510 and LAPBC710 skews */ -- 2.34.1