[alsa-devel] [PATCH v2][ASoC v2] Replace snd_soc_free_codec with snd_soc_unregister_codec

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Apr 24 22:56:27 CEST 2008


On Thu, Apr 24, 2008 at 02:06:57PM -0500, Timur Tabi wrote:

> So we replace snd_soc_free_codec() with snd_soc_unregister_codec().  This new
> function only unregisters the codec but does not free the memory resources.
> The caller can now allocate and free the memory resources as it sees fit.

Thanks!  I've applied this locally and will push it out into the ASoC v2
git branch after some testing.

> Also updated all callers of snd_soc_free_codec() to call
> snd_soc_unregister_codec() instead and free the resources themselves.

As discussed on IRC we should probably also convert all codec drivers to
embed the struct snd_soc_codec in their private_data.


More information about the Alsa-devel mailing list