Lines Matching refs:id
31 * Each sequencer device entry has an id string and the corresponding
32 * driver with the same id is loaded when required. For example,
60 char id[ID_LEN]; /* driver id */
95 static struct ops_list *find_driver(char *id, int create_if_empty);
96 static struct ops_list *create_driver(char *id);
113 ops->id,
159 request_module("snd-%s", ops->id);
172 * id = id of driver
175 int snd_seq_device_new(struct snd_card *card, int device, char *id, int argsize,
190 if (snd_BUG_ON(!id))
193 ops = find_driver(id, 1);
206 strlcpy(dev->id, id, sizeof(dev->id));
239 ops = find_driver(dev->id, 0);
273 ops = find_driver(dev->id, 0);
295 ops = find_driver(dev->id, 0);
307 * id = driver id
310 int snd_seq_device_register_driver(char *id, struct snd_seq_dev_ops *entry,
316 if (id == NULL || entry == NULL ||
321 ops = find_driver(id, 1);
327 snd_printk(KERN_WARNING "driver_register: driver '%s' already exists\n", id);
355 static struct ops_list * create_driver(char *id)
364 strlcpy(ops->id, id, sizeof(ops->id));
370 lockdep_set_class(&ops->reg_mutex, (struct lock_class_key *)id);
390 int snd_seq_device_unregister_driver(char *id)
395 ops = find_driver(id, 0);
401 id, ops->driver);
462 dev->name, ops->id, ops->argsize, dev->argsize);
470 dev->name, dev->id);
489 dev->name, ops->id, ops->argsize, dev->argsize);
498 dev->name, dev->id);
505 * find the matching driver with given id
507 static struct ops_list * find_driver(char *id, int create_if_empty)
513 if (strcmp(ops->id, id) == 0) {
521 return create_driver(id);