card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); 
if (devicenum) { card = snd_card_new(devicenum, id[dev], THIS_MODULE, 0); } else { card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); } 
int alsa_card_saa7134_create(struct saa7134_dev *saadev){	static int dev;	snd_card_t *card;	snd_card_saa7134_t *chip;	int err;        static snd_device_ops_t ops = {                .dev_free =     snd_saa7134_dev_free,        };        if (dev >= SNDRV_CARDS)                return -ENODEV;	if (!enable[dev])		return -ENODEV;	card = snd_card_new(index[dev], id[dev], THIS_MODULE,			    0);	if (card == NULL)		return -ENOMEM;	strcpy(card->driver, "SAA7134");	/* Card "creation" */	chip = kcalloc(1, sizeof(*chip), GFP_KERNEL);        if (chip == NULL) {                return -ENOMEM;        }        spin_lock_init(&chip->lock);        chip->saadev = saadev;        chip->card = card;        chip->pci = saadev->pci;        chip->irq = saadev->pci->irq;        chip->iobase = pci_resource_start(saadev->pci, 0);        if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {                snd_saa7134_free(chip);                return err;        }	if ((err = snd_card_saa7134_new_mixer(chip)) < 0)		goto __nodev;	if ((err = snd_card_saa7134_pcm(chip, 0)) < 0)		goto __nodev;        spin_lock_init(&chip->mixer_lock);	snd_card_set_dev(card, &chip->pci->dev);	/* End of "creation" */	strcpy(card->shortname, "SAA7134");        sprintf(card->longname, "%s at 0x%lx irq %d",                card->shortname, chip->iobase, chip->irq);	if ((err = snd_card_register(card)) == 0) {		snd_saa7134_cards[dev] = card;		return 0;	}__nodev:	snd_card_free(card);	kfree(card);	return err;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a866623cdc94a3a800167568db24bc55b6860ef0/saa7134-alsa.c/clean/drivers/media/video/saa7134/saa7134-alsa.c