• 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

103 	snd_iprintf(buffer, "%s\n", entry->card->id);
115 if ((entry = snd_info_create_card_entry(card, "id", card->proc_root)) == NULL) {
164 strlcpy(card->id, xid, sizeof(card->id));
491 char *id;
494 id = card->shortname;
495 spos = src = id;
496 while (*id != '\0') {
497 if (*id == ' ')
498 spos = id + 1;
499 id++;
504 id = card->id;
508 *id++ = isalpha(src[0]) ? src[0] : 'D';
509 while (*spos != '\0' && (size_t)(id - card->id) < sizeof(card->id) - 1) {
511 *id++ = *spos;
514 *id = '\0';
516 id = card->id;
518 if (*id == '\0')
519 strcpy(id, "default");
523 snd_printk(KERN_ERR "unable to set card id (%s)\n", id);
524 strcpy(card->id, card->proc_root->name);
527 if (!snd_info_check_reserved_words(id))
530 if (snd_cards[i] && !strcmp(snd_cards[i]->id, id))
536 len = strlen(id);
538 if (id[len-1] != '9')
539 id[len-1]++;
541 id[len-1] = 'A';
542 } else if ((size_t)len <= sizeof(card->id) - 3) {
543 strcat(id, "_1");
546 spos = id + len - 2;
547 if ((size_t)len <= sizeof(card->id) - 2)
567 /* check if user specified own card->id */
568 if (card->id[0] != '\0')
582 return snprintf(buf, PAGE_SIZE, "%s\n", card ? card->id : "(null)");
590 char buf1[sizeof(card->id)];
591 size_t copy = count > sizeof(card->id) - 1 ?
592 sizeof(card->id) - 1 : count;
610 if (snd_cards[idx] && !strcmp(snd_cards[idx]->id, buf1))
613 strcpy(card->id, buf1);
621 __ATTR(id, S_IRUGO | S_IWUSR, card_id_show_attr, card_id_store_attr);
669 snd_card_set_id_no_lock(card, card->id[0] == '\0' ? NULL : card->id);
707 card->id,
801 * @component: the component id string
803 * This function adds the component id string to the supported list.