Lines Matching defs:fabric
19 /* We allow only one fabric. This simplifies things,
21 static struct aoa_fabric *fabric;
32 if (fabric->found_codec)
33 err = fabric->found_codec(c);
36 printk(KERN_ERR "snd-aoa: fabric didn't like codec %s\n",
40 c->fabric = fabric;
47 c->fabric = NULL;
48 if (fabric->remove_codec)
49 fabric->remove_codec(c);
53 if (fabric->attached_codec)
54 fabric->attached_codec(c);
62 /* if there's a fabric already, we can tell if we
65 if (fabric)
76 if (codec->fabric && codec->exit)
78 if (fabric && fabric->remove_codec)
79 fabric->remove_codec(codec);
80 codec->fabric = NULL;
90 /* allow querying for presence of fabric
92 if (new_fabric == fabric) {
96 if (fabric)
105 fabric = new_fabric;
109 if (c->fabric != fabric)
120 if (fabric != old_fabric)
124 if (c->fabric)
130 fabric = NULL;
136 if (!codec->fabric) {
137 printk(KERN_ERR "snd-aoa: fabric unassigned "
144 if (codec->fabric->remove_codec)
145 codec->fabric->remove_codec(codec);
146 codec->fabric = NULL;