mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
Modified:
programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c
Some of the newer Radeons (R420 for example) have MM_TABLE's with size 0x33
(instead of 0x0c that we know). Furthermore, they lockup during access
of I2C bus !
Add a check to validate MM_TABLE. Note: the check is not more stringent as
other card manufacturers (like Asus or Tekram) might make cards with
slightly different MM_TABLE.
This commit is contained in:
@@ -4284,6 +4284,16 @@ static Bool RADEONPreInitXv(ScrnInfoPtr pScrn)
|
||||
info->MM_TABLE.input[2],
|
||||
info->MM_TABLE.input[3],
|
||||
info->MM_TABLE.input[4]);
|
||||
|
||||
/* Is it an MM_TABLE we know about ? */
|
||||
if(info->MM_TABLE.table_size != 0xc){
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "This card has MM_TABLE we do not recognize.\n"
|
||||
"\t\tIf your card is TV-in capable you will need to specify options RageTheatreCrystal, RageTheatreTunerPort, \n"
|
||||
"\t\tRageTheatreSVideoPort and TunerType in /etc/X11/xorg.conf.\n"
|
||||
);
|
||||
info->MM_TABLE_valid = FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
info->MM_TABLE_valid = TRUE;
|
||||
} else {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "No MM_TABLE found - assuming card is not TV-in capable (mm_table=%d).\n", mm_table);
|
||||
|
||||
Reference in New Issue
Block a user