/* needed by RemoteVideo MX */ 
/* needed by RemoteVideo MX */ 
video_mux(struct bttv *btv, unsigned int input){	int mux,mask2;	if (input >= bttv_tvcards[btv->c.type].video_inputs)		return -EINVAL;        /* needed by RemoteVideo MX */	mask2 = bttv_tvcards[btv->c.type].gpiomask2;	if (mask2)		gpio_inout(mask2,mask2);	if (input == btv->svhs)  {		btor(BT848_CONTROL_COMP, BT848_E_CONTROL);		btor(BT848_CONTROL_COMP, BT848_O_CONTROL);	} else {		btand(~BT848_CONTROL_COMP, BT848_E_CONTROL);		btand(~BT848_CONTROL_COMP, BT848_O_CONTROL);	}	mux = bttv_tvcards[btv->c.type].muxsel[input] & 3;	btaor(mux<<5, ~(3<<5), BT848_IFORM);	dprintk(KERN_DEBUG "bttv%d: video mux: input=%d mux=%d\n",		btv->c.nr,input,mux);	/* card specific hook */	if(bttv_tvcards[btv->c.type].muxsel_hook)		bttv_tvcards[btv->c.type].muxsel_hook (btv, input);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/bttv-driver.c/clean/drivers/media/video/bttv-driver.c