Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5001894ybf; Wed, 4 Mar 2020 15:15:17 -0800 (PST) X-Google-Smtp-Source: ADFU+vsE50xOHAV1byz3AiMswiOydQ5kEFjTaCvI8TzxLJmv2A1Sc4HmxUQKkpjiXH7BOQlEN7IG X-Received: by 2002:aca:4a11:: with SMTP id x17mr3377097oia.146.1583363717791; Wed, 04 Mar 2020 15:15:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583363717; cv=none; d=google.com; s=arc-20160816; b=TZmyWSFrwdLh3pgw3mCL1qEnaMVVWkUePmibCHEc/QgtY3QIV+BqA0weydBqLIoqtx /dsDdLvZqJkfd7MoOvTYE2o9/XPO5WJ3mjHoZWFyGhI9qdmXw+pifVT5RjH4BMhT43H+ 824BqrVtktMAc7XUwFId2zQKC7yyOFuJSwZYipvT6EzDc28wEtCGhRoTeh5jm30QSXqt pvCpQscbJsz7nBjmc1oEd8nMEqH9OgJC2v8TJ6EP0lQZulq/2u7glrTOqSt+y5ibmHl3 BTZfsXspAHPHYF8oHs48KFXHuSS+BhXRrUXHRtPxoDdj0klAMVFNtFPHy79tExv8SljW 5vAw== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=dESbgnYJN4ABF3u8bv64QcWcsr6LPuuxkCqNSlvx2zE=; b=S88ZIzIFrPNX/fxWcSgmc2nXCPFT9JmIT1/OhwW1Fx2jXTiwvuEG9eZva/nrJ0Kl7/ GoMNXOYwCwTp3Cg35/AbC3VV7j7Mtacf6ZH/HoTsFhpumTd2lNhvdgIpxJml/xoY0xWW g48cTdcwtucrXJFJTxeejdIgbSX3xv6MNrNBIFnG0EvovpjTmrj2xJTDdcv/3vWR496T bujYyUFXQXtHJgOHa2Qm3/xOAO2bZ62MicrzA95Sf/aqoPmIAV7qXZL++JXZ4qh4nKqP 7D+wZLDml+7dMhvhVSMp2U1FPaspT4OK1pjLwZ0HRGj7m3xULOmkK+S7zYBlxmkn+QAG xurw== 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 a10si2133923otr.143.2020.03.04.15.15.05; Wed, 04 Mar 2020 15:15:17 -0800 (PST) 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 S2388527AbgCDXOn convert rfc822-to-8bit (ORCPT + 99 others); Wed, 4 Mar 2020 18:14:43 -0500 Received: from smtp10.smtpout.orange.fr ([80.12.242.132]:25213 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388425AbgCDXOn (ORCPT ); Wed, 4 Mar 2020 18:14:43 -0500 Received: from belgarion ([86.210.245.36]) by mwinf5d33 with ME id APEe220030nqnCN03PEeCk; Thu, 05 Mar 2020 00:14:41 +0100 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Thu, 05 Mar 2020 00:14:41 +0100 X-ME-IP: 86.210.245.36 From: Robert Jarzmik To: Guenter Roeck , Geert Uytterhoeven Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Randy Dunlap , ALSA Development Mailing List , Linux Kernel Mailing List Subject: Re: [PATCH] ASoC: Fix SND_SOC_ALL_CODECS imply ac97 fallout References: <20200224112537.14483-1-geert@linux-m68k.org> <20200303143444.GA25683@roeck-us.net> X-URL: http://belgarath.falguerolles.org/ Date: Thu, 05 Mar 2020 00:14:38 +0100 In-Reply-To: (Geert Uytterhoeven's message of "Tue, 3 Mar 2020 15:56:25 +0100") Message-ID: <878skf1zmp.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/26 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Geert Uytterhoeven writes: > Hi Günter > > On Tue, Mar 3, 2020 at 3:34 PM Guenter Roeck wrote: >> On Mon, Feb 24, 2020 at 12:25:37PM +0100, Geert Uytterhoeven wrote: >> > On i386 randconfig: >> > >> > sound/soc/codecs/wm9705.o: In function `wm9705_soc_resume': >> > wm9705.c:(.text+0x128): undefined reference to `snd_ac97_reset' >> > sound/soc/codecs/wm9712.o: In function `wm9712_soc_resume': >> > wm9712.c:(.text+0x2d1): undefined reference to `snd_ac97_reset' >> > sound/soc/codecs/wm9713.o: In function `wm9713_soc_resume': >> > wm9713.c:(.text+0x820): undefined reference to `snd_ac97_reset' >> > >> > Fix this by adding the missing dependencies on SND_SOC_AC97_BUS. >> > >> >> With this patch applied, arm:pxa_defconfig reports a variety of unmet >> SND_SOC dependencies, and it fails to build. >> >> ERROR: "snd_ac97_reset" [sound/soc/codecs/snd-soc-wm9713.ko] undefined! >> ERROR: "snd_ac97_reset" [sound/soc/codecs/snd-soc-wm9712.ko] undefined! >> ERROR: "snd_ac97_reset" [sound/soc/codecs/snd-soc-wm9705.ko] undefined! >> >> Reverting this patch fixes the problem. > > Should SND_PXA2XX_SOC_AC97 in sound/soc/pxa/Kconfig select > SND_SOC_AC97_BUS instead of SND_SOC_AC97_BUS_NEW? > The latter does not exist. Hi Geert, The answer is no, PXA is now specifically ported to work with the new AC97 bus implementation, ie. AC97_BUS_NEW=y as in sound/ac97/. The 2 implementations of AC97 bus, ie. CONFIG_AC97_BUS and CONFIG_AC97_BUS_NEW are exclusive, they cannot coexist in the same kernel AFAIR. Sorry for the late reply on this thread, but I moved house lately and I'm quite busy, so my answers are delayed. As a side note, I've seen somewhere in the patches this : SND_SOC_WM971{2,3} depends on SND_SOC_AC97_BUS. This looks wrong to me, as it implies that a wolfson wm97xx sound driver can only exist with CONFIG_AC97_BUS=y, which is false, because it can exist with CONFIG_AC97_BUS_NEW=y. I also saw someone saying the CONFIG_SND_SOC_AC97_BUS_NEW didn't exist; this is true, most likely because I forgot it when I created the new AC97 bus. I'd think the natural fix would be to add CONFIG_SND_SOC_AC97_BUS_NEW just after his twin definition in sound/soc/Kconfig, but I might be wrong ... Cheers. -- Robert