Don't smash fixed_mode if skip_panel_detect is set.

Without this change, setting LVDSFixedMode to false is not effective
as i830_bios_init calls i830_parse_panel_data which in turns sets
a fixed_mode. To fix this we still call parse_panel_data to set
the various lvds_options but we return before setting fixed_mode.
This commit is contained in:
Carl Worth 2008-12-04 11:41:02 -08:00
parent e8b95efbf5
commit ce7efc2e36
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ parse_panel_data(I830Ptr pI830, struct bdb_header *bdb)
lvds_lfp_data_ptrs->ptr[lvds_options->panel_type].dvo_timing_offset;
timing_ptr = (unsigned char *)bdb + timing_offset;
if (pI830->skip_panel_detect)
return;
fixed_mode = xnfalloc(sizeof(DisplayModeRec));
memset(fixed_mode, 0, sizeof(*fixed_mode));