snd-soc-stac9766-objs := stac9766.o
snd-soc-tas5086-objs := tas5086.o
snd-soc-tlv320aic23-objs := tlv320aic23.o
+++++++++snd-soc-tlv320aic23-i2c-objs := tlv320aic23-i2c.o
+++++++++snd-soc-tlv320aic23-spi-objs := tlv320aic23-spi.o
snd-soc-tlv320aic26-objs := tlv320aic26.o
--- -------snd-soc-tlv320aic3x-objs := tlv320aic3x.o
snd-soc-tlv320aic32x4-objs := tlv320aic32x4.o
+++ +++++++snd-soc-tlv320aic3x-objs := tlv320aic3x.o
snd-soc-tlv320dac33-objs := tlv320dac33.o
snd-soc-twl4030-objs := twl4030.o
snd-soc-twl6040-objs := twl6040.o
obj-$(CONFIG_SND_SOC_STAC9766) += snd-soc-stac9766.o
obj-$(CONFIG_SND_SOC_TAS5086) += snd-soc-tas5086.o
obj-$(CONFIG_SND_SOC_TLV320AIC23) += snd-soc-tlv320aic23.o
+++++++++obj-$(CONFIG_SND_SOC_TLV320AIC23_I2C) += snd-soc-tlv320aic23-i2c.o
+++++++++obj-$(CONFIG_SND_SOC_TLV320AIC23_SPI) += snd-soc-tlv320aic23-spi.o
obj-$(CONFIG_SND_SOC_TLV320AIC26) += snd-soc-tlv320aic26.o
--- -------obj-$(CONFIG_SND_SOC_TLV320AIC3X) += snd-soc-tlv320aic3x.o
obj-$(CONFIG_SND_SOC_TLV320AIC32X4) += snd-soc-tlv320aic32x4.o
+++ +++++++obj-$(CONFIG_SND_SOC_TLV320AIC3X) += snd-soc-tlv320aic3x.o
obj-$(CONFIG_SND_SOC_TLV320DAC33) += snd-soc-tlv320dac33.o
obj-$(CONFIG_SND_SOC_TWL4030) += snd-soc-twl4030.o
obj-$(CONFIG_SND_SOC_TWL6040) += snd-soc-twl6040.o
if (aic23 == NULL)
return -ENOMEM;
--------- aic23->regmap = devm_regmap_init_i2c(i2c, &tlv320aic23_regmap);
--------- if (IS_ERR(aic23->regmap))
--------- return PTR_ERR(aic23->regmap);
+++++++++ aic23->regmap = regmap;
--------- i2c_set_clientdata(i2c, aic23);
+++++++++ dev_set_drvdata(dev, aic23);
--------- ret = snd_soc_register_codec(&i2c->dev,
--------- &soc_codec_dev_tlv320aic23, &tlv320aic23_dai, 1);
--------- return ret;
---------}
---------static int __exit tlv320aic23_i2c_remove(struct i2c_client *i2c)
---------{
--------- snd_soc_unregister_codec(&i2c->dev);
--------- return 0;
+++++++++ return snd_soc_register_codec(dev, &soc_codec_dev_tlv320aic23,
+++++++++ &tlv320aic23_dai, 1);
}
---------
---------static const struct i2c_device_id tlv320aic23_id[] = {
--------- {"tlv320aic23", 0},
--------- {}
---------};
---------
---------MODULE_DEVICE_TABLE(i2c, tlv320aic23_id);
---------
---------static struct i2c_driver tlv320aic23_i2c_driver = {
--------- .driver = {
--------- .name = "tlv320aic23-codec",
--------- },
--------- .probe = tlv320aic23_codec_probe,
--------- .remove = __exit_p(tlv320aic23_i2c_remove),
--------- .id_table = tlv320aic23_id,
---------};
---------
---------module_i2c_driver(tlv320aic23_i2c_driver);
+ +++++++++EXPORT_SYMBOL(tlv320aic23_probe);
MODULE_DESCRIPTION("ASoC TLV320AIC23 codec driver");
MODULE_AUTHOR("Arun KS <arunks@mistralsolutions.com>");