From patchwork Thu Jan 6 18:41:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1576251 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=Q4BiD11Q; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JVFZG22SNz9ssD for ; Fri, 7 Jan 2022 05:41:58 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1n5Xht-0008JB-Ti; Thu, 06 Jan 2022 18:41:49 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1n5Xhf-0007vY-2x for kernel-team@lists.ubuntu.com; Thu, 06 Jan 2022 18:41:35 +0000 Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id DCA273FFDD for ; Thu, 6 Jan 2022 18:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1641494492; bh=TxPD6YMkozS23uq+o49GPoj8QXsXv2L0qi01g7Qbu+A=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Q4BiD11Qh6NBxEQ4N570JsI7bQ3XzUjVMHeLmNRHHYpqDr7lLDTyjx1GiQVHGWOhb J5+q8HQ8DQL6WPIJGED7UIVm/VXjQepXK9M2oM6rOyjBraYYMazMdgCLm+xUBK4j9B dtTWoWXTOFUfCGwLoF10nYs1flD+I8Ppgs0yHpKkjaN5YRep2iJMCduf8XREZ4bzDx 99vDZ57xZCP4gA/XBT0F+gAZKq4PHmtSKSRjZyZufqB6xHuvf9cckG+Un+16I33M2n uv9p+waeFiAlypAhE8ycBA+Frz4ZBlTcdookFqAT3w4ukohXHo3bXmTHO1DzgrRtFc dTaB+DzA6Pk1A== Received: by mail-pg1-f199.google.com with SMTP id p28-20020a63951c000000b0033f7b94305dso2207810pgd.11 for ; Thu, 06 Jan 2022 10:41:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TxPD6YMkozS23uq+o49GPoj8QXsXv2L0qi01g7Qbu+A=; b=mbFtdCe6jNUDipL+VzE3R1AVagGq7hVWmQHQIBtnlYeUBq6JfFlYmg1pXc0ch2ZBX3 CUtQThubHv0fAwOvDbfG3XD0+x3snsFyS9eVkRXAbXV+JBb60amSSVbFOKL7G5Hy++RL l7UHP4asVgb/i2fdNu579B7JQexE7WFB2zA5kqECvxgQcQRZKKq3n8uIPo8vdi1caitq KNWqITO34TnPeEOut3LPAhMH4pXfh/JhYFkxT4yOay/2UGFTXB0HLj0Xl1KYt2AlVvCg 9fjPZcCaR6O/fZOPbVsci3fThjYhnd9qvMBE6YScs0NtZyMb9JWlmnSc51Ek+Sbdzl8x 5VtQ== X-Gm-Message-State: AOAM531AIf6sd73OgO0szHfOsV0rqi7GkyQcO6tQRT3f9DZOQfvDOBZ+ ZQiWoDoJqWbXMLexg9DbZSrsfFfru538WE46nu7CQbB6IWTnSW3ztAq94y547dm8Z4oZl8dJ1Wq 0iQm/eb6js1nvdjLQzSMwrT6E622Drv1Axl9Kry2KOg== X-Received: by 2002:a17:90b:4a41:: with SMTP id lb1mr11407303pjb.61.1641494491277; Thu, 06 Jan 2022 10:41:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbbqlWhLpOWdL2p5pbdDf60kAvNzHnlmBdUj1rKakaasGfNy9ApDdVuN+Ic7VGFODgDCKvog== X-Received: by 2002:a17:90b:4a41:: with SMTP id lb1mr11407287pjb.61.1641494490975; Thu, 06 Jan 2022 10:41:30 -0800 (PST) Received: from canonical.com (node-1w7jr9yebujergqqm2zoerub6.ipv6.telus.net. [2001:56a:78ed:fb00:55b6:539c:aab3:b032]) by smtp.gmail.com with ESMTPSA id f12sm3328377pfe.127.2022.01.06.10.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 10:41:30 -0800 (PST) From: Alex Hung To: kernel-team@lists.ubuntu.com Subject: [PATCH 10/15][SRU][J][V2] ASoC: amd: enable Yellow carp acp6x drivers build Date: Thu, 6 Jan 2022 11:41:12 -0700 Message-Id: <20220106184117.1596692-11-alex.hung@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220106184117.1596692-1-alex.hung@canonical.com> References: <20220106184117.1596692-1-alex.hung@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Vijendar Mukunda BugLink: https://bugs.launchpad.net/bugs/1949245 Yellow Carp ACP6x drivers can be built by selecting necessary kernel config option. The patch enables build support of the same. Signed-off-by: Vijendar Mukunda Link: https://lore.kernel.org/r/20211018112044.1705805-11-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown (backported from commit 89728d97db3f078aceb967ebe5ed2d0797b6a117) Signed-off-by: Alex Hung --- sound/soc/amd/Kconfig | 10 ++++++++++ sound/soc/amd/Makefile | 1 + sound/soc/amd/yc/Makefile | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 sound/soc/amd/yc/Makefile diff --git a/sound/soc/amd/Kconfig b/sound/soc/amd/Kconfig index 49ff5e7..d20ae9f 100644 --- a/sound/soc/amd/Kconfig +++ b/sound/soc/amd/Kconfig @@ -61,3 +61,13 @@ config SND_SOC_AMD_ACP5x By enabling this flag build will trigger for ACP PCI driver, ACP DMA driver, CPU DAI driver. + +config SND_SOC_AMD_ACP6x + tristate "AMD Audio Coprocessor-v6.x Yellow Carp support" + depends on X86 && PCI + help + This option enables Audio Coprocessor i.e ACP v6.x support on + AMD Yellow Carp 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 07150d2..c5b900d 100644 --- a/sound/soc/amd/Makefile +++ b/sound/soc/amd/Makefile @@ -11,3 +11,4 @@ obj-$(CONFIG_SND_SOC_AMD_ACP3x) += raven/ obj-$(CONFIG_SND_SOC_AMD_RV_RT5682_MACH) += snd-soc-acp-rt5682-mach.o obj-$(CONFIG_SND_SOC_AMD_RENOIR) += renoir/ obj-$(CONFIG_SND_SOC_AMD_ACP5x) += vangogh/ +obj-$(CONFIG_SND_SOC_AMD_ACP6x) += yc/ diff --git a/sound/soc/amd/yc/Makefile b/sound/soc/amd/yc/Makefile new file mode 100644 index 0000000..20f8dfe --- /dev/null +++ b/sound/soc/amd/yc/Makefile @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Yellow Carp platform Support +snd-pci-acp6x-objs := pci-acp6x.o +snd-acp6x-pdm-dma-objs := acp6x-pdm-dma.o + +obj-$(CONFIG_SND_SOC_AMD_ACP6x) += snd-pci-acp6x.o +obj-$(CONFIG_SND_SOC_AMD_ACP6x) += snd-acp6x-pdm-dma.o