Lines Matching defs:card
28 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */
29 static bool enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */
43 static int snd_pcsp_create(struct snd_card *card)
81 pcsp_chip.card = card;
85 card->private_data = &pcsp_chip;
92 static void alsa_card_pcsp_free(struct snd_card *card)
94 pcsp_stop_beep(card->private_data);
99 struct snd_card *card;
108 err = snd_devm_card_new(dev, index, id, THIS_MODULE, 0, &card);
112 err = snd_pcsp_create(card);
125 strcpy(card->driver, "PC-Speaker");
126 strcpy(card->shortname, "pcsp");
127 sprintf(card->longname, "Internal PC-Speaker at port 0x%x",
130 err = snd_card_register(card);
133 card->private_free = alsa_card_pcsp_free;