Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1937850pxy; Mon, 2 Aug 2021 14:26:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzelXi/yB+9IrrD01lshLvatiX1h+9tKo6Kb5cQi5IDbwVUzpoc6sFhSJoNrp9PtKZTHSHZ X-Received: by 2002:a92:d70f:: with SMTP id m15mr157035iln.162.1627939575505; Mon, 02 Aug 2021 14:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627939575; cv=none; d=google.com; s=arc-20160816; b=U8X6Dd8UXqzYyf0xsXNkR+3/po8/wN39b5odH/k5Au1K27g1kbsOywn+muQnoRDkqP ss5rM2kwbSIgY3+jLvrI2bQ+CdJvDU5eVhHvNZRnXsjr/dO3XlLWhCyn/5IdnV19WPt0 WK3/JZlEXpqtGSPmE4kqZr4f+iiUfheKS/PhboRaQRBL8CjNmh4Jp7EmcOZLnqedJxfl zqOmAnT1EYZddQNYcR8Q1YwyoqgrM+p7XgtEBLRq+2Mpz71cQE7afVqJzaOarXfkoMka 33Mi/TlqN8gkuKOENadqwqd2d9e33/Rq7lgs3AUDBBp14MeX7zuZu2+mTQoje66m2LOZ BvUQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Bh7A2GqWNUkJUMxltt6MotURHQ/nrSS7d7yXRFk/AsI=; b=cf72Lu1+2agvkbBkPJh//gvtjGHjtSxOZT5/8R+guja83fidt/Hq7DQuBQvFBhS36v 910GtKtJNz4YvIgJhlpUP1d6dDdytXhsh+A/m1lzDC3+t8GVdaxJLF2VXKCmBGdbadvA pZFxh/Yo67KnZAWFUq/z4X6N3pb48QBTLatGIZ65x2p2roCvMfKpLmxYEmXjgZDjc3+j lf2S76KtTESiI0qtMCrQYJkS7CNVxXMAsEHsNYi4GfVWEKxkrSoJegtNx6+ZsUEnJjEM qu9EMorXJlHaZI+zcqNJ8RZlRb3y4scioX0m+/UtE/4ab9Z9iLglFYC89taFUubOIR0a 07Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qJFNt/e7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si15381560ilc.93.2021.08.02.14.26.02; Mon, 02 Aug 2021 14:26:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qJFNt/e7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232060AbhHBVZ1 (ORCPT + 99 others); Mon, 2 Aug 2021 17:25:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:43166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbhHBVZ0 (ORCPT ); Mon, 2 Aug 2021 17:25:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 279E560EEA; Mon, 2 Aug 2021 21:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627939517; bh=2Wbr8lKOxYcEnRVsPKJDVHQFpQA4L8T0K/kB3c4SpcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qJFNt/e7Fj5ohb/1a8trJgNdnCgnAfyelKS/AVdOd3EvjK4cLpLdH9kKkNjxqTKEo 5D7lJ6uX/aVbToZRma6r3aUBZVoENvU6X5uxjjFJXycdtSBdjn72+HB7tlWOB5r7qh EMgmYglJGJ/Fy9DRPtIoVp19QDmw8WeYmQSZlYtDhNg2SXucwSf7j24rYgYqf+AXXZ 3wcznbXA+b5ZpPS7DUFcoJpITPPooFdLVeqHsWoP46iBCqGVfnLLOaO3CortKp7UZa fSTTZBKGgwS31xYy2lYM/GW60xRFkWAdwZJY0nvbIWlzgXcUPirUu3/xppwWf813Cs oD/QkC7CDyXFg== From: Nathan Chancellor To: Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH v2] ASoC: Intel: boards: Fix CONFIG_SND_SOC_SDW_MOCKUP select Date: Mon, 2 Aug 2021 14:24:10 -0700 Message-Id: <20210802212409.3207648-1-nathan@kernel.org> X-Mailer: git-send-email 2.32.0.264.g75ae10bc75 In-Reply-To: <20210802190351.3201677-1-nathan@kernel.org> References: <20210802190351.3201677-1-nathan@kernel.org> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH is enabled without CONFIG_EXPERT, there is a Kconfig warning about unmet dependencies: WARNING: unmet direct dependencies detected for SND_SOC_SDW_MOCKUP Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && EXPERT [=n] && SOUNDWIRE [=y] Selected by [y]: - SND_SOC_INTEL_SOUNDWIRE_SOF_MACH [=y] && ... Selecting a symbol does not account for dependencies. There are three ways to resolve this: 1. Make CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH select CONFIG_SND_SOC_SDW_MOCKUP only if CONFIG_EXPERT is set. 2. Make CONFIG_SND_SOC_SDW_MOCKUP's prompt depend on CONFIG_EXPERT so that it can be selected by options that only depend on CONFIG_SOUNDWIRE but still appear as a prompt to the user when CONFIG_EXPERT is set. 3. Make CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH imply CONFIG_SND_SOC_SDW_MOCKUP, which will select CONFIG_SND_SOC_SDW_MOCKUP when its dependencies are enabled but still allow the user to disable it. Go with the third option as it gives the most flexibility while retaining the original intent of the select. Fixes: 0ccac3bcf356 ("ASoC: Intel: boards: sof_sdw: add SoundWire mockup codecs for tests") Suggested-by: Pierre-Louis Bossart Signed-off-by: Nathan Chancellor --- v1 -> v2: * Switch to imply rather than select ... if ... (Pierre-Louis). * Reword commit message to explain different solutions rather than explain the problem in depth. sound/soc/intel/boards/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/Kconfig b/sound/soc/intel/boards/Kconfig index 046955bf717c..61b71d6c44cf 100644 --- a/sound/soc/intel/boards/Kconfig +++ b/sound/soc/intel/boards/Kconfig @@ -602,7 +602,7 @@ config SND_SOC_INTEL_SOUNDWIRE_SOF_MACH select SND_SOC_DMIC select SND_SOC_INTEL_HDA_DSP_COMMON select SND_SOC_INTEL_SOF_MAXIM_COMMON - select SND_SOC_SDW_MOCKUP + imply SND_SOC_SDW_MOCKUP help Add support for Intel SoundWire-based platforms connected to MAX98373, RT700, RT711, RT1308 and RT715 base-commit: 170c0d7460fc4aa522995ae4096b5a442f50a1fc -- 2.32.0.264.g75ae10bc75