From patchwork Thu Dec 19 05:48:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 13914504 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2053.outbound.protection.outlook.com [40.107.244.53]) (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 346C4218AC8; Thu, 19 Dec 2024 05:52:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734587524; cv=fail; b=KTbZX6L0ygCQTPE/ptAqmpiLH3bap55R0KcMEid8cUbwjlcqpUhMbJSxBk3cwAedUnJgG7I4fMi6CzzaL50p5pDwiSZkCnFPKa3MZlUbIo3PYEDJ2BrYmhR3lY9Hwyw2IMSo1wwN7s+roht0C45Cr2dxN+/2H5uYVwQJdpBlqEc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734587524; 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=dO73rIeu2TqoBDSPfIICsFUVnzyLkUj70uz4bYI6eK0uzgkN876TmXuV0BQdRtgSKJIdfE37/zlaUsyiMBpTPcLgoUIWXodqop56J+GB/bJhDv8kYyFb99tGJ6JsdBNDNAHj+7Kcvb6Axjaz6DZnva0bjgfWgpBFm6ucmbkGiwo= 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=3iL9hJZ3; arc=fail smtp.client-ip=40.107.244.53 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="3iL9hJZ3" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Oi/3t4XgYXv73W/V4JtSmoctNY6Ep/W+lPEIhimPsy5lUFnJPgAElADzaFKBQooJwn1jFLxUTc9fDH5LlaZFYfZUeaERJoN/ov7cXpsEQ3qYx4kTcRplyL4jd/zYgWfN2SZ4VMLJQVpcku0DeujdG1Gtb8vNaOxim9WuM360t4GpVMuOfd0ddkphpDd6ZzEkBdpK/HY7YxyKanktTQtGV3uqC5wzpzqsvMiV5a27rGFfgd80GZ7mY6haoijmT0JIEVyxtP/v252zXJA2JV2+4L33yS5INmIhb7XfZ6LEvR0GSpmI0RMKkcdH4+FHcJu3nv/dTojAVsAyJaLso0d48A== 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=cCaFqf1yYey1Lj9H3TZORVmu62bNJpdlntYD7m6t3f5jljl0XQHHasNYsSy+iAgv+QDEN1BzzWa1wQ99MWERezShbEB+ie6GN0t94MRl832pL60lzRnbh9kKN9uz/Whl0QQTqXsbdDR0iwxK4D1+JfHIvOkkIssp2gR3yUpFiPxdLuHIiN9TyMy1EIidiyP64cZ8s89oxzLD/SoVpZgN17fGgDcFJVICCznmj2vyYNVY94tl7GKo8m6ztGzOKAXlG59VqL5mE/6Obbd4U35ipBCAmkS0i79ttmOIqHw0BV4K/c48bujJQ2RpDKBg6Pe0nwIPZL9rhaqBg3kIcopHkA== 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=3iL9hJZ3x7Nh9pxUW8wtLG8lB78XHRFANblFaQ8tGN29S1vcv2PFJfaXqyUal/nyuCq59CN4McGMIrwkOCLOZTa9zTlRIda+qJ78knTJjFAs0ljn+1Yz+zPA/X3V4NllwDfqifBEqj2FlxywIAY4Fm1FlMmndxD4DpkDjQ05Yi0= Received: from CH5P222CA0007.NAMP222.PROD.OUTLOOK.COM (2603:10b6:610:1ee::19) by LV3PR12MB9437.namprd12.prod.outlook.com (2603:10b6:408:21d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 05:52:00 +0000 Received: from CH1PEPF0000AD7D.namprd04.prod.outlook.com (2603:10b6:610:1ee:cafe::3c) by CH5P222CA0007.outlook.office365.com (2603:10b6:610:1ee::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.23 via Frontend Transport; Thu, 19 Dec 2024 05:52:00 +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 CH1PEPF0000AD7D.mail.protection.outlook.com (10.167.244.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8251.15 via Frontend Transport; Thu, 19 Dec 2024 05:52:00 +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; Wed, 18 Dec 2024 23:51:56 -0600 From: Vijendar Mukunda To: CC: , , , , , , , , , , Vijendar Mukunda Subject: [PATCH 21/21] ASoC: amd: acp: amd-acp70-acpi-match: Add rt722 support Date: Thu, 19 Dec 2024 11:18:57 +0530 Message-ID: <20241219054857.2070420-22-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241219054857.2070420-1-Vijendar.Mukunda@amd.com> References: <20241219054857.2070420-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: CH1PEPF0000AD7D:EE_|LV3PR12MB9437:EE_ X-MS-Office365-Filtering-Correlation-Id: a2f648df-0c0d-4cab-09e5-08dd1ff14175 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: 7AE4hLxR+UmLZre5lAtUqldDHHumDRaT5wLMa95IDAePLREFhERYe/H53/yZBjCnoDkaulqc5ihsnj4JDNlSzTfJpRGU43EIEuXi4OVXI/lSW1jvZR5OgRz+O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JeBHidAgjydYdWfMO2isLhgufhCCdIXxqujFu82Q0xRxR22SC1x5oMkyEYdK0vLOZUtoTVLBljaQi3CLtvXUQMb5OepGBBlllsK8T/t7HLapIM5dp4m/gCY+1jk2FUIgNFKf+Uq59dvv05e4rX2loJmefegZR/guWqxw1sKDeBu5LlOztY5V0nRq6W/6iYMAHPipKKIkyMrKI91gjYRAaPJ8VXnBCct9ZbvzpRbJReX3lcn4bAxwYs97qhXXWNlECu4Wv4QyZfR1XNgd0LI9QsCKwvnQPPW5PHhyymqmuF8YOxPiC8lo4U0O0rBOPFXY= 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)(1800799024)(36860700013)(376014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 05:52:00.1309 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2f648df-0c0d-4cab-09e5-08dd1ff14175 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: CH1PEPF0000AD7D.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9437 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,