/* set planar and packed mode trigger points and         */ /* set rising edge of inverted GPINTR pin as irq trigger */ btwrite(BT848_GPIO_DMA_CTL_PKTP_32| BT848_GPIO_DMA_CTL_PLTP1_16| BT848_GPIO_DMA_CTL_PLTP23_16| BT848_GPIO_DMA_CTL_GPINTC| BT848_GPIO_DMA_CTL_GPINTI, BT848_GPIO_DMA_CTL); 
/* set planar and packed mode trigger points and         */ /* set rising edge of inverted GPINTR pin as irq trigger */ btwrite(BT848_GPIO_DMA_CTL_PKTP_32| BT848_GPIO_DMA_CTL_PLTP1_16| BT848_GPIO_DMA_CTL_PLTP23_16| BT848_GPIO_DMA_CTL_GPINTC| BT848_GPIO_DMA_CTL_GPINTI, BT848_GPIO_DMA_CTL); 
static void init_bt848(struct bttv *btv){	int val;	if (bttv_tvcards[btv->c.type].no_video) {		/* very basic init only */		init_irqreg(btv);		return;	}	btwrite(0x00, BT848_CAP_CTL);	btwrite(BT848_COLOR_CTL_GAMMA, BT848_COLOR_CTL);	btwrite(BT848_IFORM_XTAUTO | BT848_IFORM_AUTO, BT848_IFORM);        /* set planar and packed mode trigger points and         */        /* set rising edge of inverted GPINTR pin as irq trigger */        btwrite(BT848_GPIO_DMA_CTL_PKTP_32|                BT848_GPIO_DMA_CTL_PLTP1_16|                BT848_GPIO_DMA_CTL_PLTP23_16|                BT848_GPIO_DMA_CTL_GPINTC|                BT848_GPIO_DMA_CTL_GPINTI,                BT848_GPIO_DMA_CTL);	val = btv->opt_chroma_agc ? BT848_SCLOOP_CAGC : 0;        btwrite(val, BT848_E_SCLOOP);        btwrite(val, BT848_O_SCLOOP);        btwrite(0x20, BT848_E_VSCALE_HI);        btwrite(0x20, BT848_O_VSCALE_HI);        btwrite(BT848_ADC_RESERVED | (btv->opt_adc_crush ? BT848_ADC_CRUSH : 0),		BT848_ADC);	btwrite(whitecrush_upper, BT848_WC_UP);	btwrite(whitecrush_lower, BT848_WC_DOWN);	if (btv->opt_lumafilter) {		btwrite(0, BT848_E_CONTROL);		btwrite(0, BT848_O_CONTROL);	} else {		btwrite(BT848_CONTROL_LDEC, BT848_E_CONTROL);		btwrite(BT848_CONTROL_LDEC, BT848_O_CONTROL);	}	bt848_bright(btv,   btv->bright);	bt848_hue(btv,      btv->hue);	bt848_contrast(btv, btv->contrast);	bt848_sat(btv,      btv->saturation);        /* interrupt */	init_irqreg(btv);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/bttv-driver.c/buggy/drivers/media/video/bttv-driver.c