From patchwork Fri Sep 20 07:50:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 174121 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2151080ill; Fri, 20 Sep 2019 00:51:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXhytEoYzbIUKYGdp2viyDfT+VQnEu/hvqBchdYaqr4nxDqz+UxubH7wS+cBGqjitmmfq3 X-Received: by 2002:a50:b0c5:: with SMTP id j63mr6828867edd.90.1568965868336; Fri, 20 Sep 2019 00:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568965868; cv=none; d=google.com; s=arc-20160816; b=XBydbymPccW2FDY2g1+X+N+HilYA4mxywkQ4NMms15pwriAW7AQH31nlIvwShX/8DV LEFu1ZrKKAFOpSJr0crJ6zJlD6MQ/arr2b460QpPf24oLfDRQVzD2JC1m8qZqimc/KSl QjMhqC89F3NsBG8s09bP/Ec5VZy5Leg6J9DTMAFnWKhu8aenck/pCgCmd/jYIet8GjlJ CL8ZK7WQSnaw9kUaMPblkmfSlY7b8Hau45Sed3E7vBETqqPNFn6tUKCJe2Kdfe69B0cb f/K4pe2BdMzmoT75BfHnIiPk1BLb4UUvxPOd+EIHRF3R+q21jgMrcFXClT5efhTt+GDB IAmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WiQamKClvQXOX9ea/Y8d3rNy/TqDozyNp/SdsyKx1U8=; b=dCDKEXfKEBRFisBuZnoJi1e3CbsFdIkjJiDUnRVFHUO9tAanLDLds4Zmq189Q6hp8i 6m6ijP0lZ/e035hRZQANelr7e3TLlP+TRFNRO7KwoKDhv/x6FYuH7ax0TS6J5m8ZG6z7 aazSwreVWs9+QJgabUPQ5HrPDII4/Tru1eZYOWIbp/H4Bkk25QEM3EJesxfD+D0vdzUu alOiEyZFe0WZ8sIsSxy1w5dFdco3jRDvxjLjUacGpDQyaS9VPq4O6Yz6dyN1NuLyq+l8 ASXrLMZZWxZDoy9dVeA6CGSiTUQVHwZGWXqHFuDe+WgeyPp5rio/pn2NvNde+voggW3P qNsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si957699edk.157.2019.09.20.00.51.08; Fri, 20 Sep 2019 00:51:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404933AbfITHvE (ORCPT + 26 others); Fri, 20 Sep 2019 03:51:04 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:57631 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404904AbfITHvD (ORCPT ); Fri, 20 Sep 2019 03:51:03 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1M4K2r-1iBUnx2Whd-000HEj; Fri, 20 Sep 2019 09:50:48 +0200 From: Arnd Bergmann To: Peter Ujfalusi , Mark Brown Cc: Arnd Bergmann , Liam Girdwood , Tony Lindgren , Jarkko Nikula , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: ti: fix SND_SOC_DM365_VOICE_CODEC dependencies Date: Fri, 20 Sep 2019 09:50:18 +0200 Message-Id: <20190920075046.3210393-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:EAKPTZ+itukL2iznqTUk5rPIMXBlBv9PWcQDjxKpT9O//vnk5gh rAOyC8URZPiUfTgkKlxvXoVXPAwpUOUyBc0xu0jumnINBPwIcw5VCV1whnDmt15T78vaj+V KZBJvmieL310Wovz0k/cDx/thz7NXU/w31Vz4vpXtYosVVoU55dDg6Sm1k/LOvm4G84/dYT tJTF76m7Jh3v+6ff4FffA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:pklhRZ2wyO4=:XKxLr9F1esW2k/1CYBwAZ1 p6hU9OeU8jh6CmeIfSMgqs3GHdq17Y9JtBjCI54ia/904VPOE/xlrlfqufyoXbA2kdrJgmzxH sUOpcfn86X0zl1zGbd4rWbzgZ8sAaDA+bCVQsVKPn4jTwvkf54irU3EYvaHr7O5DPlYcn1jPE sqTlgeoGzmwIAsMiNYAHDhnd2HsogtybRZwkL307fcfIktlVFnDX/lWSsUQ1ivP6swjA2mzB+ 8LXTwspTBe5slOJELG1qo0uHoluy6sQFZcEp/AEKLwfwevC+dCfijD87ElENqhBFDbZG9E7np Sm5u845gRCukKCEiv9MoavuuTZLjLyqNuLWUBkH2WdaJd6bb4zdHZ1i9A5zWoeBtMlPzzkPTJ U3SDT0f9r0a0Wlb+DS8d7Z+QD3wSyUBOYzyJdtut/kOPdPMwRCOqremPdwCIs3T8BdO/4N1Ik 9U525jwIbditIYdpvm+LfxVqNPfIqKpu8Yh2DYVvvap9NLDkORv0Sm21lrD5Y90cOV7UK71F+ 3DMvCH9YwvE50r6K1BvcuQLG0zJ8GFzxVSVCE2foMyOQU/dUk9u+5D2mIxhPJ3/6FsUZI93J4 pttyejLqRP6Up5O/Vjv50dSljBxAwXkOyFHsvruHsHp9Vwx+SoAjhuBebch0iHZc0ZltlABEf nGoHWubqzFGasR1GTGiBMuiyo4nlaL/bq8l942kUgP3nFH+bLKC5lFtmH7EyNhvEaN+V35URq GSSNJbJK+6VgT3M32QcNabqLLHbtjkjf6R7n7bWJud2XwngeE9BWsfxv5lYgtX8sAEhwGkvPr 94/qfrrwSsPKRE3wXXnGYXgyoRHPCBtZrSQ5CuXzEFR4osEHZGUGJaYtE0yrZAql+ifRz3zsQ eWcZ83+5KHTe4qoG+ouQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SND_SOC_DM365_VOICE_CODEC is a 'bool' option in a choice statement, meaning it cannot be set to =m, but it selects two other drivers that we may want to be loadable modules after all: WARNING: unmet direct dependencies detected for SND_SOC_CQ0093VC Depends on [m]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] Selected by [y]: - SND_SOC_DM365_VOICE_CODEC [=y] && Selected by [m]: - SND_SOC_ALL_CODECS [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && COMPILE_TEST [=y] Add an intermediate symbol that sets SND_SOC_CQ0093VC and MFD_DAVINCI_VOICECODEC to =m if SND_SOC=m. Signed-off-by: Arnd Bergmann --- sound/soc/ti/Kconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.20.0 diff --git a/sound/soc/ti/Kconfig b/sound/soc/ti/Kconfig index 87a9b9dd4e98..29f61053ab62 100644 --- a/sound/soc/ti/Kconfig +++ b/sound/soc/ti/Kconfig @@ -200,11 +200,18 @@ config SND_SOC_DM365_AIC3X_CODEC config SND_SOC_DM365_VOICE_CODEC bool "Voice Codec - CQ93VC" - select MFD_DAVINCI_VOICECODEC - select SND_SOC_CQ0093VC help Say Y if you want to add support for SoC On-chip voice codec endchoice +config SND_SOC_DM365_VOICE_CODEC_MODULE + def_tristate y + depends on SND_SOC_DM365_VOICE_CODEC && SND_SOC + select MFD_DAVINCI_VOICECODEC + select SND_SOC_CQ0093VC + help + The is an internal symbol needed to ensure that the codec + and MFD driver can be built as loadable modules if necessary. + endmenu