#ifdef CONFIG_SND_DEBUG_DETECT printk("ca0106: probe for MIDI channel A ..."); #endif if ((err = snd_ca0106_midi(chip,CA0106_MIDI_CHAN_A)) < 0) { snd_card_free(card); #ifdef CONFIG_SND_DEBUG_DETECT printk(" failed, err=0x%x\n",err); #endif return err; } #ifdef CONFIG_SND_DEBUG_DETECT printk(" done.\n"); #endif  
static int __devinit snd_ca0106_probe(struct pci_dev *pci,					const struct pci_device_id *pci_id){	static int dev;	snd_card_t *card;	ca0106_t *chip;	int err;	if (dev >= SNDRV_CARDS)		return -ENODEV;	if (!enable[dev]) {		dev++;		return -ENOENT;	}	card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);	if (card == NULL)		return -ENOMEM;	if ((err = snd_ca0106_create(card, pci, &chip)) < 0) {		snd_card_free(card);		return err;	}	if ((err = snd_ca0106_pcm(chip, 0, NULL)) < 0) {		snd_card_free(card);		return err;	}	if ((err = snd_ca0106_pcm(chip, 1, NULL)) < 0) {		snd_card_free(card);		return err;	}	if ((err = snd_ca0106_pcm(chip, 2, NULL)) < 0) {		snd_card_free(card);		return err;	}	if ((err = snd_ca0106_pcm(chip, 3, NULL)) < 0) {		snd_card_free(card);		return err;	}        if (chip->details->ac97 == 1) { /* The SB0410 and SB0413 do not have an AC97 chip. */		if ((err = snd_ca0106_ac97(chip)) < 0) {			snd_card_free(card);			return err;		}	}	if ((err = snd_ca0106_mixer(chip)) < 0) {		snd_card_free(card);		return err;	}	snd_ca0106_proc_init(chip);	if ((err = snd_card_register(card)) < 0) {		snd_card_free(card);		return err;	}	pci_set_drvdata(pci, card);	dev++;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/8a5afd29dc16a9e687f63195cb635ecd611482d0/ca0106_main.c/clean/sound/pci/ca0106/ca0106_main.c