From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from BYAPR05CU005.outbound.protection.outlook.com (mail-westusazon11010021.outbound.protection.outlook.com [52.101.85.21]) (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 7EC1A30F543; Tue, 5 May 2026 11:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.85.21 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777979961; cv=fail; b=hpdnQFF0nMgF1J88EfVWloK8ljYoD6ZIV+ZK0b5t11xJbkb+7DU9w5iO70eIfDvz9r6pbG0hYBRfFcCHIHCcrMMf5F9X0kPZE3zqkMou7MPj1HxZHumzJCd8h4OsU4PUDdJSvzjnVordYmSToRouS4zlNV4GXK6v1EFplQJduRo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777979961; c=relaxed/simple; bh=jA6Tu5SjBYrmd7eqP4GTli4fYgHA3wsuvt0lbUyz53U=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HupmDsOboJ+THWvGuyP1YOOXrtGvW+JIFv06f+fiGTO6ylnPh2lRx4lmUAg+BS0rJPV0esDpfgnSqUszmoqY2V9VSE6y9XiOo3ibesTLMy9610mgBQgtN+vtjBoVq+2N3vitJItpT0fHwig2FdVH9Z+XKwBo77CKdmt42klBNy4= 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=H508z9fC; arc=fail smtp.client-ip=52.101.85.21 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="H508z9fC" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Fc1HsiZICH0kGcSq2SdkprkugFsH+ZXopnZGYoQJI1fDyhXxWzrLb1lQn6rK2VgLsrnRTGdrZ2mszwQBwkyV9ZRdXPUkj9qCi+zU6HKr1mNYCv0ZJEMVGXUT4R5TzbOXQYC0J22JCZFvdvpLrSo+UdHVA72wGiUvNEYqgX8iLGksp875spcQDXb6j/jrLPcRE+rTN9z5Uoaj+teIwvG7/BTTx4CEp9ybo49igy+g0Yo0fKbpGd+EGNhKfy/vQ5yMEAdmmfGoiblzfLFFpSIeAeMJRWPlNoW22KcsAihcJeuwemnn6ZZ+2b8l20jzdhk86uT9H9+vy9J2CXOnOXE0kA== 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=P2jvDuM1GQrXmSbcYOOc6AvLLIesEYza2eSMrTm31Uc=; b=I+33NaOAe1T7CEFfCtjwuCLKZuHouNXiGHySidV+YIAkkOur42dwbwXt27dV2fULbpG/2C3q3QQPS/icontA0uen3nbLhv2gSgvgAjg/4wAUP6zuM+RWTKWGgw3WkF63tpy2fRcOffnTvw4y062COOS2xI3h6n4ARgT96Y+taFu+cNJSQg8PxmmCbxcUoVWcRpXd0GBA9y3z9cXROC110pRYyqIwOv43I8YqA6RX2+H22GGC2ShX+UmKEYEZw2VUEHNKFC6+6LdJtHpoY+PuZvAXwSdmCUxJPnq1/MpK/lGEpZhpV5MMokknDcTXzyxeen4ePkAhtusOXERiReUOkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.21.194) 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=P2jvDuM1GQrXmSbcYOOc6AvLLIesEYza2eSMrTm31Uc=; b=H508z9fC0gXIBJV3ZsAKc7595PbF4v/5nZd4hz7E3JTfDqhePXUb2t9aDseDRtDi3xLtz3lB1a/uGocaj2QSFe/DlLbT38tG2NafSsXPcMFdrdHPa8ZhiUSriClUssygZ4nz4b0huY6p7jtXmVo6xTKv47jU7S+P4tKAlmmTfys= Received: from BN9P222CA0026.NAMP222.PROD.OUTLOOK.COM (2603:10b6:408:10c::31) by CY8PR10MB6467.namprd10.prod.outlook.com (2603:10b6:930:61::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9870.25; Tue, 5 May 2026 11:19:17 +0000 Received: from BN2PEPF00004FC1.namprd04.prod.outlook.com (2603:10b6:408:10c:cafe::e1) by BN9P222CA0026.outlook.office365.com (2603:10b6:408:10c::31) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9870.25 via Frontend Transport; Tue, 5 May 2026 11:19:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.21.194) 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.21.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.21.194; helo=flwvzet200.ext.ti.com; pr=C Received: from flwvzet200.ext.ti.com (198.47.21.194) by BN2PEPF00004FC1.mail.protection.outlook.com (10.167.243.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9891.9 via Frontend Transport; Tue, 5 May 2026 11:19:15 +0000 Received: from DFLE210.ent.ti.com (10.64.6.68) by flwvzet200.ext.ti.com (10.248.192.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Tue, 5 May 2026 06:19:15 -0500 Received: from DFLE211.ent.ti.com (10.64.6.69) by DFLE210.ent.ti.com (10.64.6.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Tue, 5 May 2026 06:19:15 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE211.ent.ti.com (10.64.6.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Tue, 5 May 2026 06:19:15 -0500 Received: from LTPW0EX92E.dhcp.ti.com (ltpw0ex92e.dhcp.ti.com [10.82.30.14]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 645BInUp3137036; Tue, 5 May 2026 06:19:10 -0500 From: Niranjan H Y To: CC: , , , , , , , , , , , , , , , , Niranjan H Y Subject: [PATCH v16 4/4] ASoC: tac5xx2-sdw: ACPI match for intel mtl platform Date: Tue, 5 May 2026 16:48:06 +0530 Message-ID: <20260505111806.2280-5-niranjan.hy@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20260505111806.2280-1-niranjan.hy@ti.com> References: <20260505111806.2280-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: BN2PEPF00004FC1:EE_|CY8PR10MB6467:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f1a29dd-732b-429c-df5e-08deaa9824b0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|376014|82310400026|36860700016|56012099003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: h1ZGUa/1LDg3Tjg9MY01LAb27kVjXof66ftjS9gVoMii9eZt0vKOaj5EnZ2GI2Z+ti0+lce7ppm4opS8LqsEb0ND2qZLusJ4CeDRILCDuHL6gKTFWU7AzX2Jh+hd51BPV565pO4k5ITPLaVkSKp71gt+Y9TdnZ7drstgm6Qu004jq63qhlydrllp6IqRxbaligGLzJU8nFpO0lYgyGPLT864kkmGMmLp+WIYQPWV4gblNJFKoAVmWIY/jqDn06uPsNqBcQE5+ww1pGMdKHPnbWoCg/p2kTOB96x4VAZHa4TRSl9TZKYkTLa1jAnJuRNdBbEngdhX0RfIYlydRcWNFfopE18zfkGvTKUsF4seNsmRiSxnKJSCOlpaOsuTmVLBJiwuHYgx/1O2/n6H/HESP30G6U9456LHgghWCHDc6jMtjf+QUPnbq5ynv2Q7Hqb5rhZfRn9uo/HlOSZelWMj3S5U48oI+vJ+WyO9HaiHAFzgPcUqoJo0W6dF84QORK3Rv+vaKFU3ykjnsonG7V5XCCaiV8Z5BQSVcf6npOx6EmqweMlyBRMnUzs2tGfuosluS+i/tJJCjNrOTyycRd2KKg9pJfTn+btcweV80PDUpOROIIqo6uvuZgyInO/N7OKo3UQAuTcPAINGz/ppHlLZyAxPhui7L4W8oWmhG0fNLrEmbQpHwjll6d82OuJZ45Y0n/KsQEEv5ThIIFoV0BswbfjDfOlTeVBMUSYh+U6BG+k= X-Forefront-Antispam-Report: CIP:198.47.21.194;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:flwvzet200.ext.ti.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230040)(7416014)(1800799024)(376014)(82310400026)(36860700016)(56012099003)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lL0TuFv4eIme9+FjM+bZpr+77m3ae5T0e/XqMeDOVhK8IsAwSlHnVxexnJ6hwYFCZMmnh0C/CIYQs9PeQkd83qMKgiKfNCdlZf1GmUhdy+ud0/aZyKc9kVUY6i3fWuGjV63KccbN+tAVqhrvKkbPT2ddyIYGiYd4SrbwmACq9NghltK817cNA9P3QwRHGlaHLMT6ZQM80xTa9GOrfI6/A588icKAne9ShybO8G3zXyaEO45KlxnHQWtZUTkfKUzQVBKcuLZGj575c6qM3B2PHZ2LDqtdCqB5tJEtt4Qv3xhs8ffN45vWn8sGl/FbPkkQgpfbBw5lyM661UenYWJEVeTcW7d+7EKq+XdljzfRWoa2qRR8buZu6sjcFb3S4fv7bqYvuyTcnv2vaYfKMBkXHozol8sSEz301Arh3JpsMlsC/SRtzMsvp1cJn7UYD2R4 X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2026 11:19:15.9259 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4f1a29dd-732b-429c-df5e-08deaa9824b0 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.21.194];Helo=[flwvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF00004FC1.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6467 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 --- v16: - no change 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