Lines Matching refs:card

56 	struct snd_card *card;  in snd_pmac_probe()  local
61 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_pmac_probe()
65 if ((err = snd_pmac_new(card, &chip)) < 0) in snd_pmac_probe()
67 card->private_data = chip; in snd_pmac_probe()
71 strcpy(card->driver, "PMac Burgundy"); in snd_pmac_probe()
72 strcpy(card->shortname, "PowerMac Burgundy"); in snd_pmac_probe()
73 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
74 card->shortname, chip->device_id, chip->subframe); in snd_pmac_probe()
79 strcpy(card->driver, "PMac DACA"); in snd_pmac_probe()
80 strcpy(card->shortname, "PowerMac DACA"); in snd_pmac_probe()
81 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
82 card->shortname, chip->device_id, chip->subframe); in snd_pmac_probe()
89 sprintf(card->driver, "PMac %s", name_ext); in snd_pmac_probe()
90 sprintf(card->shortname, "PowerMac %s", name_ext); in snd_pmac_probe()
91 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
92 card->shortname, chip->device_id, chip->subframe); in snd_pmac_probe()
99 sprintf(card->driver, "PMac %s", name_ext); in snd_pmac_probe()
100 sprintf(card->shortname, "PowerMac %s", name_ext); in snd_pmac_probe()
107 sprintf(card->longname, "%s%s Rev %d", in snd_pmac_probe()
108 card->shortname, name_ext, chip->revision); in snd_pmac_probe()
125 if ((err = snd_card_register(card)) < 0) in snd_pmac_probe()
128 platform_set_drvdata(devptr, card); in snd_pmac_probe()
132 snd_card_free(card); in snd_pmac_probe()
146 struct snd_card *card = dev_get_drvdata(dev); in snd_pmac_driver_suspend() local
147 snd_pmac_suspend(card->private_data); in snd_pmac_driver_suspend()
153 struct snd_card *card = dev_get_drvdata(dev); in snd_pmac_driver_resume() local
154 snd_pmac_resume(card->private_data); in snd_pmac_driver_resume()