• Home
  • Raw
  • Download

Lines Matching refs:id

107 	snd_iprintf(buffer, "%s\n", entry->card->id);  in snd_card_id_read()
220 strlcpy(card->id, xid, sizeof(card->id)); in snd_card_new()
537 static bool card_id_ok(struct snd_card *card, const char *id) in card_id_ok() argument
540 if (!snd_info_check_reserved_words(id)) in card_id_ok()
544 !strcmp(snd_cards[i]->id, id)) in card_id_ok()
554 char *id = card->id; in copy_valid_id_string() local
559 *id++ = isalpha(*src) ? *src : 'D'; in copy_valid_id_string()
560 while (*nid && (size_t)(id - card->id) < sizeof(card->id) - 1) { in copy_valid_id_string()
562 *id++ = *nid; in copy_valid_id_string()
565 *id = 0; in copy_valid_id_string()
576 char *id; in snd_card_set_id_no_lock() local
579 id = card->id; in snd_card_set_id_no_lock()
585 if (!*id || !strncmp(id, "card", 4)) { in snd_card_set_id_no_lock()
586 strcpy(id, "Default"); in snd_card_set_id_no_lock()
590 len = strlen(id); in snd_card_set_id_no_lock()
596 if (card_id_ok(card, id)) in snd_card_set_id_no_lock()
602 if (len + sfxlen >= sizeof(card->id)) in snd_card_set_id_no_lock()
603 spos = id + sizeof(card->id) - sfxlen - 1; in snd_card_set_id_no_lock()
605 spos = id + len; in snd_card_set_id_no_lock()
610 *id = 0; in snd_card_set_id_no_lock()
614 dev_err(card->dev, "unable to set card id (%s)\n", id); in snd_card_set_id_no_lock()
616 strlcpy(card->id, card->proc_root->name, sizeof(card->id)); in snd_card_set_id_no_lock()
630 if (card->id[0] != '\0') in snd_card_set_id()
643 return snprintf(buf, PAGE_SIZE, "%s\n", card->id); in card_id_show_attr()
651 char buf1[sizeof(card->id)]; in card_id_store_attr()
652 size_t copy = count > sizeof(card->id) - 1 ? in card_id_store_attr()
653 sizeof(card->id) - 1 : count; in card_id_store_attr()
669 strcpy(card->id, buf1); in card_id_store_attr()
676 static DEVICE_ATTR(id, S_IRUGO | S_IWUSR, card_id_show_attr, card_id_store_attr);
754 if (*card->id) { in snd_card_register()
756 char tmpid[sizeof(card->id)]; in snd_card_register()
757 memcpy(tmpid, card->id, sizeof(card->id)); in snd_card_register()
790 card->id, in snd_card_info_read()