frq = 1000 * (div * 50 + 700 + 225) / 4;	/* Freq in KHz */ 
frq = (div * 50000 + 700000 + 225000) / 4;	/* Freq in KHz */ 
static void tea5767_status_dump(unsigned char *buffer){	unsigned int div, frq;	if (TEA5767_READY_FLAG_MASK & buffer[0])		printk(PREFIX "Ready Flag ON\n");	else		printk(PREFIX "Ready Flag OFF\n");	if (TEA5767_BAND_LIMIT_MASK & buffer[0])		printk(PREFIX "Tuner at band limit\n");	else		printk(PREFIX "Tuner not at band limit\n");	div = ((buffer[0] & 0x3f) << 8) | buffer[1];	switch (TEA5767_HIGH_LO_32768) {	case TEA5767_HIGH_LO_13MHz:		frq = 1000 * (div * 50 - 700 - 225) / 4;	/* Freq in KHz */		break;	case TEA5767_LOW_LO_13MHz:		frq = 1000 * (div * 50 + 700 + 225) / 4;	/* Freq in KHz */		break;	case TEA5767_LOW_LO_32768:		frq = 1000 * (div * 32768 / 1000 + 700 + 225) / 4;	/* Freq in KHz */		break;	case TEA5767_HIGH_LO_32768:	default:		frq = 1000 * (div * 32768 / 1000 - 700 - 225) / 4;	/* Freq in KHz */		break;	}	buffer[0] = (div >> 8) & 0x3f;	buffer[1] = div & 0xff;	printk(PREFIX "Frequency %d.%03d KHz (divider = 0x%04x)\n",	       frq / 1000, frq % 1000, div);	if (TEA5767_STEREO_MASK & buffer[2])		printk(PREFIX "Stereo\n");	else		printk(PREFIX "Mono\n");	printk(PREFIX "IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK);	printk(PREFIX "ADC Level = %d\n",	       (buffer[3] & TEA5767_ADC_LEVEL_MASK) >> 4);	printk(PREFIX "Chip ID = %d\n", (buffer[3] & TEA5767_CHIP_ID_MASK));	printk(PREFIX "Reserved = 0x%02x\n",	       (buffer[4] & TEA5767_RESERVED_MASK));}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c5287ba132ff742e595d42c28b66cbba19522c4e/tea5767.c/buggy/drivers/media/video/tea5767.c