From patchwork Thu Dec 19 05:48:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 13914483 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2085.outbound.protection.outlook.com [40.107.236.85]) (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 4197A1FAC26; Thu, 19 Dec 2024 05:49:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.85 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734587363; cv=fail; b=m5kELgYuSBdhmeeA1BcW/gFpKlLj/Uu8jBb6yvVEs9bKEyLq2Y6OxCCmCpFnc2PIx8z4FEXE+txAY7Irxh6/oKkBE4A/PagECQJQdQB7RDYeUhu+XdDeTvndZXhEtB8g+XWNDKntVbkvOuiSiMLFB1t/8+WdDiFPTvt7+nouB7Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734587363; c=relaxed/simple; bh=RJqrazA4kriZhQpfCmoIYYD1CW1tFqYn+y1qCSSXoKY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dbQyDrfHfhOwJrE1iZumgQBULng6QZoxbzqf4hBs3ELT41WzKAF1GlUu15FbLR7pmEl0D4MVD3qUl4Ea4gYvbopPAa9N61vgqCu+gMPtrQKR8ZfghA9z9SP5SbO3tmSmLj/2bl3yNU1wQYcumQsUifpxvmv+SztL2LBz7DnRZ84= 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=rXZN/YGv; arc=fail smtp.client-ip=40.107.236.85 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="rXZN/YGv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cilemU2b5IEe/BbJ753TBcTTUQRRfoIaeOX6WxKhgSBtRjYwXW1cbZDwgbwQVxlwKgRV0s+HrWL2KYklY81xhkMgIySqO+cXiAvCsfqnuelhUInGAW/SaWeujQkADymrpsZnpd2SbOZ0ZicysM49Fnet5TrTSSonMoWUPSbZECHyrby/d9pV3evvesyCNqGaQH6seDzIMfcLbSv1bGJL5GsUIva4iMc+KFY76QwSSe6C+3d+sVLInw43qRH1XGNIlG/dC6xg+Pj2N9zSmzUOjg4e3OIJK1uOMh3eg5cK3XQq9f/wNz/iew7Bl7sd9EcAyWfcVBp48SsSzoxD/TGsvA== 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=jSlXRARvRGLfRdz4M6tngvDNXAhDaoNJ5J4trZ7cdS4=; b=U4QI2ZtjRU/PsmTUQmahsBg4c3p49WJLbInBuGqWo7a3FtAdTWtGUQb6+Rf4fXXmFbVrqxqtFNal6dbLhr8hsHADTTryaNy/SM55kmyTnkizGtPYUO+R0mNXvDcdIvPHQnYvrzg+ZryHTBucvF0u11ssPyuVFsmP8F3Cp66HpRBkEP+gn/xLidiPlszf92NHvGlOHalMzJD2o3VhORrilbrdd8+VF/fgrW8d/HASwMmVVNttXPaR+0bHcVN7SJLRciJj4pVHM/DEfsQFqNcuMdl2fCGt7ipkpfCG6QjIgcyVw+BgeZM3U/BYY6uWjljjk/HUSfd4tDSoQvNGsGDTFA== 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=jSlXRARvRGLfRdz4M6tngvDNXAhDaoNJ5J4trZ7cdS4=; b=rXZN/YGv30DxfYjc028pd0r8R9hxCDd/YQqi8XQahq9Hqx9WVMWEjeZOFgr62TludcLFpHQSUAUMjxPel6nfN/sneTD4whzQM+JqUMJr9vd1kUBVOTWt+MsTZ0dnbCHLDlitAMz+rN6bplePIB2/kbvd/Jq0NbwxIykhzeeOPyY= Received: from CH2PR17CA0021.namprd17.prod.outlook.com (2603:10b6:610:53::31) by CY5PR12MB6129.namprd12.prod.outlook.com (2603:10b6:930:27::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.19; Thu, 19 Dec 2024 05:49:18 +0000 Received: from CH2PEPF0000013C.namprd02.prod.outlook.com (2603:10b6:610:53:cafe::7c) by CH2PR17CA0021.outlook.office365.com (2603:10b6:610:53::31) 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:49:18 +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 CH2PEPF0000013C.mail.protection.outlook.com (10.167.244.73) 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:49:18 +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:49:14 -0600 From: Vijendar Mukunda To: CC: , , , , , , , , , , Vijendar Mukunda Subject: [PATCH 00/21] ASoC: amd: acp70: add soundwire and acp pdm support Date: Thu, 19 Dec 2024 11:18:36 +0530 Message-ID: <20241219054857.2070420-1-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 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: CH2PEPF0000013C:EE_|CY5PR12MB6129:EE_ X-MS-Office365-Filtering-Correlation-Id: eaa3b375-bdbe-4051-1ed6-08dd1ff0e0da X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: ARjCTatcC/Yb44SnSPKCtmnFlty+kqFGMUBqZ+XFVfWXi4BUquWduxSsJuqv6Vl3WshEYEmFrzAglram5rW6cjb0HRCNRN9ff0bZkWym+tt3k9E3uScKD4n54ISfnZCyGmVZZnQcbhgm5aevWa0Dj7OKY+FL5MVqNjcEqgQSjhUtzYrMfMITZqffOWjr9Ai//Zz6fG14BGm94L+MhEup3U6oCags+9ED3Q61KAuZw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5OVIjTb6VxvamL+IJRgEib4tCSacBHuKXusWIq58JsrIeN2HWXWgFXLqtxIz1/OfkPcW1aHU66Xk+xmr9zg3zbu1drJWJCTPvVja6lr/PSN4emHgyeO0Q6Tvy7XZUGuHBQuUBfVrqTRKAWA5J3Hes12IG60aQOdRUCMliJK+xcPPmpoDA0eIY3jaIKKYGF9ijXo= 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)(36860700013)(376014)(1800799024)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 05:49:18.0700 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eaa3b375-bdbe-4051-1ed6-08dd1ff0e0da 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: CH2PEPF0000013C.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6129 This patch series includes below changes - Add Audio IO support for ACP7.0 and ACP7.1 platforms for SoundWire IO and ACP PDM controller combination. - Add common driver modules for ACP7.0 and ACP7.1 platforms (acp pci driver, Soundwire dma driver, pdm platform driver). - Add SoundWire generic machine driver changes for legacy stack (No DSP enabled) for ACP7.0 & ACP7.1 platforms. - Add SoundWire machines for ACP7.0 & ACP7.1 platforms. Vijendar Mukunda (21): ASoC: amd: add register header file for ACP7.0 platform ASoC: amd: acp70: add acp pci driver for ACP7.0 and ACP7.1 platforms ASoC: amd: acp70: add acp init and de-init functions ASoC: amd: acp70: add logic for scanning acp child devices ASoC: amd: acp70: create platform devices for acp child nodes ASoC: amd: acp70: enable driver build for ACP7.0 platform ASoC: amd: acp70: add acp pdm platform driver ASoC: amd: acp70: add acp pdm driver dma ops and dai ops ASoC: amd: acp70: add acp soundwire dma driver ASoC: amd: update ACP7.0 KConfig option description ASoC: amd: acp70: add soundwire dma driver dma ops ASoC: amd: acp70: add acp ip interrupt handler ASoC: amd: acp70: add acp pdm driver pm ops ASoC: amd: acp70: add pm ops support for soundwire dma driver ASoC: amd: acp70: add acp driver pm ops support ASoC: amd: acp70: enable wake capability for acp pci driver ASoC: amd: acp70: add soundwire host wake interrupt handling ASoC: amd: acp70: create a device node for soundwire machine driver ASoC: amd: acp: add machine driver changes for ACP7.0 and ACP7.1 platforms ASoC: amd: acp: add RT711, RT714 & RT1316 support for ACP7.0 platform ASoC: amd: acp: amd-acp70-acpi-match: Add rt722 support include/sound/acp70_chip_offset_byte.h | 484 ++++++++++++++ sound/soc/amd/Kconfig | 12 + sound/soc/amd/Makefile | 1 + sound/soc/amd/acp/Makefile | 2 +- sound/soc/amd/acp/acp-sdw-legacy-mach.c | 16 + sound/soc/amd/acp/acp-sdw-mach-common.c | 34 + sound/soc/amd/acp/amd-acp70-acpi-match.c | 132 ++++ sound/soc/amd/acp/soc_amd_sdw_common.h | 11 + sound/soc/amd/acp70/Makefile | 9 + sound/soc/amd/acp70/acp70-pdm-dma.c | 463 +++++++++++++ sound/soc/amd/acp70/acp70-sdw-dma.c | 586 ++++++++++++++++ sound/soc/amd/acp70/acp70.h | 283 ++++++++ sound/soc/amd/acp70/pci-acp70.c | 807 +++++++++++++++++++++++ sound/soc/amd/mach-config.h | 1 + 14 files changed, 2840 insertions(+), 1 deletion(-) create mode 100644 include/sound/acp70_chip_offset_byte.h create mode 100644 sound/soc/amd/acp/amd-acp70-acpi-match.c create mode 100644 sound/soc/amd/acp70/Makefile create mode 100644 sound/soc/amd/acp70/acp70-pdm-dma.c create mode 100644 sound/soc/amd/acp70/acp70-sdw-dma.c create mode 100644 sound/soc/amd/acp70/acp70.h create mode 100644 sound/soc/amd/acp70/pci-acp70.c