From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from CY3PR05CU001.outbound.protection.outlook.com (mail-westcentralusazon11013024.outbound.protection.outlook.com [40.93.201.24]) (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 06A67392C50; Thu, 26 Mar 2026 18:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.201.24 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774549085; cv=fail; b=etiw/VAaWxT8k14ilv/W8mkkndpuL1vg/TtFyjGpzu/3BWtgHfGB0qfBr3kBN/QXtkh9gqEG7/jPaRgPxhbb3giFrmkAA9GmmGWGgpYSOceufpcAqcP/p2jFvmMXVSw6kEgUD3uO2lgD1C0BH2hpf89pzIED0OuMJApvXPfN0qI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774549085; c=relaxed/simple; bh=Va6IczVbgf7GsIw9YGNstaMGYik+2lA5/nuPJaxuPpc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z5+xAkXo9sZXgXBehIknCrCn+qFGM4/h3EfcU4HoAyg3s0n06OZDLpAEZlUejENxO6QE+qt49rD1emuSjCH/SmzXn+r8y6ZVo1A1FNg10LpmZvuHE92PCO9JMWKSCIaW27KVXbDZar8MS/8oi9E/0LEXF/Alw4wOt8e1RopS44Q= 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=c84WFSjX; arc=fail smtp.client-ip=40.93.201.24 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="c84WFSjX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SqoBqjL2DVgPi8JZ2cuLDHcfETqWPmPCt9LHmkUYskgQRzR7FTfwDSV+kFLEKZHrSXB9/70uZtCkqPmcfIYVdQ1AY8aP53Pa67JRsYT6TEPoRIjKkVxiJBY3qvpiIW46YbycS7j6stLkg8baysJr7QXhqPvA5+ffClBBkFgoRGwxfmkzn/SjktDboKCPpX7I3tSclRp30K/jsk+MZ/mEkAMQxJg7W+JNJ31/cC2a5QHiWTlErC6PORnTqOkbfcmSqn1vb5Q0BYYJIbPLulaldtlHcCSnpTYybNtv+uXfV1+5dowBL/OoGIF4Ns8dntiuGSHpWZOuxgPijJeIYFz3/A== 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=gbByLnVco+16DHZvUz/4zdFAOL3zY/sFNobP2+1w6JM=; b=NfQQgCdgy824SUko2dCNVNChvTOs01p0Zc0+iweMNhC62vdjjp26wU7Pm6Q4nL5G/CB6hjlXDtEhw42EthhuV3zXqc6lmziShYJ9tpV8/enkBBf7pnAlpS6fAU5Cj3qNbAy7/yukUj3VB+1AqAPexOu+ceAY0C4c63OOmdrIsUO+Q/zhfpRXZcZzlF70pgc0dZOWaRtkgeUqqGrgdjs6vCMQ8WiXhCK4mXPqljwsegckLAnfSoCxb98X87btTRn1/e1kgt2RyQqXZ5ERxAJUPskwtzdXQDgbSpUaCuSg/JAcB1BwuMz8LSEKl8GpEaww98y5wkYxXOuB5+i6UMbfug== 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=gbByLnVco+16DHZvUz/4zdFAOL3zY/sFNobP2+1w6JM=; b=c84WFSjXXqYbtfxobgMJR9TKMYTcYLpYhxsuE0pKIGuCxtQ3NytSt/B72A2h96pHwHDQcglfTykDjAVNZQRxXXlThu5l18JDZRnhJJad8eqceFi1pTHAynK8E1MEPLg2WQz1hmEDfLtYY6yLmE+YQS3URCk5thgqlJiimi4YDAQ= Received: from SJ0PR03CA0095.namprd03.prod.outlook.com (2603:10b6:a03:333::10) by IA6PR10MB997610.namprd10.prod.outlook.com (2603:10b6:208:5dd::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9745.20; Thu, 26 Mar 2026 18:17:57 +0000 Received: from BY1PEPF0001AE1A.namprd04.prod.outlook.com (2603:10b6:a03:333:cafe::7) by SJ0PR03CA0095.outlook.office365.com (2603:10b6:a03:333::10) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9745.22 via Frontend Transport; Thu, 26 Mar 2026 18:17:57 +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 BY1PEPF0001AE1A.mail.protection.outlook.com (10.167.242.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9745.21 via Frontend Transport; Thu, 26 Mar 2026 18:17:56 +0000 Received: from DLEE208.ent.ti.com (157.170.170.97) 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; Thu, 26 Mar 2026 13:17:55 -0500 Received: from DLEE212.ent.ti.com (157.170.170.114) by DLEE208.ent.ti.com (157.170.170.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Thu, 26 Mar 2026 13:17:55 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE212.ent.ti.com (157.170.170.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Thu, 26 Mar 2026 13:17:55 -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 62QIHU8b2094511; Thu, 26 Mar 2026 13:17:50 -0500 From: Niranjan H Y To: CC: , , , , , , , , , , , , , , , , Niranjan H Y Subject: [PATCH v2 4/4] ASoC: tac5xx2-sdw: ACPI match for intel mtl platform Date: Thu, 26 Mar 2026 23:47:12 +0530 Message-ID: <20260326181712.2274-4-niranjan.hy@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20260326181712.2274-1-niranjan.hy@ti.com> References: <20260326181712.2274-1-niranjan.hy@ti.com> Precedence: bulk X-Mailing-List: linux-sound@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: BY1PEPF0001AE1A:EE_|IA6PR10MB997610:EE_ X-MS-Office365-Filtering-Correlation-Id: a6fcf4f5-c1f3-4190-e647-08de8b640150 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|1800799024|7416014|376014|82310400026|18002099003|22082099003|56012099003; X-Microsoft-Antispam-Message-Info: Z7RSJB3qmsbPFt/qhWWcJG94mecMUpd88B3Lw4BiDSq9EJ9b5PV0be9K/ogSPra7C3t0gjZjkHAtWKiA6tltTbf701j1WKJWS63XmcyzquNlQvgeDP9K0Jl+oEpP+I6bdg0i2TDnkyR86wzcnnyY30kJAgusbputEBZUuYtEWAKpfgdjuUEgX3rUR+mjlPEfyedULqGDP4R48jwD3muqx8ECkFlHbg8ib9MooA3vUEL39uUkXdBqz3x7cM+Qii35kQSLqYa/o184AYMgVo9ZkYcMjNqKfKJdOyQgPnoUAw9ZVIEEzPtgSvNkjzd7uSjDrV6l3OBuNH/leYeSV6V4mpwhTWPMKwKX6CZ9XL5BuvfMjOL7PPJoUxwwNCrnBg149eF9KneYFUmWraOmd1XRmWN/z6c//jvcbTz0vgo3tkfxDLnLK2MY9Na/6qIcgf3MRzgI74JGj60rxuJcXx8+Ysz8FCeQ8DC92TJEP2lUTpsZKbOpxxoAKksSyV466/JRRV31GuKxPFGB1W6kupSAHlO66p/+Nf8hCr9h3dDWEFGfeYenSg7Mc67oaxgEphBspCpvIGwGyF4EIgn49r2RE2nm1D5xdM2VcJxMJUeIEqPk/cZc38tCCeEnTAlT0YdnfnaabCI9Y4lGx5jzmMl+0OCK5VqprEsxaW7TZKCbtRMG2wKsi3mooa1c/TaNtWAtTJG6iJroMhKkPJpSImwPWHC58J2ig5EVEcZMokA6QFtoCP/Hs6aAD0rf0ig3XR8qzdHjBx7I+mRQOwNbsHgIrg== 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)(36860700016)(1800799024)(7416014)(376014)(82310400026)(18002099003)(22082099003)(56012099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bft+6wLN3JD5YhQizQyidGd+Yk6yWQT85q54rjBbl70gbdMzNe+J4UgHOBMnbFM5w8TTi5+vcdnxO30J7QZQMBNo7QuJmQIjnh90J6h7aSogVFdQ1H6zt4647dKMolwV0UE8IgwOamfGsYPISSOvwkAaGY3OjTxqEcwNe7ZIgPgQSPFEdY3qCg4NAOKXT5tnwDD+p2Y6Q7HM5c6uBu4bpAbPKPkqcsLfjMzsgh2tYGEj1msLqY+FYHwLCM57sD7bG+ic6aw93yzbbAeUXNweEBiWqwy8lck84ph1ikjxDtnEhU5dbJ+nMiGw2FuvtmscBj078NmX71+KvtkZFmZ9zYomhnN+O8qNNjp93/MynIBpB4BRwrowLsYeJrbKhZQLqOo71EA6V30b+x7b0x19ph8mgYLBqxneBX7xbETXq7ip02B9/YeZayF/Lldk4Elb X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2026 18:17:56.6904 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6fcf4f5-c1f3-4190-e647-08de8b640150 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: BY1PEPF0001AE1A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA6PR10MB997610 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 --- v2: - 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 72c35e73078e3..2e4222456f27f 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