24 Apr
2008
24 Apr
'08
10:56 p.m.
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.