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

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Aug 7 11:43:01 CEST 2009


On Fri, Aug 07, 2009 at 12:02:05AM +0100, Ben Dooks wrote:
> Add the ability for the driver to use an already registered i2c device
> instead of creating one of them itself. Add the field i2c_already field
> to the setup data and not set the i2c bus address the driver will then
> use the device already setup.

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.

> --- a/sound/soc/codecs/tlv320aic3x.c	2009-08-06 11:53:30.000000000 +0100
> +++ b/sound/soc/codecs/tlv320aic3x.c	2009-08-06 15:29:45.000000000 +0100
> @@ -1310,6 +1310,7 @@ static int aic3x_i2c_remove(struct i2c_c
>  
>  static const struct i2c_device_id aic3x_i2c_id[] = {
>  	{ "tlv320aic3x", 0 },
> +	{ "tlv320aic33", 0 },
>  	{ }
>  };

This is a reasonable but unrelated change.


More information about the Alsa-devel mailing list