Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1928838pxy; Mon, 2 Aug 2021 14:09:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpLoCknjHUGpp32Fi/ectJXkLtHbLSnmj5kNiU3OATVyLi79NhdL+MxlKwOR2XmWHkINs+ X-Received: by 2002:a05:6402:6cf:: with SMTP id n15mr21453936edy.362.1627938580189; Mon, 02 Aug 2021 14:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627938580; cv=none; d=google.com; s=arc-20160816; b=f8qV16NvDm6p363UeArq6jvCqe1IP1VmgD1P5ocoUHJXEUZFH9P3bbhKP6+FsQ5Pvg 9bAYqPaBs7XAMWE5cf1WCydSdtLsE14Bf8oG18Qt33qJNYKj23KY3xAne59+u5c3YSpc riTK2DzEuWYWlVbPHfyRae0NdPh3YowwGbQ76R1oKa3/XaN8ULXz5/AildkMa2+4lKNp Apw9huNyk6LUeyNdMRbWGZrhaLTwOz/ArPItVIksRlC9pNF10zITUwBl0mfvDRftiAso Dm3+6iqGiFHP3H0rtoyZlFnXOfEY+mxrfXbzZUxfQiSzaaD5O0bIQLtNAv3Z8NnfVxTF x1UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=+E1UDH6+znO+gdiiTpTY9l2f+ExE/Xsvt0ZFDteONPI=; b=QYkPwEz36HSnXdA2sw8jkkZ045mIiN6vyndoNJdTWNenc9G9FGO10JWY1JP5SqAJ4A 4HzAHoOD8XbD4QjZBjKKLpn2E9Bq3/kXSJwwtMtzZ2V2swPma7y8OmOUeVG+yqMVydwL sSZmFMUe5YSeiM2PzYAc1PdXvOiUNVgSJFJbCp7VR3dexcWuQXeFZygwWUTHSVLikunK ao7iXWP6hsBL2aTBNXvxt6vbX4LDYHBagrj68Uf9K64ikj9iJQ5Q8eqzJWWANfkJFlti uvKSyaroGdyXMbCoqz6bFhAp0HRc+1qCx/x4B8gU9fh//7Y5RIoEfqa12reSOsDVyWfh d6kQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si10768692edy.276.2021.08.02.14.09.16; Mon, 02 Aug 2021 14:09:40 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231675AbhHBVFc (ORCPT + 99 others); Mon, 2 Aug 2021 17:05:32 -0400 Received: from mga03.intel.com ([134.134.136.65]:44789 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231605AbhHBVFb (ORCPT ); Mon, 2 Aug 2021 17:05:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="213565262" X-IronPort-AV: E=Sophos;i="5.84,289,1620716400"; d="scan'208";a="213565262" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 14:05:20 -0700 X-IronPort-AV: E=Sophos;i="5.84,289,1620716400"; d="scan'208";a="501960736" Received: from skarumur-mobl.amr.corp.intel.com (HELO [10.212.72.192]) ([10.212.72.192]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 14:05:18 -0700 Subject: Re: [PATCH] ASoC: Intel: boards: Fix CONFIG_SND_SOC_SDW_MOCKUP select To: Nathan Chancellor , Cezary Rojewski , Liam Girdwood , Jie Yang , Mark Brown Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20210802190351.3201677-1-nathan@kernel.org> From: Pierre-Louis Bossart Message-ID: <3929126b-b4f0-bdf5-56f5-28662c7b7b44@linux.intel.com> Date: Mon, 2 Aug 2021 16:05:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210802190351.3201677-1-nathan@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/2/21 2:03 PM, Nathan Chancellor wrote: > 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 so if symbol A > selects symbol B which depends on symbol C, symbol B or its select of > symbol A should depend on symbol C as well. > > Make the CONFIG_SND_SOC_SDW_MOCKUP select in > CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH depend on CONFIG_EXPERT as the > help text for CONFIG_SND_SOC_SDW_MOCKUP indicates it is intended to be a > development option. > > Fixes: 0ccac3bcf356 ("ASoC: Intel: boards: sof_sdw: add SoundWire mockup codecs for tests") > Signed-off-by: Nathan Chancellor > --- > > An alternative here is if CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH wants > to unconditionally select CONFIG_SND_SOC_SDW_MOCKUP, the "depends on > EXPERT" can be moved to the prompt (tristate "..." if EXPERT). I am > happy to send a new patch if that is what is desired. Thanks for the patch Nathan, I added this depends on EXPERT and forgot about it when I updated the machine driver. Maybe a better alternate would be imply SND_SOC_SDW_MOCKUP We don't necessarily want the EXPERT part to be shown in the machine driver lists. > > 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..8284c46d7435 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 > + select SND_SOC_SDW_MOCKUP if EXPERT > help > Add support for Intel SoundWire-based platforms connected to > MAX98373, RT700, RT711, RT1308 and RT715 > > base-commit: 170c0d7460fc4aa522995ae4096b5a442f50a1fc >