From patchwork Thu Jun 22 10:11:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 111604 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4959011vqr; Thu, 22 Jun 2023 03:20:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5O8ywkYao5R33KeilGcrN655tSQsgiFefO1QJOeNX0Gg+yBY/4jiBySZiUnBaFYNqMbclM X-Received: by 2002:a17:90a:2f47:b0:253:8260:f9aa with SMTP id s65-20020a17090a2f4700b002538260f9aamr11136680pjd.6.1687429231060; Thu, 22 Jun 2023 03:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687429231; cv=none; d=google.com; s=arc-20160816; b=BU8srqWusiCJTFEYzfzCx6JEZjhh8lKWI8+AzdasEJRTdZNysc0rhd2F0pORR8Wsqa IZJeeae66qoe2ET4X28Ha1utZHrhk23K2l+YREpprL3hKOgOplYFfCydrbfgHqnl+xjL 5b69aWV2c2+aFNAgrIawXEGg/TMKwdCWoUWm5Crttb+/PN07CVoJJtpRdAWldcFOl2Lr ieI4Yb0KPFTHA1mntJn+mg11JNc+kafFHIxgfEcV3dUroNUSDjbxoBKwGJHvEX5ESS9t 62CvN6jum+2EsMC2xsfdQ34VqMBWT7TiSUs05XJEE4CYi56JZkHyzrpTRYakbfT5fY/S BU0g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=vFxpvmcRYUWaWDIVQkGRSO4d07SCJOW4rGKCWk7rjHU=; b=m4uKDTT0OW/kUeyFwR5353QuFx2Dx3K/TNx6JyQUe6KwLGoutxMkSau3xjObN1Khxe 2xEtIdXlJaUilXKKJVip2J/QDvo8XslHdIBZpz9YivzF9I4dfj78y0kn82TGRWY4R5TR c8r5LKdjPAh7YqRno0fW8wowN/t+lhXmVjLpwXrp4veUBiFad1I56JunRPOIy3BzVcP9 zEP5hv35hRJbq/oHS/JguwchVLnh5wokwScMhKYNiu2AuNo59MWOkMviJVYi3ZeOEr5v 1P1QWjT0pYvz/T5flUDx7MH8ln4qbBHswTqUxJIDW43NvSrC6mi7sI54zeD9uOEKZ5AU aHkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rxLossX0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a17090a154600b0024e12dc1e4csi14053865pja.86.2023.06.22.03.20.18; Thu, 22 Jun 2023 03:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rxLossX0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230397AbjFVKMY (ORCPT + 99 others); Thu, 22 Jun 2023 06:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230293AbjFVKMW (ORCPT ); Thu, 22 Jun 2023 06:12:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E850810F0 for ; Thu, 22 Jun 2023 03:12:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 68A83617C0 for ; Thu, 22 Jun 2023 10:12:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A930C433C8; Thu, 22 Jun 2023 10:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687428730; bh=LHQoMIKlPCUVdYDVCU+rYUKAonEIdfte0Fij6zTMRmM=; h=From:To:Cc:Subject:Date:From; b=rxLossX0EbeSaaBeVLTFvPuG7sSp18ayt72v2KAtT/YGRyU4hKHuUo6kbsVZ8B9K4 ucwp80MO1u8fUoMOms09Kw8YM3Nd0JMp2MkepNIsN2dckdiiFXY+KJjR+UBES6ExcD zr1njea+km9wev3tF+JjGyjZ12NRw+t9oSKnxJroYrYwaVSE2/hhwJmQiZdRYfBF5b sAORaC1pCfMDuQ2USst8jnSEKu6PkL7ftZRwhfKI/GItuE08mmorW9pSv9mbHtXHFq i+OViyXgiGJjfjQM5sFEUec5ShO+P4IFp9esgUqLT3Avs3dv/aWLkokJXZd+3pMtkW vWHCB7ORroxQw== From: Arnd Bergmann To: Liam Girdwood , Mark Brown Cc: Arnd Bergmann , Jaroslav Kysela , Takashi Iwai , Krzysztof Kozlowski , Richard Fitzgerald , Shenghao Ding <13916275206@139.com>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: tas2781: fix Kconfig dependencies Date: Thu, 22 Jun 2023 12:11:23 +0200 Message-Id: <20230622101205.3180938-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769397793218072678?= X-GMAIL-MSGID: =?utf-8?q?1769397793218072678?= From: Arnd Bergmann The new driver has two modules that both get enabled for build testing when all codecs are selected. The comlib part has an i2c dependency, so this remains disabled on builds without i2c, but then the other one fails to link: ERROR: modpost: "tasdevice_dev_bulk_write" [sound/soc/codecs/snd-soc-tas2781-fmwlib.ko] undefined! ERROR: modpost: "tasdevice_dev_update_bits" [sound/soc/codecs/snd-soc-tas2781-fmwlib.ko] undefined! ERROR: modpost: "tasdevice_dev_bulk_read" [sound/soc/codecs/snd-soc-tas2781-fmwlib.ko] undefined! ERROR: modpost: "tasdevice_dev_read" [sound/soc/codecs/snd-soc-tas2781-fmwlib.ko] undefined! ERROR: modpost: "tasdevice_dev_write" [sound/soc/codecs/snd-soc-tas2781-fmwlib.ko] undefined! There are many ways to address this, adding an explicit dependency seems to be the clearest method that keeps the structure of the driver otherwise unchanged. Fixes: ef3bcde75d06d ("ASoC: tas2781: Add tas2781 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 f481f02a35710..2a62dbd5339e4 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -1741,6 +1741,7 @@ config SND_SOC_TAS2781_COMLIB tristate config SND_SOC_TAS2781_FMWLIB + depends on SND_SOC_TAS2781_COMLIB tristate default n