[alsa-devel] [PATCH v2] ASoC: add TI ts3a227e headset chip driver
Dylan Reid
dgreid at chromium.org
Thu Nov 13 20:13:10 CET 2014
On Wed, Nov 12, 2014 at 11:22 PM, Lars-Peter Clausen <lars at metafoo.de> wrote:
> 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.
>
Thanks Lars. That makes registering the jack from the platform driver
simpler too.
More information about the Alsa-devel
mailing list