/* During initialisation, we need to reset the analog switch. We also preset the switch to map the 4 connectors on the card to the  */
static void kodicom4400r_init(struct bttv *btv)
/* During initialisation, we need to reset the analog switch. We also preset the switch to map the 4 connectors on the card to the  */
static void kodicom4400r_init(struct bttv *btv)
{
	char *sw_status = (char *)(&btv->mbox_we);
	int ix;
	gpio_inout(0x0003ff, 0x0003ff);
	gpio_write(1 << 9);
	gpio_write(0);
	for (ix = 0; ix < 4; ix++) {
		sw_status[ix] = ix;
		kodicom4400r_write(btv, ix, ix, 1);
	}
	if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3))
	    return;
	master[btv->c.nr-1] = btv;
	master[btv->c.nr]   = btv;
	master[btv->c.nr+1] = btv;
	master[btv->c.nr+2] = btv;
}