snd_printk("%s: unknown S/PDIF input rate (bits = 0x%x)\n", 
snd_printk(KERN_ERR "%s: unknown S/PDIF input rate (bits = 0x%x)\n", 
static inline int rme9652_spdif_sample_rate(rme9652_t *s){	unsigned int rate_bits;	if (rme9652_read(s, RME9652_status_register) & RME9652_ERF) {		return -1;	/* error condition */	}		if (s->hw_rev == 15) {		int x, y, ret;				x = rme9652_spdif_read_codec (s, 30);		if (x != 0) 			y = 48000 * 64 / x;		else			y = 0;		if      (y > 30400 && y < 33600)  ret = 32000; 		else if (y > 41900 && y < 46000)  ret = 44100;		else if (y > 46000 && y < 50400)  ret = 48000;		else if (y > 60800 && y < 67200)  ret = 64000;		else if (y > 83700 && y < 92000)  ret = 88200;		else if (y > 92000 && y < 100000) ret = 96000;		else                              ret = 0;		return ret;	}	rate_bits = rme9652_read(s, RME9652_status_register) & RME9652_F;	switch (rme9652_decode_spdif_rate(rate_bits)) {	case 0x7:		return 32000;		break;	case 0x6:		return 44100;		break;	case 0x5:		return 48000;		break;	case 0x4:		return 88200;		break;	case 0x3:		return 96000;		break;	case 0x0:		return 64000;		break;	default:		snd_printk("%s: unknown S/PDIF input rate (bits = 0x%x)\n",			   s->card_name, rate_bits);		return 0;		break;	}}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/99b359ba10a582148c6725f428a33ba5356dd993/rme9652.c/clean/sound/pci/rme9652/rme9652.c