• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/control/

Lines Matching refs:id

44 	snd_ctl_elem_id_t *id;
64 snd_ctl_elem_id_free(elem->id);
94 err = snd_ctl_elem_lock(h->ctl, elem->id);
189 err = snd_ctl_elem_unlock(h->ctl, elem->id);
255 snd_ctl_elem_id_t *id;
260 snd_ctl_elem_id_alloca(&id);
261 snd_ctl_elem_value_get_id(val, id);
350 const char *id;
351 if (snd_config_get_id(n, &id) < 0)
353 err = safe_strtol(id, &idx);
420 const char *id;
421 if (snd_config_get_id(n, &id) < 0)
423 if (strcmp(id, "comment") == 0)
425 if (strcmp(id, "iface") == 0 || strcmp(id, "interface") == 0) {
428 SNDERR("field %s is not a string", id);
432 SNDERR("Invalid value for '%s'", id);
438 if (strcmp(id, "name") == 0) {
440 SNDERR("field %s is not a string", id);
445 if (strcmp(id, "index") == 0) {
447 SNDERR("field %s is not an integer", id);
452 if (strcmp(id, "device") == 0) {
454 SNDERR("field %s is not an integer", id);
459 if (strcmp(id, "subdevice") == 0) {
461 SNDERR("field %s is not an integer", id);
466 if (strcmp(id, "lock") == 0) {
468 SNDERR("field %s has an invalid type", id);
473 SNDERR("field %s is not a boolean", id);
481 if (strcmp(id, "preserve") == 0) {
483 SNDERR("field %s has an invalid type", id);
488 SNDERR("field %s is not a boolean", id);
496 if (strcmp(id, "value") == 0) {
500 if (strcmp(id, "mask") == 0) {
504 if (strcmp(id, "optional") == 0) {
506 SNDERR("field %s has an invalid type", id);
511 SNDERR("field %s is not a boolean", id);
519 SNDERR("Unknown field %s", id);
539 err = snd_ctl_elem_id_malloc(&elem->id);
556 snd_ctl_elem_id_set_interface(elem->id, iface);
557 snd_ctl_elem_id_set_name(elem->id, name);
558 snd_ctl_elem_id_set_index(elem->id, index);
559 snd_ctl_elem_id_set_device(elem->id, device);
560 snd_ctl_elem_id_set_subdevice(elem->id, subdevice);
561 snd_ctl_elem_info_set_id(elem->info, elem->id);
568 snd_ctl_elem_value_set_id(elem->val, elem->id);
569 snd_ctl_elem_value_set_id(elem->old, elem->id);
590 if (elem->id)
591 snd_ctl_elem_id_free(elem->id);