dprintk(KERN_DEBUG "msp34xx: watch: nicam %d => %d\n", 
dprintk("msp34xx: watch: nicam %d => %d\n", 
autodetect_stereo(struct i2c_client *client){	struct msp3400c *msp = i2c_get_clientdata(client);	int val;	int rxsubchans = msp->rxsubchans;	int newnicam   = msp->nicam_on;	int update = 0;	switch (msp->mode) {	case MSP_MODE_FM_TERRA:		val = msp3400c_read(client, I2C_MSP3400C_DFP, 0x18);		if (val > 32767)			val -= 65536;		dprintk(KERN_DEBUG			"msp34xx: stereo detect register: %d\n",val);		if (val > 4096) {			rxsubchans = V4L2_TUNER_SUB_STEREO | V4L2_TUNER_SUB_MONO;		} else if (val < -4096) {			rxsubchans = V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2;		} else {			rxsubchans = V4L2_TUNER_SUB_MONO;		}		newnicam = 0;		break;	case MSP_MODE_FM_NICAM1:	case MSP_MODE_FM_NICAM2:	case MSP_MODE_AM_NICAM:		val = msp3400c_read(client, I2C_MSP3400C_DEM, 0x23);		dprintk(KERN_DEBUG			"msp34xx: nicam sync=%d, mode=%d\n",			val & 1, (val & 0x1e) >> 1);		if (val & 1) {			/* nicam synced */			switch ((val & 0x1e) >> 1)  {			case 0:			case 8:				rxsubchans = V4L2_TUNER_SUB_STEREO;				break;			case 1:			case 9:				rxsubchans = V4L2_TUNER_SUB_MONO					| V4L2_TUNER_SUB_LANG1;				break;			case 2:			case 10:				rxsubchans = V4L2_TUNER_SUB_MONO					| V4L2_TUNER_SUB_LANG1					| V4L2_TUNER_SUB_LANG2;				break;			default:				rxsubchans = V4L2_TUNER_SUB_MONO;				break;			}			newnicam=1;		} else {			newnicam = 0;			rxsubchans = V4L2_TUNER_SUB_MONO;		}		break;	case MSP_MODE_BTSC:		val = msp3400c_read(client, I2C_MSP3400C_DEM, 0x200);		dprintk(KERN_DEBUG			"msp3410: status=0x%x (pri=%s, sec=%s, %s%s%s)\n",			val,			(val & 0x0002) ? "no"     : "yes",			(val & 0x0004) ? "no"     : "yes",			(val & 0x0040) ? "stereo" : "mono",			(val & 0x0080) ? ", nicam 2nd mono" : "",			(val & 0x0100) ? ", bilingual/SAP"  : "");		rxsubchans = V4L2_TUNER_SUB_MONO;		if (val & 0x0040) rxsubchans |= V4L2_TUNER_SUB_STEREO;		if (val & 0x0100) rxsubchans |= V4L2_TUNER_SUB_LANG1;		break;	}	if (rxsubchans != msp->rxsubchans) {		update = 1;		dprintk(KERN_DEBUG "msp34xx: watch: rxsubchans %d => %d\n",			msp->rxsubchans,rxsubchans);		msp->rxsubchans = rxsubchans;	}	if (newnicam != msp->nicam_on) {		update = 1;		dprintk(KERN_DEBUG "msp34xx: watch: nicam %d => %d\n",			msp->nicam_on,newnicam);		msp->nicam_on = newnicam;	}	return update;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6df840f20d1ff63fd13ed1bb3e186395ee800794/msp3400.c/buggy/drivers/media/video/msp3400.c