• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/core/

Lines Matching refs:card

65 	if (!strncmp(str, "card", 4))
609 * create a card proc file
612 int snd_info_card_create(struct snd_card *card)
617 snd_assert(card != NULL, return -ENXIO);
619 sprintf(str, "card%i", card->number);
620 if ((entry = snd_info_create_module_entry(card->module, str, NULL)) == NULL)
627 card->proc_root = entry;
632 * register the card proc file
635 int snd_info_card_register(struct snd_card *card)
639 snd_assert(card != NULL, return -ENXIO);
641 if (!strcmp(card->id, card->proc_root->name))
644 p = proc_symlink(card->id, snd_proc_root, card->proc_root->name);
647 card->proc_root_link = p;
652 * de-register the card proc file
655 void snd_info_card_disconnect(struct snd_card *card)
657 snd_assert(card != NULL, return);
659 if (card->proc_root_link) {
660 snd_remove_proc_entry(snd_proc_root, card->proc_root_link);
661 card->proc_root_link = NULL;
663 if (card->proc_root)
664 snd_info_disconnect(card->proc_root);
669 * release the card proc file resources
672 int snd_info_card_free(struct snd_card *card)
674 snd_assert(card != NULL, return -ENXIO);
675 snd_info_free_entry(card->proc_root);
676 card->proc_root = NULL;
815 * snd_info_create_card_entry - create an info entry for the given card
816 * @card: the card instance
820 * Creates a new info entry and assigns it to the given card.
824 struct snd_info_entry *snd_info_create_card_entry(struct snd_card *card,
830 entry->module = card->module;
831 entry->card = card;
871 * snd_card_proc_new - create an info entry for the given card
872 * @card: the card instance
876 * Creates a new info entry and assigns it to the given card.
883 * The parent is assumed as card->proc_root.
890 int snd_card_proc_new(struct snd_card *card, const char *name,
901 entry = snd_info_create_card_entry(card, name, card->proc_root);
904 if ((err = snd_device_new(card, SNDRV_DEV_INFO, entry, &ops)) < 0) {