[alsa-devel] tlv320aic3x: Allow driver to use already registered i2c device

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Aug 13 15:48:27 CEST 2009

On Thu, Aug 13, 2009 at 02:26:38PM +0100, Ben Dooks wrote:
> Mark Brown wrote:

> >Why would you want to do this?  I suspect that perhaps you want to
> >convert the driver to use the standard device model instead but without
> >understanding your motivation for making this change it is very hard to
> >comment in detail.

> The device is registered by the code that sets the initial devices
> up that have been passed from the bootloader, thus the tlv320aic33
> fails to initialise as there is already an i2c device on the i2c bus
> when it comes along.

OK, that's what I thought.  You need to convert the driver to use the
normal device model probe methods rather than using bodges like this.
See drivers like wm8731 for an example of how the conversion looks.

More information about the Alsa-devel mailing list