[alsa-devel] [PATCH v2] ASoC: add TI ts3a227e headset chip driver

Lars-Peter Clausen lars at metafoo.de
Thu Nov 13 08:22:24 CET 2014


On 11/13/2014 01:15 AM, Dylan Reid wrote:
> +static struct snd_soc_codec_driver ts3a227e_codec_driver;
> [...]
> +	ret = snd_soc_register_codec(&i2c->dev, &ts3a227e_codec_driver,
> +				     NULL, 0);
> [...]

Since the driver doesn't need anything CODEC specific it could be made a 
component driver and then you can also use devm_snd_soc_register_component.



More information about the Alsa-devel mailing list