dev->crop_bounds.top     = (norm->vbi_v_stop+1)*2; 
dev->crop_bounds.top     = (norm->vbi_v_stop_0+1)*2; 
static void set_tvnorm(struct saa7134_dev *dev, struct saa7134_tvnorm *norm){	int luma_control,sync_control,mux;	dprintk("set tv norm = %s\n",norm->name);	dev->tvnorm = norm;	mux = card_in(dev,dev->ctl_input).vmux;	luma_control = norm->luma_control;	sync_control = norm->sync_control;	if (mux > 5)		luma_control |= 0x80; /* svideo */	if (noninterlaced || dev->nosignal)		sync_control |= 0x20;	/* setup cropping */	dev->crop_bounds.left    = norm->h_start;	dev->crop_defrect.left   = norm->h_start;	dev->crop_bounds.width   = norm->h_stop - norm->h_start +1;	dev->crop_defrect.width  = norm->h_stop - norm->h_start +1;	dev->crop_bounds.top     = (norm->vbi_v_stop+1)*2;	dev->crop_defrect.top    = norm->video_v_start*2;	dev->crop_bounds.height  = ((norm->id & V4L2_STD_525_60) ? 524 : 624)		- dev->crop_bounds.top;	dev->crop_defrect.height = (norm->video_v_stop - norm->video_v_start +1)*2;	dev->crop_current = dev->crop_defrect;	/* setup video decoder */	saa_writeb(SAA7134_INCR_DELAY,            0x08);	saa_writeb(SAA7134_ANALOG_IN_CTRL1,       0xc0 | mux);	saa_writeb(SAA7134_ANALOG_IN_CTRL2,       0x00);	saa_writeb(SAA7134_ANALOG_IN_CTRL3,       0x90);	saa_writeb(SAA7134_ANALOG_IN_CTRL4,       0x90);	saa_writeb(SAA7134_HSYNC_START,           0xeb);	saa_writeb(SAA7134_HSYNC_STOP,            0xe0);	saa_writeb(SAA7134_SOURCE_TIMING1,        norm->src_timing);	saa_writeb(SAA7134_SYNC_CTRL,             sync_control);	saa_writeb(SAA7134_LUMA_CTRL,             luma_control);	saa_writeb(SAA7134_DEC_LUMA_BRIGHT,       dev->ctl_bright);	saa_writeb(SAA7134_DEC_LUMA_CONTRAST,     dev->ctl_contrast);	saa_writeb(SAA7134_DEC_CHROMA_SATURATION, dev->ctl_saturation);	saa_writeb(SAA7134_DEC_CHROMA_HUE,        dev->ctl_hue);	saa_writeb(SAA7134_CHROMA_CTRL1,          norm->chroma_ctrl1);	saa_writeb(SAA7134_CHROMA_GAIN,           norm->chroma_gain);	saa_writeb(SAA7134_CHROMA_CTRL2,          norm->chroma_ctrl2);	saa_writeb(SAA7134_MODE_DELAY_CTRL,       0x00);	saa_writeb(SAA7134_ANALOG_ADC,            0x01);	saa_writeb(SAA7134_VGATE_START,           0x11);	saa_writeb(SAA7134_VGATE_STOP,            0xfe);	saa_writeb(SAA7134_MISC_VGATE_MSB,        norm->vgate_misc);	saa_writeb(SAA7134_RAW_DATA_GAIN,         0x40);	saa_writeb(SAA7134_RAW_DATA_OFFSET,       0x80);#ifdef V4L2_I2C_CLIENTS	saa7134_i2c_call_clients(dev,VIDIOC_S_STD,&norm->id);#else	{		/* pass down info to the i2c chips (v4l1) */		struct video_channel c;		memset(&c,0,sizeof(c));		c.channel = dev->ctl_input;		c.norm = VIDEO_MODE_PAL;		if (norm->id & V4L2_STD_NTSC)			c.norm = VIDEO_MODE_NTSC;		if (norm->id & V4L2_STD_SECAM)			c.norm = VIDEO_MODE_SECAM;		saa7134_i2c_call_clients(dev,VIDIOCSCHAN,&c);	}#endif}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/f246a8172a9e403b78c34568f766990f1506a0ab/saa7134-video.c/clean/drivers/media/video/saa7134/saa7134-video.c