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