Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2064307rdb; Sun, 4 Feb 2024 13:22:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVNisQCQ9R21SDlu/W8zVHya9LpV/7YD5EFvrGdnCgscKHqiX1bOEJNWBmXNfEDWHZ3cV0 X-Received: by 2002:a17:902:c404:b0:1d9:6d99:10c9 with SMTP id k4-20020a170902c40400b001d96d9910c9mr12040237plk.44.1707081762785; Sun, 04 Feb 2024 13:22:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707081762; cv=pass; d=google.com; s=arc-20160816; b=AhXMGyn49BuwXPfeAlIARccMTw7dOBKqwGD4fUgiKo+mcZN6R1Fza6NlWRux3vrfKi 0oHYQxPIKJPazsZoKAtrWPtKAlmDKbnOr9X44qSPBpolG7tsjyrNdKOoy3iWQRXKFW9v CgW57n7ad2+sNFNxcUYrRNkSbK0weoKFxJ9viVcbPj2qejBi+CWtFvjWo71oMP8GzYN/ wMxAN6Ikefk2wX87kUNWebA7ClYlYWVX16ub1WSlxdj2HLxBjrV0mqAKPU+Fh/Frqh0D EEdStaYXEGHpq3bGDLqqInbeOGYR3VvkbD09C6qzi4iZIXoNJ3Nodags1cexDbvvUANb VaIw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5/o5PzINiSr6rh+bKQYjVsqVJiQlFDUM+dm6j1Rcm7Q=; fh=yc72C3Eiztpwgj8rXTCk98nzPO92xRnUHVvzD5CjHAA=; b=nh+5UpsbVMdRFbhqAdioFEtUsASmcxJ8nP6jq7eTtI+ZgJjAcjlo1JK/zmfTb1O2dm KhSZTVMUQAnGT5PqlYeXxqAlm29V3lLy9GVCBFUXIGkHSIR+rsSFqiDis56tC+EgCleC Kte6hvnQ+Q+5cF5tKT8vUUSRIouehA781flo6reS5Jchbx+bV1SQ2iKc4W2QIe+77QvG FhX86j/17pYoRhhiMpkeWuxpffskjJ95thEd+8xhr84gTctE07fwWsr0d8DMWwzPDKue HQ2ggNQtzWTva//EqJB32U0S8s1YOEEktTI+BV69VaTHgmYFVEv9NwELu3M0p39L5AA5 7l8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=myFRwBFw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51910-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; AJvYcCUF5HkBCKApboQv3ufX/ML83s+d8UG2rJH6uAMHpColela1+t9RByCxpHz0kEYa/2I0LH/JdPzBaHyh+z+SG6yfPlSs3bvpmfpwAtzGqg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n3-20020a170903110300b001d726df3b29si5231615plh.305.2024.02.04.13.22.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 13:22:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=myFRwBFw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51910-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7534C282B88 for ; Sun, 4 Feb 2024 21:22:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B957328DC4; Sun, 4 Feb 2024 21:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="myFRwBFw" 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 E03362C68F; Sun, 4 Feb 2024 21:22:35 +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=1707081756; cv=none; b=KnWoO+Poqq8S7Edq/JjxPBjlRldu6W+AM9IipgsRQWHZtpJ0P8c3BKZ+oPmT46fMysBWpDitYKK+A1i0Ggjf55VrH4tFZ4vSAEoY92z8lY4INDLstLgcWlVcuHQugPtfleEBPYe1PQ4tfY7hXghhhVWQRvfgBoXloZL+Um6chik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707081756; c=relaxed/simple; bh=19YsFeFhaGh/mSKxE5Vjn63fd5qD0OXsxFoyJDZmE8I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mHkuZoJ+iy2XzNMzUqvTcEI1mBwqaZ00ElP5584iXs4Np1EnzXRAuuJJM+UK1lBsXk9Ou7nD5oJ1DQlBUhcelRBqErirIrbDCXkLlJoB0F6UxgVGafIoSdKHaBU7Smw+gLuKC+YoEnW4vkPHThcDOTyOQIXtsPX/9S7iIBITvSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=myFRwBFw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76C63C433F1; Sun, 4 Feb 2024 21:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707081755; bh=19YsFeFhaGh/mSKxE5Vjn63fd5qD0OXsxFoyJDZmE8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=myFRwBFwMCZmakox81paGcwuF+C8pJP+j6xPXIsuXVlyPjXZrHpsz/cPsbBSXwf81 d3YEFKFiOyKeCSiKVm1TkNXBamw4R2oyivuX7qvwN9Vkw6UBRqXNQMGNLUn38TTeRU R7U46kLUkG1m2nIAuCzoQZlXJ5nUe1tN53CynyKDGYf/iwJnFw/GAAdMXTsEx0oXpf Q8VQ/zLIZxGyfC5I175QLoVSY9HdVqV7zQGiv9a/IYYvDWAs5X9pVUHA+Xpcdk4hkb DWnCK7/6YfKVlWpr2qfv+FXCXSrboC3cArvXdujC4TTRX9sHKBJXdK691t5hhs0D3c ReXX9WH9P0B2g== From: Arnd Bergmann To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Neil Armstrong Cc: Arnd Bergmann , Weidong Wang , Pierre-Louis Bossart , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ASoC: fix SND_SOC_WCD939X dependencies Date: Sun, 4 Feb 2024 22:22:02 +0100 Message-Id: <20240204212207.3158914-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240204212207.3158914-1-arnd@kernel.org> References: <20240204212207.3158914-1-arnd@kernel.org> 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 SND_SOC_WCD939X has an optional dependency on TYPEC, so the newly added SND_SOC_WCD939X_SDW option that selects it needs the same dependency, otherwise it can fail randconfig builds like: WARNING: unmet direct dependencies detected for SND_SOC_WCD939X Depends on [m]: SOUND [=y] && SND [=y] && SND_SOC [=y] && SND_SOC_WCD939X_SDW [=y] && (SOUNDWIRE [=y] || !SOUNDWIRE [=y]) && (TYPEC [=m] || !TYPEC [=m]) Selected by [y]: - SND_SOC_WCD939X_SDW [=y] && SOUND [=y] && SND [=y] && SND_SOC [=y] && SOUNDWIRE [=y] arm-linux-gnueabi-ld: sound/soc/codecs/wcd939x.o: in function `wcd939x_soc_codec_remove': wcd939x.c:(.text+0x1950): undefined reference to `wcd_clsh_ctrl_free' arm-linux-gnueabi-ld: sound/soc/codecs/wcd939x.o: in function `wcd939x_codec_ear_dac_event': wcd939x.c:(.text+0x35d8): undefined reference to `wcd_clsh_ctrl_set_state' arm-linux-gnueabi-ld: sound/soc/codecs/wcd939x.o: in function `wcd939x_codec_enable_hphr_pa': wcd939x.c:(.text+0x39b0): undefined reference to `wcd_clsh_ctrl_set_state' arm-linux-gnueabi-ld: wcd939x.c:(.text+0x39dc): undefined reference to `wcd_clsh_set_hph_mode' arm-linux-gnueabi-ld: wcd939x.c:(.text+0x3bc0): undefined reference to `wcd_clsh_ctrl_set_state' Fixes: be2af391cea0 ("ASoC: codecs: Add WCD939x Soundwire devices driver") Signed-off-by: Arnd Bergmann --- sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 75d88bd1dc6f..58ee431edfd8 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -2084,6 +2084,7 @@ config SND_SOC_WCD939X config SND_SOC_WCD939X_SDW tristate "WCD9390/WCD9395 Codec - SDW" + depends on TYPEC || !TYPEC select SND_SOC_WCD939X select SND_SOC_WCD_MBHC select REGMAP_IRQ -- 2.39.2