if ((err = snd_emu10k1_mixer(emu)) < 0) { 
if ((err = snd_emu10k1_mixer(emu, 0, 3)) < 0) { 
static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci,					    const struct pci_device_id *pci_id){	static int dev;	snd_card_t *card;	emu10k1_t *emu;#ifdef ENABLE_SYNTH	snd_seq_device_t *wave = NULL;#endif	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 (max_buffer_size[dev] < 32)		max_buffer_size[dev] = 32;	else if (max_buffer_size[dev] > 1024)		max_buffer_size[dev] = 1024;	if ((err = snd_emu10k1_create(card, pci, extin[dev], extout[dev],				      (long)max_buffer_size[dev] * 1024 * 1024,				      enable_ir[dev], subsystem[dev],				      &emu)) < 0) {		snd_card_free(card);		return err;	}			if ((err = snd_emu10k1_pcm(emu, 0, NULL)) < 0) {		snd_card_free(card);		return err;	}			if ((err = snd_emu10k1_pcm_mic(emu, 1, NULL)) < 0) {		snd_card_free(card);		return err;	}			if ((err = snd_emu10k1_pcm_efx(emu, 2, NULL)) < 0) {		snd_card_free(card);		return err;	}	/* This stores the periods table. */	if (emu->card_capabilities->ca0151_chip) { /* P16V */			if(snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(pci), 1024, &emu->p16v_buffer) < 0) {			snd_p16v_free(emu);			return -ENOMEM;		}	}	if ((err = snd_emu10k1_mixer(emu)) < 0) {		snd_card_free(card);		return err;	}		if ((err = snd_emu10k1_timer(emu, 0)) < 0) {		snd_card_free(card);		return err;	}	if ((err = snd_emu10k1_pcm_multi(emu, 3, NULL)) < 0) {		snd_card_free(card);		return err;	}	if (emu->card_capabilities->ca0151_chip) { /* P16V */			if ((err = snd_p16v_pcm(emu, 4, NULL)) < 0) {			snd_card_free(card);			return err;		}	}	if (emu->audigy) {		if ((err = snd_emu10k1_audigy_midi(emu)) < 0) {			snd_card_free(card);			return err;		}	} else {		if ((err = snd_emu10k1_midi(emu)) < 0) {			snd_card_free(card);			return err;		}	}	if ((err = snd_emu10k1_fx8010_new(emu, 0, NULL)) < 0) {		snd_card_free(card);		return err;	}#ifdef ENABLE_SYNTH	if (snd_seq_device_new(card, 1, SNDRV_SEQ_DEV_ID_EMU10K1_SYNTH,			       sizeof(snd_emu10k1_synth_arg_t), &wave) < 0 ||	    wave == NULL) {		snd_printk("can't initialize Emu10k1 wavetable synth\n");	} else {		snd_emu10k1_synth_arg_t *arg;		arg = SNDRV_SEQ_DEVICE_ARGPTR(wave);		strcpy(wave->name, "Emu-10k1 Synth");		arg->hwptr = emu;		arg->index = 1;		arg->seq_ports = seq_ports[dev];		arg->max_voices = max_synth_voices[dev];	}#endif 	strcpy(card->driver, emu->card_capabilities->driver);	strcpy(card->shortname, emu->card_capabilities->name);	snprintf(card->longname, sizeof(card->longname),		 "%s (rev.%d, serial:0x%x) at 0x%lx, irq %i",		 card->shortname, emu->revision, emu->serial, emu->port, emu->irq);	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/67ed4161f60d76b3b27efc085b36357a6a90768c/emu10k1.c/clean/sound/pci/emu10k1/emu10k1.c