From: "Timur Tabi" Subject: Re: snd-soc-cs4270: Convert to a new-style i2c driver (work in progress) Date: Wed, 3 Sep 2008 15:30:33 -0500 Message-ID: References: <20080831161843.227b31f3@hyperion.delvare> <20080831190928.2931b0ed@hyperion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by alsa0.perex.cz (Postfix) with ESMTP id C0E5524504 for ; Wed, 3 Sep 2008 22:30:34 +0200 (CEST) Received: by wr-out-0506.google.com with SMTP id 36so2506751wra.24 for ; Wed, 03 Sep 2008 13:30:33 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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: Jean Delvare Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Wed, Sep 3, 2008 at 2:47 PM, Timur Tabi wrote: > I'm working on a fix for this, but there's something you need to know. > I don't think ASoC V1 modules can be unloaded. Correction: ASoC drivers can't be compiled as modules, not even the codec drivers. I had to hack up the Kconfigs to get this to work, but there is no way to compile the drivers as modules. If you try, you get this: CC [M] sound/soc/codecs/cs4270.o LD [M] sound/soc/codecs/snd-soc-cs4270.o ... sound/built-in.o: In function `mpc8610_hpcd_probe': /temp/alsa.1994/sound/soc/fsl/mpc8610_hpcd.c:455: undefined reference to `cs4270_dai' /temp/alsa.1994/sound/soc/fsl/mpc8610_hpcd.c:455: undefined reference to `cs4270_dai' /temp/alsa.1994/sound/soc/fsl/mpc8610_hpcd.c:469: undefined reference to `soc_codec_device_cs4270' /temp/alsa.1994/sound/soc/fsl/mpc8610_hpcd.c:469: undefined reference to `soc_codec_device_cs4270' make: *** [.tmp_vmlinux1] Error 1 So I don't see how an I2C 'remove' function would ever be called anyway. If you can show me how, I'll add it. Now, the ASoC V2 driver can be loaded and unloaded, and I'm pretty sure I have bugs there. -- Timur Tabi Linux kernel developer at Freescale