• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/core/

Lines Matching refs:id

136 		    struct snd_ctl_elem_id *id)
142 snd_assert(card != NULL && id != NULL, return);
152 if (ev->id.numid == id->numid) {
159 ev->id = *id;
224 kctl.id.iface = ncontrol->iface;
225 kctl.id.device = ncontrol->device;
226 kctl.id.subdevice = ncontrol->subdevice;
228 strlcpy(kctl.id.name, ncontrol->name, sizeof(kctl.id.name));
229 kctl.id.index = ncontrol->index;
274 if ((kctl->id.numid <= card->last_numid &&
275 kctl->id.numid + kctl->count > card->last_numid) ||
276 (kctl->id.numid <= card->last_numid + count - 1 &&
277 kctl->id.numid + kctl->count > card->last_numid + count - 1))
278 return card->last_numid = kctl->id.numid + kctl->count - 1;
314 struct snd_ctl_elem_id id;
322 id = kcontrol->id;
324 if (snd_ctl_find_id(card, &id)) {
327 id.iface,
328 id.device,
329 id.subdevice,
330 id.name,
331 id.index);
342 kcontrol->id.numid = card->last_numid + 1;
345 for (idx = 0; idx < kcontrol->count; idx++, id.index++, id.numid++)
346 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_ADD, &id);
369 struct snd_ctl_elem_id id;
375 id = kcontrol->id;
376 for (idx = 0; idx < kcontrol->count; idx++, id.index++, id.numid++)
377 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_REMOVE, &id);
385 * snd_ctl_remove_id - remove the control of the given id and release it
387 * @id: the control id to remove
389 * Finds the control instance with the given id, removes it from the
394 int snd_ctl_remove_id(struct snd_card *card, struct snd_ctl_elem_id *id)
400 kctl = snd_ctl_find_id(card, id);
413 * snd_ctl_remove_unlocked_id - remove the unlocked control of the given id and release it
415 * @id: the control id to remove
417 * Finds the control instance with the given id, removes it from the
423 struct snd_ctl_elem_id *id)
430 kctl = snd_ctl_find_id(card, id);
446 * snd_ctl_rename_id - replace the id of a control on the card
448 * @src_id: the old id
449 * @dst_id: the new id
451 * Finds the control with the old id from the card, and replaces the
452 * id with the new one.
467 kctl->id = *dst_id;
468 kctl->id.numid = card->last_numid + 1;
477 * snd_ctl_find_numid - find the control instance with the given number-id
479 * @numid: the number-id to search
481 * Finds the control instance with the given number-id from the card.
494 if (kctl->id.numid <= numid && kctl->id.numid + kctl->count > numid)
503 * snd_ctl_find_id - find the control instance with the given id
505 * @id: the id to search
507 * Finds the control instance with the given id from the card.
515 struct snd_ctl_elem_id *id)
519 snd_assert(card != NULL && id != NULL, return NULL);
520 if (id->numid != 0)
521 return snd_ctl_find_numid(card, id->numid);
523 if (kctl->id.iface != id->iface)
525 if (kctl->id.device != id->device)
527 if (kctl->id.subdevice != id->subdevice)
529 if (strncmp(kctl->id.name, id->name, sizeof(kctl->id.name)))
531 if (kctl->id.index > id->index)
533 if (kctl->id.index + kctl->count <= id->index)
552 strlcpy(info->id, card->id, sizeof(info->id));
573 struct snd_ctl_elem_id *dst, *id;
602 id = dst;
606 snd_ctl_build_ioff(id, kctl, jidx);
607 id++;
642 kctl = snd_ctl_find_id(card, &info->id);
653 index_offset = snd_ctl_get_ioff(kctl, &info->id);
655 snd_ctl_build_ioff(&info->id, kctl, index_offset);
697 kctl = snd_ctl_find_id(card, &control->id);
701 index_offset = snd_ctl_get_ioff(kctl, &control->id);
708 snd_ctl_build_ioff(&control->id, kctl, index_offset);
755 kctl = snd_ctl_find_id(card, &control->id);
759 index_offset = snd_ctl_get_ioff(kctl, &control->id);
770 snd_ctl_build_ioff(&control->id, kctl, index_offset);
775 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &control->id);
817 struct snd_ctl_elem_id id;
822 if (copy_from_user(&id, _id, sizeof(id)))
825 kctl = snd_ctl_find_id(card, &id);
829 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
846 struct snd_ctl_elem_id id;
851 if (copy_from_user(&id, _id, sizeof(id)))
854 kctl = snd_ctl_find_id(card, &id);
858 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)];
975 info->id.numid = 0;
978 _kctl = snd_ctl_find_id(card, &info->id);
992 memcpy(&kctl.id, &info->id, sizeof(info->id));
1069 struct snd_ctl_elem_id id;
1072 if (copy_from_user(&id, _id, sizeof(id)))
1074 err = snd_ctl_remove_unlocked_id(file, &id);
1130 vd = &kctl->vd[tlv.numid - kctl->id.numid];
1145 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_TLV, &kctl->id);
1267 ev.data.elem.id = kev->id;