From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from BN8PR05CU002.outbound.protection.outlook.com (mail-eastus2azon11011046.outbound.protection.outlook.com [52.101.57.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF7643D7D83; Mon, 4 May 2026 12:58:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.57.46 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777899494; cv=fail; b=A1c8TV0iUH5ui/xIGyCvzTjl5L5jOMErp48gErdeCJhBjLwWDaU8RJ1dSrvFlhh/dMrHXCMPxHnqlRTJVNmB6yXaekJXzbH8vCqCEs89nXM7LlcUdIYz6j3YIfZTdRVnxitNUbzMFGmmxMhIw1YtU213y0jIjmKCnnG7Las5/rI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777899494; c=relaxed/simple; bh=B9YMAvz95h2oIamt5BHidNuq5gKLytX7z53y3E/AaQ8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EanfVeOVdGVubuVCzTH8MWCpJ84B+t8RJiC8AVjvkhj4O8LAUg18uQlzwJWyjtpiploxw5DxAp/OJKf5bSrRW+uW/H/+9YJGOX81UH06U44OOIx70+04cWufSBEC65yrDDO8CO3TnhrJni9afRpHCfN0VmkWdro0oSDW3M4G25s= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=qGJBAzg+; arc=fail smtp.client-ip=52.101.57.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="qGJBAzg+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P+NSsxOYbzVJmnzG4435/L8HXKJCruNH4W+bWHyKou934YD6t71Nkmrymx0gksrZvFnvQ3Fim6EycUbxZZoIuxZmFUE331mhf3RJeriEqr+ANpYnhU8RSAsteFDEM+WIaTospmI8LRK7wJ/DEeCD7/oAMeePOOJqkBBWMZlcX1B/JqBf4Agj8N49dJIDowWBXBm02V5TGRpyuVkTPflVEByecFiueULcVn4nHeE1vJy0dyBHagKLRLYbFTQXkagTXMdT2XYLQ/ObTUUKEIgBQoUUurTfSI5CfchrckGKHg2A2wsitjyQnALTHgqAVp+MfoKORo1l+WCOJmoYqkhATQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=62Y+p48NG/OW9YHleVefN6HL8DZk6IkUCcPZnBTvDqI=; b=W9EkdRfRJK5AXbSjZ/y8HFH+MSe9Lp/T6llUdJevoJGyg3cdWS+YRy/GSq9iniNUbCuKPnNhqO4YLZfmXm3TS4042ilJwvESzvOnjsDsJtQeDx0FXCOZUcFfEwd+GCP0eswpz9l8Mt4djr4XeHxxjCebNseLGUfhJTHKopabaKuS6mThyXU/U/ZD+rG7z0bYdnNqN4GOF88TglDLlRnKeMO9MbdeWqdqKdQdnK5kpEzRebqWswtBwEkMFCZq7d+TchTcL9BVI2TNFgDIK5P3od+OZNwsMc4vxqTQfNs3y78vtrdB+orMudB16Rv/3ipP0C/EAdK4OtowYesAKPw8lw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.23.195) smtp.rcpttodomain=linux.dev smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=62Y+p48NG/OW9YHleVefN6HL8DZk6IkUCcPZnBTvDqI=; b=qGJBAzg+7VbacaRVS+99RlRQq1qgmO1ixnKHcfHmnbj36noKJpK6HIjyyfIujsq4WGvTfPY3rr0wegkZoWg/EblDWwq/HGF0ONgOFG6kl/QD7a60SVvBiDV6vSWZSHHobP1y4/fXAd2xQKf7dswNIVPaxd+c4qix5DQMB2zPrbs= Received: from MW3PR05CA0028.namprd05.prod.outlook.com (2603:10b6:303:2b::33) by DS0PR10MB7979.namprd10.prod.outlook.com (2603:10b6:8:1ab::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9870.25; Mon, 4 May 2026 12:58:08 +0000 Received: from SJ1PEPF00002310.namprd03.prod.outlook.com (2603:10b6:303:2b:cafe::37) by MW3PR05CA0028.outlook.office365.com (2603:10b6:303:2b::33) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9891.14 via Frontend Transport; Mon, 4 May 2026 12:58:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.23.195) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.23.195 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.23.195; helo=lewvzet201.ext.ti.com; pr=C Received: from lewvzet201.ext.ti.com (198.47.23.195) by SJ1PEPF00002310.mail.protection.outlook.com (10.167.242.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9891.9 via Frontend Transport; Mon, 4 May 2026 12:58:06 +0000 Received: from DLEE204.ent.ti.com (157.170.170.84) by lewvzet201.ext.ti.com (10.4.14.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Mon, 4 May 2026 07:58:06 -0500 Received: from DLEE214.ent.ti.com (157.170.170.117) by DLEE204.ent.ti.com (157.170.170.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Mon, 4 May 2026 07:58:06 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE214.ent.ti.com (157.170.170.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Mon, 4 May 2026 07:58:06 -0500 Received: from LTPW0EX92E.dhcp.ti.com (ltpw0ex92e.dhcp.ti.com [10.82.30.14]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 644CvepA762893; Mon, 4 May 2026 07:58:01 -0500 From: Niranjan H Y To: CC: , , , , , , , , , , , , , , , , Niranjan H Y Subject: [PATCH v15 4/4] ASoC: tac5xx2-sdw: ACPI match for intel mtl platform Date: Mon, 4 May 2026 18:27:16 +0530 Message-ID: <20260504125716.2015-5-niranjan.hy@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20260504125716.2015-1-niranjan.hy@ti.com> References: <20260504125716.2015-1-niranjan.hy@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00002310:EE_|DS0PR10MB7979:EE_ X-MS-Office365-Filtering-Correlation-Id: b347938b-851f-4c44-c364-08dea9dcc979 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|36860700016|1800799024|82310400026|56012099003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: A/gg5jTrOJa3S1EgxK4453inUhYpOa5r10n8YFeBTyr4/pgLrk8STOQDwLZrxzBsrPcEVprO5lRwI6R2np8zRez9fPYby9qFKjtoLAujAyV+uwEepwg9wblxMXpESqcgRbBiBfoDoTBI9hVSNrylyEQfWrJ4SNhGvcWgf98Uh1R2Vfi6ZR/IT/8vDPj7bRQpEReU4ad4UPx1dbFG75z7pb5FHQtpmYNOTAkZ2M59hzYWfNf9qBGjNOTQN+w69LSE3a629OCUrOFsXeX58mv6ugD19JLxBvR2ZBXifjrbJi8fT90q04ZgPpe+PHy8mu8buA/JzEXncPDYq3lUHQmN+cmj6Jb0+pdIHPQbymhVKM0xSuJJ/FBCWOJ22W+4/8JhZwer2qELekr7S+IlCIanVA67wcPZrj0bsGgeVjShUvY7fky7UBdkM3KlRa+b4FYQlZLH2uRlyPR/lB6YL1P5DCAbDQ2QvZj6aCJhO0b7spHYZpFfnLRcsVL3YYzDE5Fxiy71MXx03dFZDp82JWdwT0douDHTOYv73J+W2vMqtpi5+0MHrvzEyJAf2KXUqkzoJjNblQcy28QmS0KJpGZDLDFEXduwtfZf9bkPD/uekaLA/6ze7WbxeNsrO+pdOEByN/7MzeR5fLny+0KvuQASNVOYE2k4nhTd2rDq2E/VOOURxTRGmxsCFiuVdwJPKykad6A1AnKS7ox3pdyglx5ckf7iLy/9JBeN5pVR/KZc2y0= X-Forefront-Antispam-Report: CIP:198.47.23.195;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:lewvzet201.ext.ti.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(7416014)(36860700016)(1800799024)(82310400026)(56012099003)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: u2+UK/Xfgom2yQntwIL7uPslbm7wgic9AjnIaYhZsallRL9E9ha6hn+EBOFQRAA1giZ4yUX2aqwMWbvAsn38AD+aIO/NPTuYAdoS2QX1BLAP3JNW8szX9R6kTUmA6KXhif/N4EY4tXS+hRp/rCVNe4q4f05NK5NWP0T5vTmigK/3OdUvwA0CBFsWSJ+qeUwDM2e5w4Ry3oHLFB0VwteCuxEDskY0LTKrHoE+hRFpGeZwXOqU0oLxnhb+Kk1R7XUMC6A6JMAKQSArG2Dpqk1iiC0xa8dr01nADYHIOO5QPBLo2Y+zpKJUxsKghgZuQW/CzmqUAi7IX6aJN3l7yP0vbqSOe2axTTJTbSM1KQp0/bo6n/dfyRCvOSAuLmidyEPQ0cbJniNFWyQW2qcqoZ2O2gKS3GODaxU+LBu96J+X9QY50aKI/U1PorGmD/mDotHh X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2026 12:58:06.9992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b347938b-851f-4c44-c364-08dea9dcc979 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.23.195];Helo=[lewvzet201.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00002310.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB7979 Add acpi match entries to support TI's tac5572, tas2883, tac5672 and tac5682 on link 0 on MTL machine. Signed-off-by: Niranjan H Y Reviewed-by: Bard Liao Reviewed-by: Pierre-Louis Bossart --- v15 - no change 14: - Resending complete series (v13 1/4 was accidentally sent alone) - no change --- .../intel/common/soc-acpi-intel-mtl-match.c | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/sound/soc/intel/common/soc-acpi-intel-mtl-match.c b/sound/soc/intel/common/soc-acpi-intel-mtl-match.c index 72c35e730..2e4222456 100644 --- a/sound/soc/intel/common/soc-acpi-intel-mtl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-mtl-match.c @@ -122,6 +122,42 @@ static const struct snd_soc_acpi_endpoint spk_r_endpoint = { .group_id = 1, }; +static const struct snd_soc_acpi_endpoint tac5xx2_endpoints[] = { + { /* Playback Endpoint */ + .num = 0, + .aggregated = 0, + .group_position = 0, + .group_id = 0, + }, + { /* Mic Capture Endpoint */ + .num = 1, + .aggregated = 0, + .group_position = 0, + .group_id = 0, + }, + { /* UAJ-HP with Mic Endpoint */ + .num = 2, + .aggregated = 0, + .group_position = 0, + .group_id = 0, + }, +}; + +static const struct snd_soc_acpi_endpoint tas2883_endpoints[] = { + { /* Playback Endpoint */ + .num = 0, + .aggregated = 0, + .group_position = 0, + .group_id = 0, + }, + { /* Mic Capture Endpoint */ + .num = 1, + .aggregated = 0, + .group_position = 0, + .group_id = 0, + }, +}; + static const struct snd_soc_acpi_endpoint rt712_endpoints[] = { { .num = 0, @@ -1011,6 +1047,33 @@ static const struct snd_soc_acpi_adr_device cs42l42_0_adr[] = { } }; +static const struct snd_soc_acpi_adr_device tac5572_0_adr[] = { + { + .adr = 0x0000300102557201ull, + .num_endpoints = ARRAY_SIZE(tac5xx2_endpoints), + .endpoints = tac5xx2_endpoints, + .name_prefix = "tac5572" + } +}; + +static const struct snd_soc_acpi_adr_device tac5672_0_adr[] = { + { + .adr = 0x0000300102567201ull, + .num_endpoints = ARRAY_SIZE(tac5xx2_endpoints), + .endpoints = tac5xx2_endpoints, + .name_prefix = "tac5672" + } +}; + +static const struct snd_soc_acpi_adr_device tac5682_0_adr[] = { + { + .adr = 0x0000300102568201ull, + .num_endpoints = ARRAY_SIZE(tac5xx2_endpoints), + .endpoints = tac5xx2_endpoints, + .name_prefix = "tac5682" + } +}; + static const struct snd_soc_acpi_adr_device tas2783_0_adr[] = { { .adr = 0x00003c0102000001ull, @@ -1035,9 +1098,45 @@ static const struct snd_soc_acpi_adr_device tas2783_0_adr[] = { .num_endpoints = 1, .endpoints = &spk_r_endpoint, .name_prefix = "tas2783-4" + }, +}; + +static const struct snd_soc_acpi_adr_device tas2883_0_adr[] = { + { + .adr = 0x0000300102288301ull, + .num_endpoints = ARRAY_SIZE(tas2883_endpoints), + .endpoints = tas2883_endpoints, + .name_prefix = "tas2883" } }; +static const struct snd_soc_acpi_link_adr tac5572_l0[] = { + { + .mask = BIT(0), + .num_adr = ARRAY_SIZE(tac5572_0_adr), + .adr_d = tac5572_0_adr, + }, + {} +}; + +static const struct snd_soc_acpi_link_adr tac5672_l0[] = { + { + .mask = BIT(0), + .num_adr = ARRAY_SIZE(tac5672_0_adr), + .adr_d = tac5672_0_adr, + }, + {} +}; + +static const struct snd_soc_acpi_link_adr tac5682_l0[] = { + { + .mask = BIT(0), + .num_adr = ARRAY_SIZE(tac5682_0_adr), + .adr_d = tac5682_0_adr, + }, + {} +}; + static const struct snd_soc_acpi_link_adr tas2783_link0[] = { { .mask = BIT(0), @@ -1047,6 +1146,15 @@ static const struct snd_soc_acpi_link_adr tas2783_link0[] = { {} }; +static const struct snd_soc_acpi_link_adr tas2883_l0[] = { + { + .mask = BIT(0), + .num_adr = ARRAY_SIZE(tas2883_0_adr), + .adr_d = tas2883_0_adr, + }, + {} +}; + static const struct snd_soc_acpi_link_adr cs42l42_link0_max98363_link2[] = { /* Expected order: jack -> amp */ { @@ -1208,12 +1316,36 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = { .drv_name = "sof_sdw", .sof_tplg_filename = "sof-mtl-rt715-rt711-rt1308-mono.tplg", }, + { + .link_mask = BIT(0), + .links = tac5572_l0, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-mtl-tac5572.tplg", + }, + { + .link_mask = BIT(0), + .links = tac5672_l0, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-mtl-tac5672.tplg", + }, + { + .link_mask = BIT(0), + .links = tac5682_l0, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-mtl-tac5682.tplg", + }, { .link_mask = BIT(0), .links = tas2783_link0, .drv_name = "sof_sdw", .sof_tplg_filename = "sof-mtl-tas2783.tplg", }, + { + .link_mask = BIT(0), + .links = tas2883_l0, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-mtl-tas2883.tplg", + }, { .link_mask = GENMASK(3, 0), .links = mtl_rt713_l0_rt1316_l12_rt1713_l3, -- 2.34.1