From patchwork Mon Jan 20 10:01:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 13944962 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2043.outbound.protection.outlook.com [40.107.244.43]) (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 D55661B415F; Mon, 20 Jan 2025 10:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737367333; cv=fail; b=YbYSicGeFnbR1NPEEiiRpmLkocVODx3ei4FMcwFoenfmFi6vrw9RPTS45o+TqGzB+cD76+8DEtpzdRpI2pqIBGnvDdNeTTPv7srBYQuZXaYi2nYsbJ/kSDS74kJWFQ3BbxYOnf6ENGbtq7Brbz/C5uE7w2DroFHlJdy9aMGC+9I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737367333; c=relaxed/simple; bh=IRrWuamcbmGdVycOuXlQTpZ0GIgRSZoWfsjbKq7uWKE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PiaLQfBw1vIMSPQQsRJ5XioV6FKUt23Qw9BLe+ek9+LaLO/iGWkgVrIkYfDmmkaoA9e+yVmBY84aTnMIK53hjNdy2rfsrDlQSL45itT94T6DbUlSayCiilTsGHS3yuYEbH6SsOTeF0l/k6SkaCLJpb+0HlYYnu4MEh0DzqF2Zd4= 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=VEsW0rRs; arc=fail smtp.client-ip=40.107.244.43 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="VEsW0rRs" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H9jZekGdBAUP4BFvPijfaLuKKoxYroqc4pXvbHoXwUkB5VNA/PIeT/P59lPOwQgqYgX+k+iXjn8PPn2VlzgXOo8twQwK/aHW3C83qULeYLWXf35tjincsnLGQ+/syVf1fkkgHlLqUzNL+z+6zNgAfdpNwrQTfssQr92EyqHPvBH8Daj90eE5VWHWAxxkXeX+mzUZ0R6Gx/FIUjcpbmHt5AVtyUfraQ7ME1I6Z3xsSTyapn7q/ZdUbnrA95JNTX3OMgvsBtAM9J69xYf1tgRLEuavihI6jNRMw2HG7o3IZrRkISl+x8shWQqXDxnpPJOAjM2PjRFP+7C3pXD/INhhwA== 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=TPk1E21AP/QyNkEB9RNusjZMp/3x2yPkKsPRl1y0YGY=; b=jE7LinDOz4iyaVOM4EBua1tWBrORXYnRhZ00t7jEHdxoJ9xdyPX/G2cfmdV0TIkFKVjpBg90fPfDoJ9YPzmAurYM4TC40edSSwjiJ1CaFUHqbgeHUI88PLsYfDi3wt6hNtnjgHx4JfIM8bS5jTAjbysTo7zsm4ktZ+vRmqPIYtYUb6Zoy3j1PV/stg+hbBqagcEHUT1n7pM7WttobS4SIp2Fb1euu7bnUTYhbWRJ43qHeZ1+wNHPOzYE7WkiFkNnT6NiG8QFaaKclRDnjScT1cb3VWgMK1lRutoq7V0zwqhXn0Y5xWs5i/1AsDtZgK+Y8swpSrBUbOh5soJvxagc2w== 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=TPk1E21AP/QyNkEB9RNusjZMp/3x2yPkKsPRl1y0YGY=; b=VEsW0rRslEQHuI3nSGfziuq9pKSr3jYIlGRKLRQHXIGWecANb2Un20PGf9qTTddauzJ3rWvIk9m4PlJsbN4bTd9Mf2wlCumgJ4IlsjVkyN8tO8BpBquJ5yIkGhI6zcOL1HCcILfRhdDdPPWQ4Qt6mHnsdTUYITiwqPda8NE4VAg= Received: from CH2PR08CA0013.namprd08.prod.outlook.com (2603:10b6:610:5a::23) by DS7PR12MB6008.namprd12.prod.outlook.com (2603:10b6:8:7f::15) 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:02:07 +0000 Received: from CH1PEPF0000AD81.namprd04.prod.outlook.com (2603:10b6:610:5a:cafe::d6) by CH2PR08CA0013.outlook.office365.com (2603:10b6:610:5a::23) 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:02:07 +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:02:07 +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:02:03 -0600 From: Vijendar Mukunda To: CC: , , , , , , , , , , Vijendar Mukunda Subject: [PATCH V2 06/23] ASoC: amd: acp70: enable driver build for ACP7.0 platform Date: Mon, 20 Jan 2025 15:31:13 +0530 Message-ID: <20250120100130.3710412-7-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_|DS7PR12MB6008:EE_ X-MS-Office365-Filtering-Correlation-Id: 12348d0d-cc6b-4014-ebcb-08dd39397fb4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|1800799024|376014; X-Microsoft-Antispam-Message-Info: rJwXHdCMrIPBkFBExmPYoKcfGvM969IBg5HRGP/iRHIlcQLXBXsVjNOWtDww/CQZCO5XsJkGD0OwincjGNY+2rmjnTVsmqoFOgC8SVbbDyqfFEGYm4szZh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6FJYfRKQaGV3wtq7zOk0SKjuJAcisWcE8/hNLVMrYxtqnX+q2F+0i0cT2adLXPfpr5x+uOPylxrCpLLt4eoTkYhmO4zAdnhlPzbNMqdHoBIBqPLM2BeTCEh8deqO5lKmtBLVt1vO/zP0Q58TAmPfT+44CZ8FBMa7P4g/+tWl/qZ6w1JqZGDEDYhTiWw0K2sDyZnj+53nvQljLtESXU33uBrnW7DXdDpJkjJUqGKGEY1qRNL4CVmKsyFBuwB5KnnW9m+qsvypFxFdkdHSz2lqF1Io5BPP7yb0EQiGvErTeaHvmZ2yO3YDs3C2v4Vzm8= 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)(82310400026)(36860700013)(1800799024)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2025 10:02:07.4179 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12348d0d-cc6b-4014-ebcb-08dd39397fb4 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: DS7PR12MB6008 Add Config options for ACP7.0 platform and Make file to trigger ACP7.0 driver build. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/Kconfig | 10 ++++++++++ sound/soc/amd/Makefile | 1 + sound/soc/amd/acp70/Makefile | 5 +++++ 3 files changed, 16 insertions(+) create mode 100644 sound/soc/amd/acp70/Makefile diff --git a/sound/soc/amd/Kconfig b/sound/soc/amd/Kconfig index 803521178279..bc0bceee9494 100644 --- a/sound/soc/amd/Kconfig +++ b/sound/soc/amd/Kconfig @@ -184,4 +184,14 @@ config SND_SOC_AMD_PS_MACH Say m if you have such a device. If unsure select "N". +config SND_SOC_AMD_ACP70 + tristate "AMD Audio Coprocessor-v7.0 SoundWire support" + select SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE + depends on X86 && PCI && ACPI + help + This option enables Audio Coprocessor i.e ACP v7.0 support. + By enabling this flag build will be triggered for ACP PCI driver. + Say m if you have such a device. + If unsure select "N". + endif diff --git a/sound/soc/amd/Makefile b/sound/soc/amd/Makefile index 4f89d962cce2..d71f74f957ff 100644 --- a/sound/soc/amd/Makefile +++ b/sound/soc/amd/Makefile @@ -19,3 +19,4 @@ obj-$(CONFIG_SND_AMD_ACP_CONFIG) += acp/ obj-$(CONFIG_SND_AMD_ACP_CONFIG) += snd-acp-config.o obj-$(CONFIG_SND_SOC_AMD_RPL_ACP6x) += rpl/ obj-$(CONFIG_SND_SOC_AMD_PS) += ps/ +obj-$(CONFIG_SND_SOC_AMD_ACP70) += acp70/ diff --git a/sound/soc/amd/acp70/Makefile b/sound/soc/amd/acp70/Makefile new file mode 100644 index 000000000000..5e553de6c772 --- /dev/null +++ b/sound/soc/amd/acp70/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-only +# ACP 7.0 platform Support +snd-pci-acp70-y := pci-acp70.o + +obj-$(CONFIG_SND_SOC_AMD_ACP70) += snd-pci-acp70.o