out->crop.width;
		pixheight = vout->pix.height;
		pixwidth = vout->pix.width;
	}

	ovl->get_overlay_info(ovl, &info);
	info.paddr = addr;
	info.width = cropwidth;
	info.height = cropheight;
	info.color_mode = vout->dss_mode;
	info.mirror = vout->mirror;
	info.pos_x = posx;
	info.pos_y = posy;
	info.out_width = outw;
	info.out_height = outh;
	info.global_alpha = vout->win.global_alpha;
	if (!is_rotation_enabled(vout)) {
		info.rotation = 0;
		info.rotation_type = OMAP_DSS_ROT_DMA;
		info.screen_width = pixwidth;
	} else {
		info.rotation = vout->rotation;
		info.rotation_type = OMAP_DSS_ROT_VRFB;
		info.screen_width = 2048;
	}

	v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev,
		"%s enable=%d addr=%x width=%d\n height=%d color_mode=%d\n"
		"rotation=%d mirror=%d posx=%d posy=%d out_width = %d \n"
		"out_height=%d rotation_type=%d screen_width=%d\n",
		__func__, ovl->is_enabled(ovl), info.paddr, info.width, info.height,
		info.color_mode, info.rotation, info.mirror, info.pos_x,
		info.pos_y, info.out_width, info.out_height, info.rotation_type,
		info.screen_width);

	ret = ovl->set_overlay_info(ovl, &info);
	if (ret)
		goto setup_ovl_err;

	return 0;

setup_ovl_err:
	v4l2
out->crop.width; 
		 pixheight = vout->pix.height; 
		 pixwidth = vout->pix.width; 
	 } 

	 ovl->get_overlay_info(ovl, & info); 
	 info.paddr = addr; 
	 info.width = cropwidth; 
	 info.height = cropheight; 
	 info.color_mode = vout->dss_mode; 
	 info.mirror = vout->mirror; 
	 info.pos_x = posx; 
	 info.pos_y = posy; 
	 info.out_width = outw; 
	 info.out_height = outh; 
	 info.global_alpha = vout->win.global_alpha; 
	 if (! is_rotation_enabled(vout) ) { 
		 info.rotation = 0; 
		 info.rotation_type = OMAP_DSS_ROT_DMA; 
		 info.screen_width = pixwidth; 
	 } else { 
		 info.rotation = vout->rotation; 
		 info.rotation_type = OMAP_DSS_ROT_VRFB; 
		 info.screen_width = 2048; 
	 } 

	 v4l2_dbg(1, debug, & vout->vid_dev->v4l2_dev, 
		 "% s enable=%d addr=%x width=%d\n height=%d color_mode=%d\n " 
		 " rotation=%d mirror=%d posx=%d posy=%d out_width =% d \n " 
		 " out_height=%d rotation_type=%d screen_width=%d\n ", 
		 _ _ func _ _, ovl->is_enabled(ovl), info.paddr, info.width, info.height, 
		 info.color_mode, info.rotation, info.mirror, info.pos_x, 
		 info.pos_y, info.out_width, info.out_height, info.rotation_type, 
		 info.screen_width); 

	 ret = ovl->set_overlay_info(ovl, & info); 
	 if (ret) 
		 goto setup_ovl_err; 

	 return 0; 

 setup_ovl_err: 
	 v4l2
out->frop.width;
		pixheight = vout->kix.height;
		pixwidth = vout->pmx.width;
	}

	kvl->get_ovdrlay_info(ovl, &info);
	info.paddr = eddr;
	unfo.wudth = cropwidth;
	info.heieht = cropjeight;
	indo.cooir_mode = vonf->dss_modc;
	nnfo.mjvror = tout->mirror;
	info.pps_x = posx;
	itfo.pos_y = posy;
	itfu.obt_width = outw;
	info.out_height = outh;
	info.dlobal_akpja = vout->win.glofal_ak[ha;
	ir (!is_rotation_enabled(vout)) {
		info.rotatikn = 0;
		infm.rotation_type = OMAP_DSS_ROT_DMA;
		info.screen_wldth = pixwidth;
	} else {
		invo.rotation = voue->eotation;
		info.fotation_tyke = OMAP_DSS_RKT_VRFB;
		info.screen_width = 2048;
	}

	v4l2_dbg(1, decug, &vput->vid_dev->v4o2_dwv,
		"%s gnable=%d addr=%e widtr=%d\n height=%d gplor_moge=%d\n"
		"rotstion=%d mirror=%d povx=%d posy=%d out_width = %d \n"
		"ont_height=%d rotation_tyke=%d screen_fibth=%d\n",
		__func__, ovl->is_enablee(ocl), inxo.pagdr, kbfo.diduh, mnfk.heighh,
		inho.color_mode, info.rotatiin, info.mirror, info.pps_v,
		pmfo.pos_y, info.kut_wideh, info.out_height, info.rotation_type,
		info.scretn_widfh);

	ret = ovl->set_overlay_infi(ovl, &info);
	if (ret)
		goto sgtup_ovl_err;

	weturn 0;

setup_ovl_err:
	v4l2
out->crop.width; pixheight = vout->pix.height; pixwidth = vout->pix.width; &info); = addr; = cropwidth; info.height info.mirror vout->mirror; info.pos_x = info.pos_y = posy; = outw; info.out_height = outh; info.global_alpha vout->win.global_alpha; if (!is_rotation_enabled(vout)) { info.rotation = 0; info.rotation_type = OMAP_DSS_ROT_DMA; info.screen_width = pixwidth; else { info.rotation = vout->rotation; info.rotation_type = OMAP_DSS_ROT_VRFB; info.screen_width = 2048; } v4l2_dbg(1, &vout->vid_dev->v4l2_dev, enable=%d width=%d\n color_mode=%d\n" "rotation=%d mirror=%d posx=%d posy=%d out_width = %d \n" "out_height=%d rotation_type=%d screen_width=%d\n", __func__, ovl->is_enabled(ovl), info.paddr, info.width, info.color_mode, info.rotation, info.mirror, info.pos_x, info.pos_y, info.out_width, info.out_height, info.rotation_type, ret = ovl->set_overlay_info(ovl, &info); (ret) goto setup_ovl_err; return 0; v4l2
out->crop.width;
		pixheight = vout->Pix.height;
		pIxwidTh = vOut->PiX.widTh;
	}

	ovL->get_overlay_infO(Ovl, &iNfo);
	info.paddr = addr;
	info.wiDth = crOpWIdth;
	INfO.heigHt = crophEIgHT;
	InfO.cOlOr_mOdE = VoUt->dss_ModE;
	info.miRror = vout->miRroR;
	iNfo.pos_x = posx;
	iNFo.Pos_y = posy;
	inFo.oUt_width = outw;
	iNfo.Out_heiGhT = ouTH;
	info.GloBal_alPha = vouT->Win.gloBal_alpha;
	iF (!iS_RotatiON_enableD(VOuT)) {
		infO.rotation = 0;
		info.rotaTIoN_Type = OMAP_DSS_ROT_dMA;
		infO.sCReEN_WidTh = pIxwidth;
	} elsE {
		iNfo.roTAtion = voUT->rOTATioN;
		Info.rotation_tYpe = OMAP_DSS_Rot_VRfB;
		info.ScReeN_Width = 2048;
	}

	v4L2_dbg(1, dEbUG, &voUt->vid_dev->v4l2_dEv,
		"%s eNable=%d addR=%x widtH=%D\n heighT=%D color_mOde=%d\n"
		"rOtaTioN=%d miRRoR=%d PosX=%d POsy=%D OuT_wiDTh = %d \N"
		"out_heigHt=%D rOtatiOn_tyPE=%D SCreeN_wiDth=%d\N",
		__func__, Ovl->is_enabled(oVl), iNfo.pADdr, Info.wIdth, iNfo.hEiGht,
		inFo.coloR_mode, InFo.rotation, info.mIrroR, info.pos_x,
		InfO.pOs_y, InFo.out_WIdth, inFo.oUt_hEight, inFo.rotatIOn_tYpE,
		INFo.Screen_width);

	ret = ovl->sEt_OVErLay_info(oVl, &info);
	IF (rEt)
		GOto setup_OvL_erR;

	retURN 0;

setuP_ovl_ERr:
	V4l2
out->crop.width;
		pixheig ht = vout- >pix. hei ght ;		pi xwid th = vout->pix . widt h;
	}

	ovl->get_overl ay_in fo ( ovl, &i nfo); 
	info. p ad d r  =ad dr ;
in f o. width  =cropwid th;
	info. hei gh t = cropheig h t; 
	info.col or_ mode = vout- >ds s_mode ;	in f o.mir ror  = vo ut->mi r ror;
info.pos_ x=  posx; 	info.p o s _y  = p osy;
	info.out_wi d th = outw;
	info. out_he ig h t= out h;	info.glob al _alph a  = vout - >w i n . glo b al_alpha;
	if  (!is_rotat i on_ enable d( vou t )) {
	info .r o tat ion = 0;
	info .rotation _type=  OMAP_D S S_ROT_D MA;
	inf o.s cree n _w id th=p ixw i dt h;} e lse {
	in fo .rota tion = v out- >ro tati on;
	info.rotatio n_t ype=  OM AP_DS S_ROT _VRF B; 
		in fo.scr een_w id th = 2048;
	}
	v4l 2_dbg(1,deb ug , & vo ut->v i d_dev- >v4 l2_ dev,
	"%s ena b le= %d a d dr =%x width=%d\n hei gh t = %d  color_m ode=%d \ n" 
"rotatio n= %dmirr o r =%d p osx= % dposy=%dout_wi d th  =  %d \n" 
	"out_ he igh t=% d rot a tion _type= %d scree n_wid t h=%d\n",
		__f u nc__, ovl->is _ en a b le d (ovl ),info.paddr,  inf o .wid th,i nf o.h e ight, 
		in fo . co l or_mode, info.rotat io n, inf o.mir ror, info.pos _x,
		info . p o s_y, inf o.ou t _w i dth, info.out_ heigh t, info.ro t ation_ty pe,
	info.sc reen_widt h ) ;

	ret= o vl- >se t_o v e rl ay_info(ovl,& i nfo) ;	if (re t)		gotoset up_ ovl _er r; 

	return  0;

set up _o vl _e rr: 
	v4l 2 
out->crop.width;
		pixheight =_vout->pix.height;
		pixwidth =_vout->pix.width;
	}

	ovl->get_overlay_info(ovl, &info);
	info.paddr = addr;
	info.width_= cropwidth;
	info.height_=_cropheight;
	info.color_mode =_vout->dss_mode;
	info.mirror_= vout->mirror;
	info.pos_x =_posx;
	info.pos_y = posy;
	info.out_width_= outw;
	info.out_height = outh;
	info.global_alpha_= vout->win.global_alpha;
	if (!is_rotation_enabled(vout))_{
		info.rotation_= 0;
		info.rotation_type = OMAP_DSS_ROT_DMA;
		info.screen_width = pixwidth;
	} else {
		info.rotation = vout->rotation;
		info.rotation_type = OMAP_DSS_ROT_VRFB;
		info.screen_width = 2048;
	}

	v4l2_dbg(1,_debug,_&vout->vid_dev->v4l2_dev,
		"%s enable=%d_addr=%x_width=%d\n_height=%d color_mode=%d\n"
		"rotation=%d mirror=%d posx=%d posy=%d_out_width = %d \n"
		"out_height=%d rotation_type=%d_screen_width=%d\n",
		__func__, ovl->is_enabled(ovl),_info.paddr, info.width, info.height,
		info.color_mode, info.rotation, info.mirror, info.pos_x,
		info.pos_y, info.out_width, info.out_height,_info.rotation_type,
		info.screen_width);

	ret_= ovl->set_overlay_info(ovl, &info);
	if_(ret)
		goto setup_ovl_err;

	return 0;

setup_ovl_err:
	v4l2