Lines Matching full:fabric
18 /* We allow only one fabric. This simplifies things,
20 static struct aoa_fabric *fabric; variable
31 if (fabric->found_codec) in attach_codec_to_fabric()
32 err = fabric->found_codec(c); in attach_codec_to_fabric()
35 printk(KERN_ERR "snd-aoa: fabric didn't like codec %s\n", in attach_codec_to_fabric()
39 c->fabric = fabric; in attach_codec_to_fabric()
46 c->fabric = NULL; in attach_codec_to_fabric()
47 if (fabric->remove_codec) in attach_codec_to_fabric()
48 fabric->remove_codec(c); in attach_codec_to_fabric()
52 if (fabric->attached_codec) in attach_codec_to_fabric()
53 fabric->attached_codec(c); in attach_codec_to_fabric()
61 /* if there's a fabric already, we can tell if we in aoa_codec_register()
64 if (fabric) in aoa_codec_register()
75 if (codec->fabric && codec->exit) in aoa_codec_unregister()
77 if (fabric && fabric->remove_codec) in aoa_codec_unregister()
78 fabric->remove_codec(codec); in aoa_codec_unregister()
79 codec->fabric = NULL; in aoa_codec_unregister()
89 /* allow querying for presence of fabric in aoa_fabric_register()
91 if (new_fabric == fabric) { in aoa_fabric_register()
95 if (fabric) in aoa_fabric_register()
104 fabric = new_fabric; in aoa_fabric_register()
108 if (c->fabric != fabric) in aoa_fabric_register()
119 if (fabric != old_fabric) in aoa_fabric_unregister()
123 if (c->fabric) in aoa_fabric_unregister()
129 fabric = NULL; in aoa_fabric_unregister()
135 if (!codec->fabric) { in aoa_fabric_unlink_codec()
136 printk(KERN_ERR "snd-aoa: fabric unassigned " 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()