case V4L2_CID_VFLIP: 
case V4L2_CID_HFLIP: 
static int set_control(struct saa7134_dev *dev, struct saa7134_fh *fh,		       struct v4l2_control *c){	const struct v4l2_queryctrl* ctrl;	unsigned long flags;	int restart_overlay = 0;	ctrl = ctrl_by_id(c->id);	if (NULL == ctrl)		return -EINVAL;	dprintk("set_control name=%s val=%d\n",ctrl->name,c->value);	switch (ctrl->type) {	case V4L2_CTRL_TYPE_BOOLEAN:	case V4L2_CTRL_TYPE_MENU:	case V4L2_CTRL_TYPE_INTEGER:		if (c->value < ctrl->minimum)			c->value = ctrl->minimum;		if (c->value > ctrl->maximum)			c->value = ctrl->maximum;		break;	default:		/* nothing */;	};	switch (c->id) {	case V4L2_CID_BRIGHTNESS:		dev->ctl_bright = c->value;		saa_writeb(SAA7134_DEC_LUMA_BRIGHT, dev->ctl_bright);		break;	case V4L2_CID_HUE:		dev->ctl_hue = c->value;		saa_writeb(SAA7134_DEC_CHROMA_HUE, dev->ctl_hue);		break;	case V4L2_CID_CONTRAST:		dev->ctl_contrast = c->value;		saa_writeb(SAA7134_DEC_LUMA_CONTRAST,			   dev->ctl_invert ? -dev->ctl_contrast : dev->ctl_contrast);		break;	case V4L2_CID_SATURATION:		dev->ctl_saturation = c->value;		saa_writeb(SAA7134_DEC_CHROMA_SATURATION,			   dev->ctl_invert ? -dev->ctl_saturation : dev->ctl_saturation);		break;	case V4L2_CID_AUDIO_MUTE:		dev->ctl_mute = c->value;		saa7134_tvaudio_setmute(dev);		break;	case V4L2_CID_AUDIO_VOLUME:		dev->ctl_volume = c->value;		saa7134_tvaudio_setvolume(dev,dev->ctl_volume);		break;	case V4L2_CID_PRIVATE_INVERT:		dev->ctl_invert = c->value;		saa_writeb(SAA7134_DEC_LUMA_CONTRAST,			   dev->ctl_invert ? -dev->ctl_contrast : dev->ctl_contrast);		saa_writeb(SAA7134_DEC_CHROMA_SATURATION,			   dev->ctl_invert ? -dev->ctl_saturation : dev->ctl_saturation);		break;	case V4L2_CID_VFLIP:		dev->ctl_mirror = c->value;		restart_overlay = 1;		break;	case V4L2_CID_PRIVATE_Y_EVEN:		dev->ctl_y_even = c->value;		restart_overlay = 1;		break;	case V4L2_CID_PRIVATE_Y_ODD:		dev->ctl_y_odd = c->value;		restart_overlay = 1;		break;	case V4L2_CID_PRIVATE_AUTOMUTE:		dev->ctl_automute = c->value;		if (dev->tda9887_conf) {			if (dev->ctl_automute)				dev->tda9887_conf |= TDA9887_AUTOMUTE;			else				dev->tda9887_conf &= ~TDA9887_AUTOMUTE;			saa7134_i2c_call_clients(dev, TDA9887_SET_CONFIG,						 &dev->tda9887_conf);		}		break;	default:		return -EINVAL;	}	if (restart_overlay && fh && res_check(fh, RESOURCE_OVERLAY)) {		spin_lock_irqsave(&dev->slock,flags);		stop_preview(dev,fh);		start_preview(dev,fh);		spin_unlock_irqrestore(&dev->slock,flags);	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/f246a8172a9e403b78c34568f766990f1506a0ab/saa7134-video.c/clean/drivers/media/video/saa7134/saa7134-video.c