/* Returns a new AC97 codec structure. AC97 codecs may become refcounted soon so this interface is needed. Returns with one reference taken.  */
struct ac97_codec* ac97_alloc_codec(void)
/* Returns a new AC97 codec structure. AC97 codecs may become refcounted soon so this interface is needed. Returns with one reference taken.  */
struct ac97_codec* ac97_alloc_codec(void)
{
	struct ac97_codec *codec = kzalloc(sizeof(struct ac97_codec), GFP_KERNEL);
	if(!codec)
		return NULL;
	spin_lock_init(&codec->lock);
	INIT_LIST_HEAD(&codec->list);
	return codec;
}