From: Takashi Iwai Subject: Re: [PATCH] Add ASoC AK4535 codec driver. Date: Tue, 20 Nov 2007 15:42:17 +0100 Message-ID: References: <1195550746-6892-8-git-send-email-broonie@opensource.wolfsonmicro.com> <1195550746-6892-9-git-send-email-broonie@opensource.wolfsonmicro.com> <1195550746-6892-10-git-send-email-broonie@opensource.wolfsonmicro.com> <1195550746-6892-11-git-send-email-broonie@opensource.wolfsonmicro.com> <1195550746-6892-12-git-send-email-broonie@opensource.wolfsonmicro.com> <1195550746-6892-13-git-send-email-broonie@opensource.wolfsonmicro.com> <1195550746-6892-14-git-send-email-broonie@opensource.wolfsonmicro.com> <1195550746-6892-15-git-send-email-broonie@opensource.wolfsonmicro.com> <1195550746-6892-16-git-send-email-broonie@opensource.wolfsonmicro.com> <20071120150530.GF21414@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 74E6D24A11 for ; Tue, 20 Nov 2007 16:11:09 +0100 (CET) In-Reply-To: <20071120150530.GF21414@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Richard Purdie , liam.girdwood@wolfsonmicro.com, alsa-devel@alsa-project.org, Milan Plzik , i2c@lm-sensors.org List-Id: alsa-devel@alsa-project.org At Tue, 20 Nov 2007 15:05:30 +0000, Mark Brown wrote: > > On Tue, Nov 20, 2007 at 11:40:25AM +0100, Takashi Iwai wrote: > > Mark Brown wrote: > > > > +config SND_SOC_AK4535 > > > + tristate > > > + depends on SND_SOC > > > + > > > Unless you add another interface support, this driver seems only for > > I2C. Then let's add dependency on I2C (which will avoid a possible > > unresolved symbol error). > > The idiom used by the rest of the ASoC codecs appears to be to omit the > bus dependencies entirely from the codec drivers and rely on the machine > driver pulling in the appropriate bus driver. For the sake of > consistency I'd rather leave this just now and then separately go > through and address this for all drivers at once - does that seem > sensible to you? Well, the problem is that the dependency with I2C is incomplete right now. We may build ASOC=y and I2C=m, and you'll get unresolved symbols due to call of I2C function from asoc. I'm not sure what is the proper way to fix this. If the codec driver supports non-I2C and can be built without it, the explicit dependency on I2C is of course wrong. Takashi