Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2064233rdb; Sun, 4 Feb 2024 13:22:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBHpFcu+Tihofw+oDxaWno52s9QkyeW60DKm6/UGfLR1CjaK6pdUeR580BlT1XVyoFPD9T X-Received: by 2002:a05:622a:11d5:b0:42c:2651:c259 with SMTP id n21-20020a05622a11d500b0042c2651c259mr1170245qtk.50.1707081740603; Sun, 04 Feb 2024 13:22:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707081740; cv=pass; d=google.com; s=arc-20160816; b=B/4CIxeSLp7J7l7Z1o+4gwXk+YUk8cGIvFecNpBNbtSJaApwa81A6VBsdAsrqHsUa0 lxL2aHbKvi8MzgmA2I6XRNhCnZDqS012fJqN4+aM4we5Mus/Q9R193iI6lLRYPLZ41XS YmrJYBgclyRRReFa+kiP6YkkyHWcTt+/N6GEcwg04WZuI01Jr/puhcP9xwxTy3YtL0ZR YbkVPOWLliM/pSZxfGqjj6wqg7/WdOHQwF72ZZTLCOzoWQhQwCvKAlj1/s4FrN70qYhe FyTigi61S7/fKI087WTBI4EdMveH/j3AKKD+LQO+g/4U2reRbWJGLYDJod3QFhdIDDFE 34iA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=CfEGl5hZg9QzQDSyXQrvNQsKYYecI2cmaYEevoPJTW8=; fh=O2R491YWVKk6SUVJjxegloqCntXX0rwAiNT9he+Nmn8=; b=quz6pt+WSlmliz83sJ004vdH9C4f3oPqNhO18Y6cB6Yhgbz/HOKGNFBmN5/YIZU3Kr GsxzNcAU7hFcQvboTOxRWXT8ePqpF4pGESJNL0AOsM3JCDtAk0WTfgwzRRaP5u7Wyv4l 62ZIQS9Y6j41cACWRB5K6VFiUIuGC2DhtG/7j41YeuNJdfqABF3+Y3j1YDV42yXS6pqt ReQPPsNd5EsdaA+nkgu5aZ8qGxv1YvHu7y3JdMrpKLL3f2X/Q0gCMN0yPRnCy+ETJKVN gxpRcurZk738U+5rsPbz28sZ60yH5NJoef+qiz5GApoQeoMi1hE84HrnQ/rWSzMJEctp B16Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QpBAgEim; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCV4eJlTPwo3eNdUNX+1vIXuSJTGrVoCetXo58NyUDj4rIWAABWeE083OzlS+eMvPmNSzedMmj0CHSCM+SuYDrkE1BhDDZ9r7NQXaQoIPw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w11-20020ac857cb000000b0042c25feb7d8si801367qta.684.2024.02.04.13.22.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 13:22:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QpBAgEim; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5E9891C21083 for ; Sun, 4 Feb 2024 21:22:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E39328E3C; Sun, 4 Feb 2024 21:22:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QpBAgEim" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B10152C689; Sun, 4 Feb 2024 21:22:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707081733; cv=none; b=AW95gDCgKzk47GIxvDsArpTy4N+qtEEonl1GW0Nn0/g0813J9HwBdG+Pj/Lob8cz1UwAT8bkGR7WC+eMaH1gY4a6BQhO6uECRIQ5OoqqXfl370Pl73pVVqDVMT3itP/DqkIvgZhWKHMzC8RuP2uUCJrRck5HlCqVLHLWBF7SIgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707081733; c=relaxed/simple; bh=2Zo6tJdnJLLYyOEE56f5GLNyJyZ0OqgdoZ3rpPbquSE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=llY8Y6GRGX33Q5p9sOIQjHnffvyLoEWxAKija8xy+Zs1aa9eAtFpWcKJm5LUNkeyEnEWZQ24iZauneyPgCnWMZZ3K5+tfjPsiVp3AWF+ZkJp5jyW72Vmvk4BpvPqTFRyE/SAUUObAy06cT1mHr5pixbx65MvT2l1ya4k/0SPWNM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QpBAgEim; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA86FC433C7; Sun, 4 Feb 2024 21:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707081733; bh=2Zo6tJdnJLLYyOEE56f5GLNyJyZ0OqgdoZ3rpPbquSE=; h=From:To:Cc:Subject:Date:From; b=QpBAgEimW9lj4KBX6zvXnRbyLjtsLiISw3I20FK/8ZTy80NEO2sKA2C7N4B+kfptk l9slqZTzb44th2iYH7ltC9ScQoFNM5fWNsihZu2Rm2cqVkzeb+mC3unY9/fjPIadoV SIorREYecfj9CtoNjLtOMi24NpBAVPaCQw/0eCvUeUWyk8P8FVHiqfObfo2Ybz8P5M BvCmnl3BNANVoYVYYP8AGh1xv54RBKlKaN6Kg0CdLrQkMnOjpngXK8OF1+omiAbR+4 FBelWEGiv+Sdat46Fzx6b3LJG5b01hT9HPecoKXOj3EEp7Yz+9xazLgoiNEE/ov+de QPjVhonpZ0soQ== From: Arnd Bergmann To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vijendar Mukunda Cc: Arnd Bergmann , Syed Saba Kareem , Venkata Prasad Potturu , Vinod Koul , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ASoC: SOF: amd: fix SND_AMD_SOUNDWIRE_ACPI dependencies Date: Sun, 4 Feb 2024 22:22:01 +0100 Message-Id: <20240204212207.3158914-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The snd-amd-sdw-acpi.ko module is under CONFIG_SND_SOC_AMD_ACP_COMMON but selected from SoF, which causes build failures in some randconfig builds that enable SOF but not ACP: WARNING: unmet direct dependencies detected for SND_AMD_SOUNDWIRE_ACPI Depends on [n]: SOUND [=m] && SND [=m] && SND_SOC [=m] && SND_SOC_AMD_ACP_COMMON [=n] && ACPI [=y] Selected by [m]: - SND_SOC_SOF_AMD_SOUNDWIRE_LINK_BASELINE [=m] && SOUND [=m] && SND [=m] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_AMD_TOPLEVEL [=m] && ACPI [=y] ERROR: modpost: "amd_sdw_scan_controller" [sound/soc/sof/amd/snd-sof-amd-acp.ko] undefined! Change the Makefile and Kconfig to allow it to get built regardless of CONFIG_SND_SOC_AMD_ACP_COMMON. Fixes: d948218424bf ("ASoC: SOF: amd: add code for invoking soundwire manager helper functions") Signed-off-by: Arnd Bergmann --- sound/soc/amd/Makefile | 2 +- sound/soc/amd/acp/Kconfig | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sound/soc/amd/Makefile b/sound/soc/amd/Makefile index 82e1cf864a40..ebbe49c2bbff 100644 --- a/sound/soc/amd/Makefile +++ b/sound/soc/amd/Makefile @@ -15,7 +15,7 @@ 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/ -obj-$(CONFIG_SND_SOC_AMD_ACP_COMMON) += acp/ +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/ diff --git a/sound/soc/amd/acp/Kconfig b/sound/soc/amd/acp/Kconfig index b3105ba9c3a3..30590a23ad63 100644 --- a/sound/soc/amd/acp/Kconfig +++ b/sound/soc/amd/acp/Kconfig @@ -101,13 +101,6 @@ config SND_SOC_AMD_MACH_COMMON help This option enables common Machine driver module for ACP. -config SND_AMD_SOUNDWIRE_ACPI - tristate "AMD SoundWire ACPI Support" - depends on ACPI - help - This options enables ACPI helper functions for SoundWire - interface for AMD platforms. - config SND_SOC_AMD_LEGACY_MACH tristate "AMD Legacy Machine Driver Support" depends on X86 && PCI && I2C @@ -123,3 +116,10 @@ config SND_SOC_AMD_SOF_MACH This option enables SOF sound card support for ACP audio. endif # SND_SOC_AMD_ACP_COMMON + +config SND_AMD_SOUNDWIRE_ACPI + tristate + depends on ACPI + help + This options enables ACPI helper functions for SoundWire + interface for AMD platforms. -- 2.39.2