Lines Matching defs:card
55 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */
370 struct snd_card *card;
526 dev_err(chip->card->dev,
542 dev_err(chip->card->dev,
558 dev_err(chip->card->dev,
569 dev_err(chip->card->dev,
605 dev_warn(chip->card->dev, "AC97 codec ready timeout.\n");
617 dev_warn(chip->card->dev, "ali_codec_semaphore timeout\n");
686 dev_dbg(chip->card->dev, "bdbar[%i] = 0x%x [0x%x]\n",
698 dev_dbg(chip->card->dev,
751 dev_dbg(chip->card->dev,
1037 * is valid inside VM on emulated card. */
1463 err = snd_pcm_new(chip->card, name, device,
1477 sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix);
1479 strcpy(pcm->name, chip->card->shortname);
2216 if ((err = snd_ac97_bus(chip->card, 0, ops, chip, &pbus)) < 0)
2234 dev_err(chip->card->dev,
2387 dev_err(chip->card->dev, "AC'97 warm reset still in progress? [0x%x]\n",
2429 dev_err(chip->card->dev,
2494 dev_err(chip->card->dev, "AC'97 reset failed.\n");
2538 dev_err(chip->card->dev, "reset of registers failed?\n");
2589 struct snd_card *card = dev_get_drvdata(dev);
2590 struct intel8x0 *chip = card->private_data;
2593 snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
2602 card->sync_irq = -1;
2610 struct snd_card *card = dev_get_drvdata(dev);
2611 struct intel8x0 *chip = card->private_data;
2619 snd_card_disconnect(card);
2623 card->sync_irq = chip->irq;
2652 snd_power_change_state(card, SNDRV_CTL_POWER_D0);
2679 dev_warn(chip->card->dev,
2690 dev_err(chip->card->dev, "cannot set ac97 rate: clock = %d\n",
2745 dev_err(chip->card->dev,
2758 dev_info(chip->card->dev,
2761 dev_err(chip->card->dev, "?? calculation error..\n");
2768 dev_info(chip->card->dev, "measured clock %ld rejected\n", pos);
2780 dev_info(chip->card->dev, "clocking to %d\n", chip->ac97_bus->clock);
2802 dev_info(chip->card->dev, "allow list rate for %04x:%04x is %i\n",
2844 snd_card_ro_proc_new(chip->card, "intel8x0", chip,
2897 static int snd_intel8x0_create(struct snd_card *card,
2954 chip->card = card;
2976 if ((err = pci_request_regions(pci, card->shortname)) < 0) {
2993 dev_err(card->dev, "AC'97 space ioremap problem\n");
3004 dev_err(card->dev, "Controller space ioremap problem\n");
3047 dev_err(card->dev, "cannot allocate buffer descriptors\n");
3098 dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq);
3103 card->sync_irq = chip->irq;
3105 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
3171 struct snd_card *card;
3176 err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card);
3183 strcpy(card->driver, "ICH");
3187 strcpy(card->driver, "NFORCE");
3190 strcpy(card->driver, "ICH4");
3194 strcpy(card->shortname, "Intel ICH");
3197 strcpy(card->shortname, name->s);
3212 if ((err = snd_intel8x0_create(card, pci, pci_id->driver_data,
3214 snd_card_free(card);
3217 card->private_data = chip;
3220 snd_card_free(card);
3224 snd_card_free(card);
3230 snprintf(card->longname, sizeof(card->longname),
3231 "%s with %s at irq %i", card->shortname,
3243 if ((err = snd_card_register(card)) < 0) {
3244 snd_card_free(card);
3247 pci_set_drvdata(pci, card);