printk("vortex: FATAL: ResManager: resource type %d exhausted.\n", restype); 
printk(KERN_ERR "vortex: FATAL: ResManager: resource type %d exhausted.\n", restype); 
vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out, int restype){	int i, qty = resnum[restype], resinuse = 0;	if (out) {		/* Gather used resources by all streams. */		for (i = 0; i < NR_ADB; i++) {			resinuse |= vortex->dma_adb[i].resources[restype];		}		resinuse |= vortex->fixed_res[restype];		/* Find and take free resource. */		for (i = 0; i < qty; i++) {			if ((resinuse & (1 << i)) == 0) {				if (resmap != NULL)					resmap[restype] |= (1 << i);				else					vortex->dma_adb[i].resources[restype] |= (1 << i);				//printk("vortex: ResManager: type %d out %d\n", restype, i);				return i;			}		}	} else {		if (resmap == NULL)			return -EINVAL;		/* Checkin first resource of type restype. */		for (i = 0; i < qty; i++) {			if (resmap[restype] & (1 << i)) {				resmap[restype] &= ~(1 << i);				//printk("vortex: ResManager: type %d in %d\n",restype, i);				return i;			}		}	}	printk("vortex: FATAL: ResManager: resource type %d exhausted.\n", restype);	return -ENOMEM;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/99b359ba10a582148c6725f428a33ba5356dd993/au88x0_core.c/buggy/sound/pci/au88x0/au88x0_core.c