Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1238992rdh; Fri, 27 Oct 2023 08:24:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG614oOiQNWIUcESD5mNGS0KbutW4u9BO4+w7ZFaCOt7ylOhB/IlSUACGKKJjcmrss1EEB1 X-Received: by 2002:a05:6359:1a48:b0:168:e419:f7db with SMTP id ru8-20020a0563591a4800b00168e419f7dbmr2354214rwb.14.1698420263902; Fri, 27 Oct 2023 08:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698420263; cv=none; d=google.com; s=arc-20160816; b=VeaEHJD34V9H4wlyq1Nd6LbjdO/4aO3jgZc0CE9yQjhAo7zkgxNL7ZbLmqkBgO+fLg /qK7OVzM035w7eqaEjd5t19bMA+1JolzNy4SLLiena3Lw2JnDqY1XJ/TEH3zMvZqOF0x gcsJRqUiHHl+R/TAT6lGeiCuRdnxtlqsz+16jP549UNYM3XcBAqFrmWVtry7BFI+if0e EylWUOrR459ckzpHD7WEOVQpnzPpLENSoBBiehn+YXpb/v+L3h7F1lxAlN6TXaxaboBm 0LBSLbpjYfj7Eg4gzVsI3PEFnpGx+PXOO5Q2jf0T8eWNyDP35k2+7spwRm5TFY55w14S OFqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vSlOAP2CBKKIQ7tfiOh3mvPfNb8vzdxxz5neDdYYRt8=; fh=dHDQ6/wGJ/y7WyKwCwpL1y2RUNldDUoHGyA2i5mo4KE=; b=0BBFGQJZZPU7mjAiwt0jnefU3nNJzYBxFRvEejALrwrw/D75dTd1uyxR9G8PJ9Hf10 GIZywlIQ+0mAm4ykucHq+zL5Huxfqzibjpr8vaDbEl1Tq7X1COBRcd72LJ7XYzBlY426 SrMXA0C0wB3D9DI6033Xj+PxeIZiEGKWZvWsuP9GzGsXlZI4rzTc4S2JCPnBHBiOUuVB Cb0gDcTJFvALwaV2PvoJbASHyn8z9n6mALmT4zFn9HwW7YrBjfZ9ASJiZjb6gOKMfaIo NAggL94KYbyHEaofbHAlHX+p/Xyg7ccr/nG2xTyTDmw7pjdKOB9A7veRxonwUJaA2x3a yUlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s7aS4m3A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ea8-20020ad458a8000000b0065afd30af0bsi858405qvb.482.2023.10.27.08.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 08:24:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s7aS4m3A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D3AED851FE29; Fri, 27 Oct 2023 08:24:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346167AbjJ0PYN (ORCPT + 99 others); Fri, 27 Oct 2023 11:24:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345512AbjJ0PYM (ORCPT ); Fri, 27 Oct 2023 11:24:12 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18CC3C1; Fri, 27 Oct 2023 08:24:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD276C433C7; Fri, 27 Oct 2023 15:24:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698420249; bh=kEkw3mT5ax9TK4lledPH/qOgSDVWEicwbZhmX0r6WA0=; h=From:To:Cc:Subject:Date:From; b=s7aS4m3AextXHTYeOf7pTDE+cmH03DexsvUQmfE4zI5I/scVBQA2mgziEJ8CU2y3H +hKzuNQpja4BeT9nxPOEpJCvdoUQ+gHLY4seVpQOWqtmjJn5WPBcC51b0BAfeoew+X Xn9hRIrbfyzsIykS25M4iTO7Ac5p962wOukK/cgjb/AVhRcRbg+CVf2ugXHFTD0nLN 9tX709Sx7UGwF6vv53UITcxZpe7sWwfY0+2uqzRdSUGt7ZV0K4ZWP+/Vdcde0nk/Sv p60oVpM/tlltIB5+SZ6yFRXCOQECWkv6Gmyx4KIcbDdXrtzhUrwzSNkQBpPRbhfe5s 4//numtfGvoYQ== From: Arnd Bergmann To: Mark Brown Cc: Arnd Bergmann , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , Venkata Prasad Potturu , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ASoC: amd: acp: add ACPI dependency Date: Fri, 27 Oct 2023 17:23:52 +0200 Message-Id: <20231027152403.386257-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 08:24:21 -0700 (PDT) From: Arnd Bergmann A newly added function requires CONFIG_ACPI to avoid a build error: sound/soc/amd/acp/acp-legacy-common.c: In function 'check_acp_pdm': sound/soc/amd/acp/acp-legacy-common.c:401:19: error: implicit declaration of function 'acpi_find_child_device'; did you mean 'acpi_match_device'? [-Werror=implicit-function-declaration] 401 | pdm_dev = acpi_find_child_device(ACPI_COMPANION(&pci->dev), pdm_addr, 0); | ^~~~~~~~~~~~~~~~~~~~~~ | acpi_match_device The acp drivers really only work when ACPI is enabled already, so just avoid the build failure with hard dependency in everything that enables the acp-legacy-common portion. Fixes: 3a94c8ad0aae ("ASoC: amd: acp: add code for scanning acp pdm controller") Signed-off-by: Arnd Bergmann --- sound/soc/amd/acp/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/acp/Kconfig b/sound/soc/amd/acp/Kconfig index c0b2a2df8f80..b0e4d5117b81 100644 --- a/sound/soc/amd/acp/Kconfig +++ b/sound/soc/amd/acp/Kconfig @@ -30,13 +30,15 @@ config SND_SOC_AMD_ACP_PCM config SND_SOC_AMD_ACP_PCI tristate "AMD ACP PCI Driver Support" - select SND_SOC_AMD_ACP_LEGACY_COMMON depends on X86 && PCI + depends on ACPI + select SND_SOC_AMD_ACP_LEGACY_COMMON help This options enables generic PCI driver for ACP device. config SND_AMD_ASOC_RENOIR tristate "AMD ACP ASOC Renoir Support" + depends on ACPI select SND_SOC_AMD_ACP_PCM select SND_SOC_AMD_ACP_I2S select SND_SOC_AMD_ACP_PDM @@ -47,6 +49,7 @@ config SND_AMD_ASOC_RENOIR config SND_AMD_ASOC_REMBRANDT tristate "AMD ACP ASOC Rembrandt Support" + depends on ACPI select SND_SOC_AMD_ACP_PCM select SND_SOC_AMD_ACP_I2S select SND_SOC_AMD_ACP_PDM -- 2.39.2