Lines Matching full:codec
35 printk(KERN_ERR "snd-aoa: fabric didn't like codec %s\n", in attach_codec_to_fabric()
45 printk(KERN_ERR "snd-aoa: codec %s didn't init\n", c->name); in attach_codec_to_fabric()
57 int aoa_codec_register(struct aoa_codec *codec) in aoa_codec_register() argument
62 * will want to have this codec, so propagate error in aoa_codec_register()
65 err = attach_codec_to_fabric(codec); in aoa_codec_register()
67 list_add(&codec->list, &codec_list); in aoa_codec_register()
72 void aoa_codec_unregister(struct aoa_codec *codec) in aoa_codec_unregister() argument
74 list_del(&codec->list); in aoa_codec_unregister()
75 if (codec->fabric && codec->exit) in aoa_codec_unregister()
76 codec->exit(codec); in aoa_codec_unregister()
78 fabric->remove_codec(codec); in aoa_codec_unregister()
79 codec->fabric = NULL; in aoa_codec_unregister()
80 module_put(codec->owner); in aoa_codec_unregister()
133 void aoa_fabric_unlink_codec(struct aoa_codec *codec) in aoa_fabric_unlink_codec() argument
135 if (!codec->fabric) { in aoa_fabric_unlink_codec()
141 if (codec->exit) in aoa_fabric_unlink_codec()
142 codec->exit(codec); in aoa_fabric_unlink_codec()
143 if (codec->fabric->remove_codec) in aoa_fabric_unlink_codec()
144 codec->fabric->remove_codec(codec); in aoa_fabric_unlink_codec()
145 codec->fabric = NULL; in aoa_fabric_unlink_codec()
146 module_put(codec->owner); in aoa_fabric_unlink_codec()