static snd_ali_voice_t *snd_ali_alloc_voice(ali_t * codec, int type, int rec) 
static snd_ali_voice_t *snd_ali_alloc_voice(ali_t * codec, int type, int rec, int channel) 
static snd_ali_voice_t *snd_ali_alloc_voice(ali_t * codec, int type, int rec){	snd_ali_voice_t *pvoice = NULL;	unsigned long flags;	int idx;	snd_ali_printk("alloc_voice: type=%d rec=%d\n",type,rec);	spin_lock_irqsave(&codec->voice_alloc, flags);	if (type == SNDRV_ALI_VOICE_TYPE_PCM) {		idx = snd_ali_find_free_channel(codec,rec);		if(idx < 0) {			snd_printk("ali_alloc_voice: err.\n");			spin_unlock_irqrestore(&codec->voice_alloc, flags);			return NULL;		}		pvoice = &(codec->synth.voices[idx]);		pvoice->use = 1;		pvoice->pcm = 1;		pvoice->mode = rec;		spin_unlock_irqrestore(&codec->voice_alloc, flags);		return pvoice;	}	spin_unlock_irqrestore(&codec->voice_alloc, flags);	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/5cbff89cbc1087870c32ecb0b7f1965f93ec5401/ali5451.c/clean/sound/pci/ali5451/ali5451.c