rem: if (si->ps.secondary_head)
add: if (si->ps.secondary_head && (si->ps.card_type > NV15))
context: status_t BT_setmode(display_mode target){	uint8 tvmode, monstat;	/* enable flickerfilter in desktop modes, disable it in video modes. */	uint8 ffilter = 0;	/* use a display_mode copy because we might tune it for TVout compatibility */	display_mode tv_target = target;	/* preset new TVout mode */	tvmode = BT_check_tvmode(tv_target);	if (!tvmode) return B_ERROR;	/* read current output devices connection status */	BT_read_monstat(&monstat);	/* (pre)set TV mode */	/* note:	 * Manual config is non-dependent of the state of the PAL hardware input pin;	 * Also SDA lockups occur when setting EN_XCLK after autoconfig!	 * Make sure PAL_MD=0 for NTSC and PAL_MD = 1 for PAL... */	switch (tvmode)	{	case NTSC640:	case NTSC640_TST:		ffilter = 1;		BT_init_NTSC640();		break;	case NTSC800:		ffilter = 1;		BT_init_NTSC800();		break;	case PAL640:		ffilter = 1;		BT_init_PAL640();		break;	case PAL800:	case PAL800_TST:		ffilter = 1;		BT_init_PAL800();		break;	case NTSC640_OS:		BT_init_NTSC640_OS();		break;	case PAL800_OS:		BT_init_PAL800_OS();		break;	case NTSC720:		BT_init_NTSC720();		break;	case PAL720:		BT_init_PAL720();		break;	}	/* modify BT Hphase signal to center TV image... */	BT_setup_hphase(tvmode);	/* disable Macro mode */	switch (tvmode)	{	case NTSC640:	case NTSC640_TST:	case NTSC800:	case NTSC640_OS:	case NTSC720:		/* NTSC */		BT_set_macro (0, 0);		break;	default:		/* PAL */		BT_set_macro (1, 0);		break;	}	/* setup output signal routing and flickerfilter *///fixme: add output force settings in nv.settings, defaulting to autodetect.	BT_setup_output(monstat, 0, ffilter);	/* update the GPU CRTC timing for the requested mode */	BT_update_mode_for_gpu(&tv_target, tvmode);	/* setup GPU CRTC timing */	head1_set_timing(tv_target);//fixme: only testing singlehead cards for now...if (si->ps.secondary_head){	BT_testsignal();	return B_OK;}	/* now set GPU CRTC to slave mode */	BT_start_tvout();//fixme: add code to disable VGA screen when TVout enabled//(use via nv.setting preset)	return B_OK;}