From patchwork Fri Aug 12 12:07:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Saba Kareem, Syed" X-Patchwork-Id: 12942216 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6672C00140 for ; Fri, 12 Aug 2022 12:13:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 12101829; Fri, 12 Aug 2022 14:12:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 12101829 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1660306388; bh=zODMRZFkQDNBPT3DCLFTivXlRw0lj1GQO+pHIkKwA38=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=EUBRIkzdIa1EEvJXilOg0C566886jAV8sVCJsZ3jzp0VTMXlHCSK7dHthhhqIqAAR LGj18wNIR7lUhQkswf/gYpfYI6EZb/7PNXxZtPIM3s4Am3T5qIfBD40aBCB0YECWoi unVn3wtQy+XzOZ/Ll8dQTjSoSaphgnvmDURok4k4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E1FDAF80563; Fri, 12 Aug 2022 14:11:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DC20EF8054A; Fri, 12 Aug 2022 14:11:37 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2071.outbound.protection.outlook.com [40.107.212.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D8B74F8054A for ; Fri, 12 Aug 2022 14:11:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D8B74F8054A Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="QgUVGgUT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bQavvPWiA8edvCBH7JlPfJHHA55KZP5zrM2wts7fysnQetWCG6m/GZ7RA2314YEMmA6SdlmAsBIOibAQd/EdAAkVHfPF3SeVHOU4jKOl5HlmLNMU8Csg8uYGavvtyZXh/NPh/0gyEnEJBMw6wjWCesISwkG8Jvzrxl1hvEMAR+Lj23qdDDgWlOafVvWKMfLwEgdIfvFEUxRhDU6sRmqvUzDp3gSgslVjS2eDI9//kGqB4+n4nfsu6M6brtMZ09If0DNOeMz80rimJm1fzT/TNZJfRhKOGsS/X6XHQcvRRZCO3nf380QZzpVnChjE9Vz1JNz45pHVqoumQ1rxvthMqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=FayLB7p0TfLgBPJx1fxveDssSGqTJzT+TPLeAI7pHy0=; b=hfMOPhldbG3GjlchdhF6f9Ew2Ypqe1dSI+jN9p6cR7Qcge65k9+PzpuXMZqbBti/XfmqBrxbhso8CfhfjFEAk8T6KI6SFezLPLIEBRGG/tzMpcc7FkOSfhcJHEH/UaCmTcchcinaUXwAXWSe5u75MVKypjwgYlemK7XankgtAjwpSj77zFuBzd2uBH02NL71IfnaQgD8ud0eoy98Juf6cz1oL5IiAJVU7GHWMDd3RiIc1LykDOgykWXBrsHF0d7LFxPrcHKzhJNUFdwypHLadfVGTv4aVCDViHkWtBK2/EBK1B3IKGIQl+v9MWA5fyJviBeIKLzppMn31tCqq9k9DA== 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 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=FayLB7p0TfLgBPJx1fxveDssSGqTJzT+TPLeAI7pHy0=; b=QgUVGgUTB1mV5h3oOPASyGQng9idwzlxs4YHbqG8WxucElpyW1+7u1qtIeRtHNBsV4zRXPjxENrsIg09/n7rzosz5uO4mLYFNM8ZgpNotztzE19CoU6mXC+9SuMNDEsTgE4gutWHJGpX4Ru5t5P04QBxggM1TLTNByF5bccrtTQ= Received: from DS7PR03CA0242.namprd03.prod.outlook.com (2603:10b6:5:3b3::7) by BN6PR12MB1889.namprd12.prod.outlook.com (2603:10b6:404:105::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Fri, 12 Aug 2022 12:11:28 +0000 Received: from DM6NAM11FT096.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b3:cafe::ff) by DS7PR03CA0242.outlook.office365.com (2603:10b6:5:3b3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.16 via Frontend Transport; Fri, 12 Aug 2022 12:11:28 +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 DM6NAM11FT096.mail.protection.outlook.com (10.13.173.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5546.7 via Frontend Transport; Fri, 12 Aug 2022 12:11:27 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) 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.2375.28; Fri, 12 Aug 2022 07:11:26 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 12 Aug 2022 05:11:26 -0700 Received: from amd-B450M-DS3H.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.28 via Frontend Transport; Fri, 12 Aug 2022 07:11:21 -0500 From: Syed Saba kareem To: , Subject: [PATCH 10/13] ASoC: amd: enable Pink Sardine acp6.2 drivers build Date: Fri, 12 Aug 2022 17:37:28 +0530 Message-ID: <20220812120731.788052-11-Syed.SabaKareem@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220812120731.788052-1-Syed.SabaKareem@amd.com> References: <20220812120731.788052-1-Syed.SabaKareem@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 06daae68-c519-4e43-69d1-08da7c5bc899 X-MS-TrafficTypeDiagnostic: BN6PR12MB1889:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lwOQj5eFPKJ+Bebh9anjSjXBpe3zC7GdVtVrdxGAgnXekaywUwABBXrylPZVe4rb82hkCzXrYpaSAUR7mDaCEKo2j6Q+E0s1lnVKNBBomj/jFyiFWfFuZBw5DufEpcn68lKzHsnLuat6EW1duFQ5rol/oEiJFZXTJa8W0ViIQUSUjibiZmDxTNwSY4C9jlqLf2Qa4odfGdcjDD1/dlxhy8rkpE+TZhwsWuLFzqz92c1RiC2wZuxja2kzH0ED3Heup4/mKWL02dsW6WCHjT8pAKy3pRwPU3n8knvkIok9pCq5GVmpcgr6SfnQAXeIXquqjvSJcqUX4Z1rLLjQYUGDO6A4r8+a4EBUk2UeXYsDofddj9ha9nKrnHcILT7BCwXdjMyKPUAJbzrz5VO7I+YU58n0Ne9NU7UuknqzIeGMEF5EN83y9u4LvsR+o/7kaJH5PunoJC+pvx2hr3LxolHy6gsiadLQbHlIEfjrn/RxQG2qjIbivccXK9dLvufSeBYgfYKkASXOi/e128+2lME4EiYT+L/iHkm/WZXJWpL5ofLo4+h6CDGk5RIS83UYmUYhnIaboVEO0xCWb9sOwY9MrBKL/StXtzVg9UGzVR4M8vOauGHbvUVnq2XoFkywi7468IHu4K91VKiIwNgyPzP4JJjs1z98LpwVgNLCLgPmHZI+zu6wf6jF4pj4bNsRWa/Ig0jfXXfemsOP2znrlutMfXGCTYyXhrOa4nGCmIz/l9TR7HS+/HQHgX7wQrOdvp6Vpc3wSQMIdTRHuW4VQEzriTpumnuUj2rTwjbCFR2UX61AasOYA6AibHg1M6KB9GvQNMJR0onhMq99c5rQTQFyyg== 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:(13230016)(4636009)(346002)(376002)(136003)(396003)(39860400002)(36840700001)(46966006)(40470700004)(36860700001)(41300700001)(26005)(2616005)(2906002)(40460700003)(7696005)(86362001)(82310400005)(40480700001)(110136005)(8936002)(36756003)(54906003)(478600001)(7416002)(356005)(82740400003)(81166007)(426003)(336012)(186003)(83380400001)(47076005)(8676002)(316002)(5660300002)(70586007)(1076003)(70206006)(4326008)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 12:11:27.4774 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 06daae68-c519-4e43-69d1-08da7c5bc899 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: DM6NAM11FT096.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1889 Cc: Pierre-Louis Bossart , Sunil-kumar.Dommati@amd.com, Kai Vehmanen , Ajit Kumar Pandey , open list , Basavaraj.Hiregoudar@amd.com, Takashi Iwai , Liam Girdwood , Bard Liao , Randy Dunlap , mario.limonciello@amd.com, Vijendar.Mukunda@amd.com, Julian Braha , Daniel Baluta , Lucas Tanure , Syed Saba kareem X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Pink Sardine ACP6.2 drivers can be built by selecting necessary kernel config option. The patch enables build support of the same. Signed-off-by: Syed Saba Kareem wq --- sound/soc/amd/Kconfig | 10 ++++++++++ sound/soc/amd/Makefile | 1 + sound/soc/amd/ps/Makefile | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 sound/soc/amd/ps/Makefile diff --git a/sound/soc/amd/Kconfig b/sound/soc/amd/Kconfig index 08f5289dac54..0f461beca274 100644 --- a/sound/soc/amd/Kconfig +++ b/sound/soc/amd/Kconfig @@ -127,3 +127,13 @@ config SND_SOC_AMD_RPL_ACP6x triggered for ACP PCI driver. Say m if you have such a device. If unsure select "N". + +config SND_SOC_AMD_PS + tristate "AMD Audio Coprocessor-v6.2 Pink Sardine support" + depends on X86 && PCI + help + This option enables Audio Coprocessor i.e ACP v6.2 support on + AMD Pink sardine platform. By enabling this flag build will be + triggered for ACP PCI driver, ACP PDM DMA driver. + Say m if you have such a device. + If unsure select "N". diff --git a/sound/soc/amd/Makefile b/sound/soc/amd/Makefile index 0592e7c5c407..82e1cf864a40 100644 --- a/sound/soc/amd/Makefile +++ b/sound/soc/amd/Makefile @@ -18,3 +18,4 @@ obj-$(CONFIG_SND_SOC_AMD_ACP6x) += yc/ obj-$(CONFIG_SND_SOC_AMD_ACP_COMMON) += 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/ diff --git a/sound/soc/amd/ps/Makefile b/sound/soc/amd/ps/Makefile new file mode 100644 index 000000000000..23afa5e32ffa --- /dev/null +++ b/sound/soc/amd/ps/Makefile @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Pink Sardine platform Support +snd-pci-ps-objs := pci-ps.o +snd-ps-pdm-dma-objs := ps-pdm-dma.o + +obj-$(CONFIG_SND_SOC_AMD_PS) += snd-pci-ps.o +obj-$(CONFIG_SND_SOC_AMD_PS) += snd-ps-pdm-dma.o