Lines Matching defs:card

41 static char *id = SNDRV_DEFAULT_STR1;	/* ID for this card */
193 struct snd_card *card;
303 dev_err(chip->card->dev,
352 dev_dbg(chip->card->dev,
382 /* The actual rates supported by the card. */
453 dev_err(chip->card->dev,
459 chip->card->sync_irq = chip->irq;
475 chip->card->sync_irq = -1;
915 err = snd_pcm_new(chip->card, chip->card->driver, device,
951 * I'm not sure if the best thing is to stop the card from
956 * I worry about the card engine continuing to play noise
960 * inserted a PCMCIA card and someone's spamming us with IRQ 9s.
1014 dev_dbg(chip->card->dev, "NM256: Got misc interrupt #1\n");
1023 dev_dbg(chip->card->dev, "NM256: Got misc interrupt #2\n");
1030 dev_dbg(chip->card->dev,
1080 dev_dbg(chip->card->dev, "NM256: Got misc interrupt #1\n");
1088 dev_dbg(chip->card->dev, "NM256: Got misc interrupt #2\n");
1095 dev_dbg(chip->card->dev,
1222 dev_dbg(chip->card->dev, "nm256: ac97 codec not ready..\n");
1284 chip->ac97_regs = devm_kcalloc(chip->card->dev,
1290 err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus);
1304 sprintf(chip->card->mixername, "%s AC97", chip->card->driver);
1326 dev_err(chip->card->dev,
1327 "Unable to scan for card signature in video RAM\n");
1341 dev_err(chip->card->dev,
1347 dev_info(chip->card->dev,
1348 "found card signature in video RAM: 0x%x\n",
1360 * APM event handler, so the card is properly reinitialized after a power
1365 struct snd_card *card = dev_get_drvdata(dev);
1366 struct nm256 *chip = card->private_data;
1368 snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
1376 struct snd_card *card = dev_get_drvdata(dev);
1377 struct nm256 *chip = card->private_data;
1397 snd_power_change_state(card, SNDRV_CTL_POWER_D0);
1404 static void snd_nm256_free(struct snd_card *card)
1406 struct nm256 *chip = card->private_data;
1415 snd_nm256_create(struct snd_card *card, struct pci_dev *pci)
1417 struct nm256 *chip = card->private_data;
1425 chip->card = card;
1446 err = pci_request_regions(pci, card->driver);
1454 dev_err(card->dev, "unable to map control port %lx\n",
1459 if (!strcmp(card->driver, "NM256AV")) {
1464 dev_err(card->dev,
1466 dev_err(card->dev,
1468 dev_err(card->dev,
1470 dev_err(card->dev,
1510 dev_info(card->dev, "Mapping port 1 from 0x%x - 0x%x\n",
1516 dev_err(card->dev, "unable to map ring buffer at %lx\n",
1563 struct snd_card *card;
1587 sizeof(*chip), &card);
1590 chip = card->private_data;
1594 strcpy(card->driver, "NM256AV");
1597 strcpy(card->driver, "NM256ZX");
1600 strcpy(card->driver, "NM256XL+");
1618 err = snd_nm256_create(card, pci);
1639 sprintf(card->shortname, "NeoMagic %s", card->driver);
1640 sprintf(card->longname, "%s at 0x%lx & 0x%lx, irq %d",
1641 card->shortname,
1644 err = snd_card_register(card);
1647 card->private_free = snd_nm256_free;
1649 pci_set_drvdata(pci, card);