• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/core/

Lines Matching refs:id

141 		    struct snd_ctl_elem_id *id)
147 if (snd_BUG_ON(!card || !id))
158 if (ev->id.numid == id->numid) {
165 ev->id = *id;
234 kctl.id.iface = ncontrol->iface;
235 kctl.id.device = ncontrol->device;
236 kctl.id.subdevice = ncontrol->subdevice;
238 strlcpy(kctl.id.name, ncontrol->name, sizeof(kctl.id.name));
239 if (strcmp(ncontrol->name, kctl.id.name) != 0)
242 ncontrol->name, kctl.id.name);
244 kctl.id.index = ncontrol->index;
288 if ((kctl->id.numid <= card->last_numid &&
289 kctl->id.numid + kctl->count > card->last_numid) ||
290 (kctl->id.numid <= card->last_numid + count - 1 &&
291 kctl->id.numid + kctl->count > card->last_numid + count - 1))
292 return card->last_numid = kctl->id.numid + kctl->count - 1;
328 struct snd_ctl_elem_id id;
336 id = kcontrol->id;
338 if (snd_ctl_find_id(card, &id)) {
341 id.iface,
342 id.device,
343 id.subdevice,
344 id.name,
345 id.index);
356 kcontrol->id.numid = card->last_numid + 1;
359 for (idx = 0; idx < kcontrol->count; idx++, id.index++, id.numid++)
360 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_ADD, &id);
383 struct snd_ctl_elem_id id;
390 id = kcontrol->id;
391 for (idx = 0; idx < kcontrol->count; idx++, id.index++, id.numid++)
392 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_REMOVE, &id);
400 * snd_ctl_remove_id - remove the control of the given id and release it
402 * @id: the control id to remove
404 * Finds the control instance with the given id, removes it from the
409 int snd_ctl_remove_id(struct snd_card *card, struct snd_ctl_elem_id *id)
415 kctl = snd_ctl_find_id(card, id);
430 * @id: the control id to remove
432 * Finds the control instance with the given id, removes it from the
438 struct snd_ctl_elem_id *id)
445 kctl = snd_ctl_find_id(card, id);
469 * snd_ctl_rename_id - replace the id of a control on the card
471 * @src_id: the old id
472 * @dst_id: the new id
474 * Finds the control with the old id from the card, and replaces the
475 * id with the new one.
490 kctl->id = *dst_id;
491 kctl->id.numid = card->last_numid + 1;
500 * snd_ctl_find_numid - find the control instance with the given number-id
502 * @numid: the number-id to search
504 * Finds the control instance with the given number-id from the card.
518 if (kctl->id.numid <= numid && kctl->id.numid + kctl->count > numid)
527 * snd_ctl_find_id - find the control instance with the given id
529 * @id: the id to search
531 * Finds the control instance with the given id from the card.
539 struct snd_ctl_elem_id *id)
543 if (snd_BUG_ON(!card || !id))
545 if (id->numid != 0)
546 return snd_ctl_find_numid(card, id->numid);
548 if (kctl->id.iface != id->iface)
550 if (kctl->id.device != id->device)
552 if (kctl->id.subdevice != id->subdevice)
554 if (strncmp(kctl->id.name, id->name, sizeof(kctl->id.name)))
556 if (kctl->id.index > id->index)
558 if (kctl->id.index + kctl->count <= id->index)
577 strlcpy(info->id, card->id, sizeof(info->id));
598 struct snd_ctl_elem_id *dst, *id;
627 id = dst;
631 snd_ctl_build_ioff(id, kctl, jidx);
632 id++;
667 kctl = snd_ctl_find_id(card, &info->id);
678 index_offset = snd_ctl_get_ioff(kctl, &info->id);
680 snd_ctl_build_ioff(&info->id, kctl, index_offset);
723 kctl = snd_ctl_find_id(card, &control->id);
727 index_offset = snd_ctl_get_ioff(kctl, &control->id);
731 snd_ctl_build_ioff(&control->id, kctl, index_offset);
771 kctl = snd_ctl_find_id(card, &control->id);
775 index_offset = snd_ctl_get_ioff(kctl, &control->id);
782 snd_ctl_build_ioff(&control->id, kctl, index_offset);
788 &control->id);
824 struct snd_ctl_elem_id id;
829 if (copy_from_user(&id, _id, sizeof(id)))
832 kctl = snd_ctl_find_id(card, &id);
836 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
852 struct snd_ctl_elem_id id;
857 if (copy_from_user(&id, _id, sizeof(id)))
860 kctl = snd_ctl_find_id(card, &id);
864 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
977 info->id.numid = 0;
980 _kctl = snd_ctl_find_id(card, &info->id);
994 memcpy(&kctl.id, &info->id, sizeof(info->id));
1071 struct snd_ctl_elem_id id;
1073 if (copy_from_user(&id, _id, sizeof(id)))
1075 return snd_ctl_remove_user_ctl(file, &id);
1124 vd = &kctl->vd[tlv.numid - kctl->id.numid];
1139 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_TLV, &kctl->id);
1263 ev.data.elem.id = kev->id;