From patchwork Mon Jan 20 10:01:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 13944979 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2048.outbound.protection.outlook.com [40.107.95.48]) (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 4973B1E282D; Mon, 20 Jan 2025 10:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737367388; cv=fail; b=hjDYJ0FKxm6jb5RkfdnjG1xRCESgFevomXMdQQpCoOGUoDTXOnYoe2V1EHrFcl1dY67TXeDcB6790S0Fg5s8d9XNrVZS9WcPEbYW0Pm/2hZ6ynbAHXTXrlqwHpt/mhJrwUCk6e5UxvPKBGtY0shyXQrqX/fw9U7RFWjwROFINDw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737367388; c=relaxed/simple; bh=lqjIWZ+WJZcU8bKMLCcoJ/Hqz6Te8rCBswOU6/yglLo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gtue39K1JP4TRsVevyxL+AFnqoWfeb7oy5WwYn6ahMvmDCzrs9ZwCBlD+vPDv/6fBwUp1s1Ptp/iYu3JYPVJZHfctXv3NLGTBHgAraNYsAQJcLCbXSyAC/85+HsgxdQfvjMSgatp1+MBqwwNUMVbZOqClsN+KVyZpCXYzPXuyrA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=eaE+5H01; arc=fail smtp.client-ip=40.107.95.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="eaE+5H01" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UD/TXLGLwWuSD0MyxRW04E4O6GJL72XxeYghRgqGHBgoLS4I8ToEa5LECgtjE+EBGHasczXeXJ4Io+8+ziUEBs7gwPbOOh8A8X0fpMiFsPoLMkjVNW2u1Y0F1KNK2+P2IQgEh1apG4hOEje7lc4MIBp67TXglYGn6mkOSEwno+9orGwCEPc9oNunxS9U8+AM67/vvl3vp9kq4WSvWKKWHJ1ser6a9C+PDvdxBLNE3IA658lhEdwJHQUAmz9XIMqYRKBFk1L8eRmz87Lf4efLitvcb0HW7S8+KjmHvd1vNnQHzraVp7yveK7sd6O2TaNErj2PHZIz6k7XT+a94cDA1A== 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=hhnJuXfdhb5iveqaaBpOujpDVIlNkFwQ+T3wchTIrtU=; b=TC+RlWFsza3+z3G4XUPubAabethdCIaSNqvqaAQ3TYoHsAxZxPsnS9xAoavZBkRTfUsuIh0xKJvt23SXFWcoSzVabE383VVEHCfW1zdJGPXfrv6B/Tn5U1FSUeoXo3PN3bCqOH/KtZRcAd6F3TutgLz3ixKlmhm3jwlDcnYa3FDL6LgxKlZZD7L5jQ8yhA/5mnvfLqto6YHzd4J4fylt1PRyrGSOX5/MXS4ZWA9RBZiyWpffoITWB37htsxPE/Ow8JiSimzDiiVOaap37tETOIqBZiozl2brsMQpV+0IGnRjbn07lJPDb+rNnngKfvSFFt4lRS+yhjqOXKSgDYBpqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hhnJuXfdhb5iveqaaBpOujpDVIlNkFwQ+T3wchTIrtU=; b=eaE+5H01AZhoDdVkD+OyrhIZd1oHDIKrT8wWPqw7I7np3rZS6N6kHJX+INRRaQeGOSV43Pce7npPBObHhCpgtAmd4eB349H5zvxqlaRlfJUexZmvXMpDsbtv26h29MQx8os85O6ZxPOcKeqTBFfpveGPoxIOBEK1yMGG3yRo0wY= Received: from CH2PR08CA0010.namprd08.prod.outlook.com (2603:10b6:610:5a::20) by CY8PR12MB8314.namprd12.prod.outlook.com (2603:10b6:930:7b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 10:03:04 +0000 Received: from CH1PEPF0000AD81.namprd04.prod.outlook.com (2603:10b6:610:5a:cafe::9c) by CH2PR08CA0010.outlook.office365.com (2603:10b6:610:5a::20) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.21 via Frontend Transport; Mon, 20 Jan 2025 10:03:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH1PEPF0000AD81.mail.protection.outlook.com (10.167.244.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8377.8 via Frontend Transport; Mon, 20 Jan 2025 10:03:04 +0000 Received: from vijendar-X570-GAMING-X.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 20 Jan 2025 04:03:01 -0600 From: Vijendar Mukunda To: CC: , , , , , , , , , , Vijendar Mukunda Subject: [PATCH V2 23/23] ASoC: amd: acp: amd-acp70-acpi-match: Add rt722 support Date: Mon, 20 Jan 2025 15:31:30 +0530 Message-ID: <20250120100130.3710412-24-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250120100130.3710412-1-Vijendar.Mukunda@amd.com> References: <20250120100130.3710412-1-Vijendar.Mukunda@amd.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000AD81:EE_|CY8PR12MB8314:EE_ X-MS-Office365-Filtering-Correlation-Id: 62ae0192-00ce-468f-cba2-08dd3939a1e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: Tntf39wS9LvzmYbjXOcGnFcKnE9c8u6GBdZJ+XMYzpe5W6yiv/YtFopy2FkPZawq7jhdn6+fzvqWqiw30zKC+s3+0ay2fQpscxPXEF2K2aP7uTlWKCSkcaNTteNb331uGp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1+868CGNgVOLdnQCPdqL3Tc+nnWmZm059kvOI85UKmHriomHFkktIGzf/HkmE3YZxCY7uOG9TamT38x4pofeR4pSdVnXygqqvDR8hmId9LLRfcQgOyq5JEkibaWZBsb5JgKxW3wa89TlhJAp9lFq17zjLakBKqpDNfu0566Zjt57yLI7PRGuGPd45oPXgQb+T45NPtAApCMwoalS0a/hmU1wG/OBNmfnooTHsz90+EzMrmGBZFlugi1tSY343A6FiISqLjf6SQoFiOpJTDs0+E/qxkT5W1KSftqHzLfPSJjo11ThQ= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2025 10:03:04.7939 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 62ae0192-00ce-468f-cba2-08dd3939a1e7 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000AD81.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8314 Patch adds driver data and match table for rt722 multi-function codec on acp7.0 and acp7.1 platforms at sdw link0 for legacy(NO DSP) stack. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp/amd-acp70-acpi-match.c | 44 ++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/sound/soc/amd/acp/amd-acp70-acpi-match.c b/sound/soc/amd/acp/amd-acp70-acpi-match.c index 1f30adb6c02a..d31b681b19e2 100644 --- a/sound/soc/amd/acp/amd-acp70-acpi-match.c +++ b/sound/soc/amd/acp/amd-acp70-acpi-match.c @@ -73,7 +73,51 @@ static const struct snd_soc_acpi_link_adr acp70_4_in_1_sdca[] = { {} }; +static const struct snd_soc_acpi_endpoint rt722_endpoints[] = { + { + .num = 0, + .aggregated = 0, + .group_position = 0, + .group_id = 0, + }, + { + .num = 1, + .aggregated = 0, + .group_position = 0, + .group_id = 0, + }, + { + .num = 2, + .aggregated = 0, + .group_position = 0, + .group_id = 0, + }, +}; + +static const struct snd_soc_acpi_adr_device rt722_0_single_adr[] = { + { + .adr = 0x000030025d072201ull, + .num_endpoints = ARRAY_SIZE(rt722_endpoints), + .endpoints = rt722_endpoints, + .name_prefix = "rt722" + } +}; + +static const struct snd_soc_acpi_link_adr acp70_rt722_only[] = { + { + .mask = BIT(0), + .num_adr = ARRAY_SIZE(rt722_0_single_adr), + .adr_d = rt722_0_single_adr, + }, + {} +}; + struct snd_soc_acpi_mach snd_soc_acpi_amd_acp70_sdw_machines[] = { + { + .link_mask = BIT(0), + .links = acp70_rt722_only, + .drv_name = "amd_sdw", + }, { .link_mask = BIT(0) | BIT(1), .links = acp70_4_in_1_sdca,