Lines Matching defs:card
26 * the card config of alsa-lib will assign the correct
66 static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */
365 struct snd_card *card;
522 dev_err(chip->card->dev, "codec_ready: codec %i is not ready [0x%x]\n",
581 dev_err(chip->card->dev,
787 dev_dbg(chip->card->dev,
805 dev_dbg(chip->card->dev,
815 dev_dbg(chip->card->dev,
887 dev_dbg(chip->card->dev,
1252 snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE |
1342 snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO,
1430 err = snd_pcm_new(chip->card, chip->card->shortname, 0, 4, 1, &pcm);
1436 strcpy(pcm->name, chip->card->shortname);
1455 err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 1, &pcm);
1461 strcpy(pcm->name, chip->card->shortname);
1498 err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm);
1504 strcpy(pcm->name, chip->card->shortname);
1527 err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 0, &pcm);
1532 strcpy(pcm->name, chip->card->shortname);
1556 err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm);
1562 strcpy(pcm->name, chip->card->shortname);
1879 if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &chip->ac97_bus)) < 0)
1914 dev_warn(chip->card->dev, "cannot reserve joystick port %#x\n",
1921 dev_err(chip->card->dev,
1973 err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_via8233_capture_source, chip));
1978 err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_via8233_dxs3_spdif_control, chip));
1990 if (! snd_ctl_find_id(chip->card, &sid)) {
1991 dev_info(chip->card->dev,
1993 err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_via8233_pcmdxs_volume_control, chip));
2007 err = snd_ctl_add(chip->card, kctl);
2074 if (snd_mpu401_uart_new(chip->card, 0, MPU401_HW_VIA686A,
2078 dev_warn(chip->card->dev,
2108 snd_iprintf(buffer, "%s\n\n", chip->card->longname);
2116 snd_card_ro_proc_new(chip->card, "via82xx", chip,
2178 dev_err(chip->card->dev,
2243 struct snd_card *card = dev_get_drvdata(dev);
2244 struct via82xx *chip = card->private_data;
2247 snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
2264 struct snd_card *card = dev_get_drvdata(dev);
2265 struct via82xx *chip = card->private_data;
2286 snd_power_change_state(card, SNDRV_CTL_POWER_D0);
2328 static int snd_via82xx_create(struct snd_card *card,
2355 chip->card = card;
2364 if ((err = pci_request_regions(pci, card->driver)) < 0) {
2375 dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq);
2380 card->sync_irq = chip->irq;
2389 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
2494 struct snd_card *card;
2500 err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card);
2507 strcpy(card->driver, "VIA686A");
2508 sprintf(card->shortname, "VIA 82C686A/B rev%x", pci->revision);
2513 sprintf(card->shortname, "VIA 823x rev%x", pci->revision);
2517 strcpy(card->shortname, via823x_cards[i].name);
2533 strcpy(card->driver, "VIA8233A");
2535 strcpy(card->driver, "VIA8237"); /* no slog assignment */
2537 strcpy(card->driver, "VIA8233");
2540 dev_err(card->dev, "invalid card type %d\n", card_type);
2545 if ((err = snd_via82xx_create(card, pci, chip_type, pci->revision,
2548 card->private_data = chip;
2581 snprintf(card->longname, sizeof(card->longname),
2582 "%s with %s at %#lx, irq %d", card->shortname,
2587 if ((err = snd_card_register(card)) < 0) {
2588 snd_card_free(card);
2591 pci_set_drvdata(pci, card);
2595 snd_card_free(card);