252 |
strcpy(card->shortname, CARD_NAME_SHORT); |
strcpy(card->shortname, CARD_NAME_SHORT); |
253 |
sprintf(card->longname, "%s at 0x%lx irq %i", |
sprintf(card->longname, "%s at 0x%lx irq %i", |
254 |
card->shortname, chip->io, chip->irq); |
card->shortname, chip->io, chip->irq); |
255 |
|
|
256 |
|
#ifdef CONFIG_SND_AU8830 |
257 |
|
{ |
258 |
|
unsigned char revision; |
259 |
|
if ((err = pci_read_config_byte(pci, PCI_REVISION_ID, &revision)) < 0) { |
260 |
|
snd_card_free(card); |
261 |
|
return err; |
262 |
|
} |
263 |
|
|
264 |
|
if (revision != 0xfe && revision != 0xfa) { |
265 |
|
printk(KERN_ALERT "vortex: The revision (%x) of your card has not been seen before.\n", revision); |
266 |
|
printk(KERN_ALERT "vortex: Please email the results of 'lspci -vv' to openvortex-dev@nongnu.org.\n"); |
267 |
|
} |
268 |
|
} |
269 |
|
#endif |
270 |
// (6) |
// (6) |
271 |
if ((err = snd_card_register(card)) < 0) { |
if ((err = snd_card_register(card)) < 0) { |
272 |
snd_card_free(card); |
snd_card_free(card); |