fixed distortions on VGA output after TVout use (G100/G200).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17455 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -396,7 +396,7 @@ status_t SET_DISPLAY_MODE(display_mode *mode_to_set)
|
||||
}
|
||||
else
|
||||
{
|
||||
gx00_maven_shutoff_vid_pll();
|
||||
gx00_maven_shutoff();
|
||||
gx00_crtc_set_timing(target);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,6 @@ status_t gx00_maven_dpms(bool display, bool h, bool v)
|
||||
{
|
||||
/* turn off screen using a few methods! */
|
||||
MAVW(STABLE, 0x6a);
|
||||
// MAVW(TEST, 0x03);
|
||||
MAVW(OUTMODE, 0x00);
|
||||
}
|
||||
|
||||
@@ -226,16 +225,19 @@ status_t gx00_maven_mode(int mode,float brightness)
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
void gx00_maven_shutoff_vid_pll()
|
||||
void gx00_maven_shutoff()
|
||||
{
|
||||
switch (si->ps.card_type)
|
||||
{
|
||||
case G100:
|
||||
case G200:
|
||||
case G400:
|
||||
case G400MAX:
|
||||
//unfortunately doesn't work as expected :-/
|
||||
// MAVW(PIXPLLP, ((MAVR(PIXPLLP)) & ~0x80));
|
||||
//fixme: see if this works on G400 too:
|
||||
//case G400:
|
||||
//case G400MAX:
|
||||
/* prevents distortions on CRTC1... */
|
||||
MAVW(TEST, 0x03);
|
||||
MAVW(MONEN, 0x00);
|
||||
MAVW(MONSET, 0x00);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -70,7 +70,7 @@ status_t g100_g400max_maven_vid_pll_find(display_mode target,float * calc_pclk,
|
||||
uint8 * m_result,uint8 * n_result,uint8 * p_result);
|
||||
status_t g450_g550_maven_vid_pll_find(display_mode target,float * calc_pclk,
|
||||
uint8 * m_result,uint8 * n_result,uint8 * p_result, uint8 test);
|
||||
void gx00_maven_shutoff_vid_pll(void);
|
||||
void gx00_maven_shutoff(void);
|
||||
status_t gx00_maven_set_vid_pll(display_mode target);
|
||||
|
||||
/*MAVENTV functions*/
|
||||
|
||||
Reference in New Issue
Block a user