Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp4731pxb; Thu, 2 Sep 2021 17:42:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJya31TPh4jt3QnRWrredj45KTOY8bNW4/kA9vesW9EQ5bPJ4nAlwtnaCGQDNJSA5S4pi+0G X-Received: by 2002:a05:6602:730:: with SMTP id g16mr900138iox.138.1630629750096; Thu, 02 Sep 2021 17:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630629750; cv=none; d=google.com; s=arc-20160816; b=yunT08CWGoRFRvqPIOWnYW6qu2TqQmhmZqARK5aaV9hPsWtsDQMQWYN1BRb1LZXHL5 2qLX/F4qbBzpD1nKs7niJEjbdanuz/V15TniAqr62A4YgVKEGvpGlpw7nQY0EN1djn7/ ZcgiOmE/PTiCvA6sKQjbX/W44EuxZ33J6bySuk+VD6LrI5EVJBpRsP1/HDtPpi3Immpt d6Xiy/ATwPFDuXJIeZHE0haIzrDl2s/O2ASmzXZmwax5jAkmij4GIAjziQO9MzTPR1l7 84HC2pxAf/2aTjDffkendL7LTGD5nghqqJ7ScIW5EP2uITS8IVJEm4OSiEOcAryxpnbB Wosw== 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=90lJaKpIByCjvsHvRJZOPQwH4vlTqm6iiME5aak0Kdk=; b=iHCnkYDK9jxo4IOE7w6Vi8f9XGStgzeJMO40pR2jv3qLhyUVrSi4wd5zIkjKbROLJI ANhgEHhPSfXoFJgffO3RSPCc3cZ3weKOSnx6jngWoVWY+B9RiskBcryzbIkBTPVhSwPI TLk6dZhD/V/fJvr+Nyi2qFJjI7I0dc7M9riF4z1X8BeEnQi0N3L8Mb1vff6j9GNGYy2g v/fYzrllRkuWM+TkSTs5QVO8NdYi7S2ZB27MhduyOuwVs/+Yrmjv5tQxMWv/qA4esXew EadgH0En0/IgkgmnQt50tqbaLnzhMhfTi6lB2XKS/gdBbno2Oz/Hif/1fs9r4Eluyubx 6xfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l1PtFlT2; 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 x10si3493796ilg.50.2021.09.02.17.42.18; Thu, 02 Sep 2021 17:42:30 -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=l1PtFlT2; 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 S1346919AbhIBSOj (ORCPT + 99 others); Thu, 2 Sep 2021 14:14:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:45098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346866AbhIBSOi (ORCPT ); Thu, 2 Sep 2021 14:14:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 075FC6109E; Thu, 2 Sep 2021 18:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630606420; bh=fgmXveWCM05mSbllKfAaxxlHFe2iMk5xtIxQopJphow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l1PtFlT2H4GNdOvcM1dANKRnyhtzuXVeLC1RT+AVVdmZwN7szaUM1p6yCqj/yV5GO yrDAmt6nHda48xj5MaKQ//bSob8YAqRK5kChyMO+3EDgCzbaWrTYNBk1uNXYiknQKi b/Ue1LZG4gNOaLL8hI62aMopH4trFp1J0wjGPWwJQ0Pvq6Nj5H13mEGvHcQ8+arYXt JtdG8rPQ4OyNif2EXjktsFZmGabN9rbCVAj0goVsdDhRpKRumGh5FhwlPAhECQAiYD bT7AmyzHqJY56kNWCk2cG5BcNsRVqQtacgV9GMK1FuNL3JRGBzqbNY5/mPzPqvymH/ AeNBjoGWLvBbg== 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, Fabio Aiuto , Nathan Chancellor Subject: [PATCH for-5.15 v3] ASoC: Intel: boards: Fix CONFIG_SND_SOC_SDW_MOCKUP select Date: Thu, 2 Sep 2021 11:12:18 -0700 Message-Id: <20210902181217.2958966-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210802212409.3207648-1-nathan@kernel.org> References: <20210802212409.3207648-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 Acked-by: Pierre-Louis Bossart Signed-off-by: Nathan Chancellor --- v2 -> v3: * Rebase on current for-5.15. * Add Ack tag from Pierre-Louis. 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: 4f89ff026ddbaab49dba993ad2dc757920d0ad49 -- 2.33.0