From patchwork Wed Nov 3 00:07:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1550063 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=PXbiSS6n; 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 4HkRtq0p2bz9sRN for ; Wed, 3 Nov 2021 11:08:19 +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 1mi3p3-0004ks-J8; Wed, 03 Nov 2021 00:08:09 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mi3or-0004Ry-DD for kernel-team@lists.ubuntu.com; Wed, 03 Nov 2021 00:07:57 +0000 Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) (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-0.canonical.com (Postfix) with ESMTPS id 9B9933F1B2 for ; Wed, 3 Nov 2021 00:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1635898076; bh=N/I4sJ7VVRy4ErzeFxxtGrm71Q9N6lH2D14+dWAn9lE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PXbiSS6nw2DT61A2AhCSWCOIMb8+P4t+MQ//p6Z+32jiCFBknXXH7lKaAyrLYMmF2 Hy50vLE5V7wNhmdAIlpj8f2x6z7Bky2rey61lA1xdMpg0Fx3Ce6madplZ8NgwtSkBV 2AfMRYoMb8BP5GrxQsVWKb12keDTWEiNdBisirHMNxyaZwA8JAFSDiS6cCG3A9ET5U Kpa0cgfDs3yXqtMv0eXd3TbXKVoNeem4RqS/BbkIbmG3eUuW/p4FQdA6v/I3gPycbs 7Tsm/aWylfibRc6/YGHqFE1NdoqfOpvKZnW7XSJcN4zg/KsCi3tnZWDDyrgux6r93r usu4GQWMbXyDw== Received: by mail-pj1-f72.google.com with SMTP id nv1-20020a17090b1b4100b001a04861d474so51872pjb.5 for ; Tue, 02 Nov 2021 17:07:56 -0700 (PDT) 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=N/I4sJ7VVRy4ErzeFxxtGrm71Q9N6lH2D14+dWAn9lE=; b=MhJ3LHjK3MNIPD65eMjxoJQTSYgYrlW5F/r8WNlBiXsLYR4hklf6ub18i2hKQUUHqE KfSEiALRsaa5qSAzDTWSvvRdUvvOHasldwsZ6JwJjFLQN7iBXLF3Dc3Lutz+ypF5by46 4JgunkoyvwxnDV85P19w2nvdrIODd3+9eRV2Ou9dn0Dku5D8dxGxaKc3GBD9HwmbAKvu 1t+8dlP9Cmdr+Rvy3bKqrE5hUTnyb304vq2nqyB9F2wORtTQFWgcDl81qivL/ZTmTGTC mGHq6sThrxqEVAOIYxUqcQbtEc0PD8a1CxXA1S7iVm4hcl5/t02I1I/HMVKillX6tbJj 4EdA== X-Gm-Message-State: AOAM532jYUheAerxH8GFcnxpugt7c7PlukpCzwMZyytd39DcZFYv4+rG fB0LT2J1i1z9pZELLMSfBvQfm6IxatkYsJRijhtO2ft6v7ela987UJmk3gGUiqQcCsTYcFAEBvd IYptPY+DKNrYmOb6MI6yT+oPqSZzZEidIg9XyimVSYA== X-Received: by 2002:aa7:9089:0:b0:480:fe0b:3e60 with SMTP id i9-20020aa79089000000b00480fe0b3e60mr21117611pfa.35.1635898074925; Tue, 02 Nov 2021 17:07:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqaTTgAHeiuf4K1v9ByGL+gMljksG7s1yvJntJHxn1x3reYN59ADaesXi/NANyxTISaewrQA== X-Received: by 2002:aa7:9089:0:b0:480:fe0b:3e60 with SMTP id i9-20020aa79089000000b00480fe0b3e60mr21117585pfa.35.1635898074662; Tue, 02 Nov 2021 17:07:54 -0700 (PDT) Received: from canonical.com (node-1w7jr9yebujeq5th4a1ypmek0.ipv6.telus.net. [2001:56a:78ed:fb00::430]) by smtp.gmail.com with ESMTPSA id mi3sm579632pjb.35.2021.11.02.17.07.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 17:07:54 -0700 (PDT) From: Alex Hung To: kernel-team@lists.ubuntu.com Subject: [PATCH 13/14][SRU][OEM-5.14] ASoC: amd: enable Yellow Carp platform machine driver build Date: Tue, 2 Nov 2021 18:07:37 -0600 Message-Id: <20211103000738.267442-14-alex.hung@canonical.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211103000738.267442-1-alex.hung@canonical.com> References: <20211103000738.267442-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 This patch enables Yellow Carp platform machine driver build. Signed-off-by: Vijendar Mukunda Link: https://lore.kernel.org/r/20211018112044.1705805-14-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown (cherry picked from commit a80d7edadfa16fa1d4aca4a2253a0af921c3aaef linux-next) Signed-off-by: Alex Hung --- sound/soc/amd/Kconfig | 11 +++++++++++ sound/soc/amd/yc/Makefile | 2 ++ 2 files changed, 13 insertions(+) diff --git a/sound/soc/amd/Kconfig b/sound/soc/amd/Kconfig index 47b2160..2f67982 100644 --- a/sound/soc/amd/Kconfig +++ b/sound/soc/amd/Kconfig @@ -62,3 +62,14 @@ config SND_SOC_AMD_ACP6x triggered for ACP PCI driver, ACP PDM DMA driver. Say m if you have such a device. If unsure select "N". + +config SND_SOC_AMD_YC_MACH + tristate "AMD YC support for DMIC" + select SND_SOC_DMIC + depends on SND_SOC_AMD_ACP6x + help + This option enables machine driver for Yellow Carp platform + using dmic. ACP IP has PDM Decoder block with DMA controller. + DMIC can be connected directly to ACP IP. + Say m if you have such a device. + If unsure select "N". diff --git a/sound/soc/amd/yc/Makefile b/sound/soc/amd/yc/Makefile index 20f8dfe..dc29744 100644 --- a/sound/soc/amd/yc/Makefile +++ b/sound/soc/amd/yc/Makefile @@ -2,6 +2,8 @@ # Yellow Carp platform Support snd-pci-acp6x-objs := pci-acp6x.o snd-acp6x-pdm-dma-objs := acp6x-pdm-dma.o +snd-soc-acp6x-mach-objs := acp6x-mach.o obj-$(CONFIG_SND_SOC_AMD_ACP6x) += snd-pci-acp6x.o obj-$(CONFIG_SND_SOC_AMD_ACP6x) += snd-acp6x-pdm-dma.o +obj-$(CONFIG_SND_SOC_AMD_YC_MACH) += snd-soc-acp6x-mach.o