From patchwork Mon Jun 24 12:11:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 807066 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77EB0C2BD09 for ; Mon, 24 Jun 2024 12:12:41 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 15CA1845; Mon, 24 Jun 2024 14:12:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 15CA1845 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1719231159; bh=eKR4UMvmeTLd+anS9f6YYfklV3EDalMCO5Nwb3ZoiP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=h1bXfD0zGnUEJ/vtSRdkgW3KmQ469PwN/s3i2MDQOLl3F271ojYXu6Q4tvXFxHIkE YAE/0WsoVewlNjN1EDWlvfD0DlJtaGgWwsCp9KJDUXb3Qd4dh8cIGzbOzoqX0Vv4bE r8geaNpuPgQQNauYXGc79zgr7nvc83KLY+HpUqrE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 37C0EF805D6; Mon, 24 Jun 2024 14:11:49 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 7C207F805E3; Mon, 24 Jun 2024 14:11:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EFEBAF8049C; Mon, 24 Jun 2024 14:11:41 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7077CF800E4 for ; Mon, 24 Jun 2024 14:11:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7077CF800E4 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NeYlOgu1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719231099; x=1750767099; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eKR4UMvmeTLd+anS9f6YYfklV3EDalMCO5Nwb3ZoiP8=; b=NeYlOgu1QfSDIJ778V1xDrWkSpzrQzhLaqnJKl3DY0vzjBb7E58vtXfZ +bqahd3LOyWcikKabbnYgjcmAqMji58L6KizqlB/sKzbTGaAaxDHLnRF3 q5hWAVWRll8JpdW8Fz3eJ2M62i6cR8rzO/FOxrhhwm5gxKpbaN3jfx+DF XG4lkw8IG6+pS6iYj7yeRMxVaD6EoHqJ27xbdVjgvUERBfBTLZbPXLra1 F+NkzWcpbK2VdfbZgAvitA+JYwCeMZTzYeIpEJQSuwpzXGCwjunWKfzG5 zbhKzW4ATbFp2fWYP6LtNyYagIuMEu0k5jOz8a/b5kflXMi22lzgmAyrH Q==; X-CSE-ConnectionGUID: oT9l4uyMQ6uJpbHP8dN9cw== X-CSE-MsgGUID: KOriH+jES/SoPDQvrjZkfA== X-IronPort-AV: E=McAfee;i="6700,10204,11112"; a="15887537" X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="15887537" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2024 05:11:35 -0700 X-CSE-ConnectionGUID: emiwiWU7R6+8Vwj9YUQlFQ== X-CSE-MsgGUID: qbks1TvfTx6vbjaMDC8leg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="43091208" Received: from ksztyber-mobl2.ger.corp.intel.com (HELO pbossart-mobl6.intel.com) ([10.245.246.230]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2024 05:11:34 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, Pierre-Louis Bossart Subject: [PATCH 1/4] ASoC: Intel: sof_sdw: fix jack detection on ADL-N variant RVP Date: Mon, 24 Jun 2024 14:11:16 +0200 Message-ID: <20240624121119.91552-2-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240624121119.91552-1-pierre-louis.bossart@linux.intel.com> References: <20240624121119.91552-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: OORXQVCK25EYDTMT3TVV4H77XOE6AWMD X-Message-ID-Hash: OORXQVCK25EYDTMT3TVV4H77XOE6AWMD X-MailFrom: pierre-louis.bossart@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Experimental tests show that JD2_100K is required, otherwise the jack is detected always even with nothing plugged-in. To avoid matching with other known quirks the SKU information is used. Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/boards/sof_sdw.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index b646b32dd311..89b92a061489 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -277,6 +277,15 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = { SOF_BT_OFFLOAD_SSP(2) | SOF_SSP_BT_OFFLOAD_PRESENT), }, + { + .callback = sof_sdw_quirk_cb, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Intel Corporation"), + DMI_MATCH(DMI_PRODUCT_SKU, "0000000000070000"), + }, + .driver_data = (void *)(SOF_SDW_TGL_HDMI | + RT711_JD2_100K), + }, { .callback = sof_sdw_quirk_cb, .matches = {