snd_printk("ali_find_free_channel: S/PDIF out channel is in busy now.\n"); 
snd_printk(KERN_ERR "ali_find_free_channel: S/PDIF out channel is in busy now.\n"); 
static int snd_ali_find_free_channel(ali_t * codec, int rec){	int idx;	int result = -1;	snd_ali_printk("find_free_channel: for %s\n",rec ? "rec" : "pcm");	// recording	if (rec) {		if (codec->spdif_support &&		    (inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)) & ALI_SPDIF_IN_SUPPORT))			idx = ALI_SPDIF_IN_CHANNEL;		else			idx = ALI_PCM_IN_CHANNEL;		if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0) {			return result;		} else {			snd_printk("ali_find_free_channel: record channel is busy now.\n");			return -1;		}	}	//playback...	if (codec->spdif_support &&	    (inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)) & ALI_SPDIF_OUT_CH_ENABLE)) {		idx = ALI_SPDIF_OUT_CHANNEL;		if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0) {			return result;		} else {			snd_printk("ali_find_free_channel: S/PDIF out channel is in busy now.\n");		}	}	for (idx = 0; idx < ALI_CHANNELS; idx++) {		if ((result = snd_ali_alloc_pcm_channel(codec,idx)) >= 0)			return result;	}	snd_printk("ali_find_free_channel: no free channels.\n");	return -1;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/99b359ba10a582148c6725f428a33ba5356dd993/ali5451.c/buggy/sound/pci/ali5451/ali5451.c