From 4cb3516ecb7c6f91c89caf70e5155229cff9334e Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Fri, 20 Mar 2009 10:46:52 +0800 Subject: [PATCH] Skip LVDS config VBT parsing for older BDB version This is not officially got from VBIOS spec, but from my tests here. The smallest version of BDB which has valid LVDS config bits is 1.22 on IBM R52 915GM. --- src/i830_bios.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/i830_bios.c b/src/i830_bios.c index 9b13bf4..f5d011a 100644 --- a/src/i830_bios.c +++ b/src/i830_bios.c @@ -181,6 +181,10 @@ parse_driver_feature(I830Ptr pI830, struct bdb_header *bdb) if (!IS_I9XX(pI830)) return; + /* skip on old VBIOS, BDB version before 1.22 */ + if (bdb->version < 122) + return; + feature = find_section(bdb, BDB_DRIVER_FEATURES); if (!feature) return; -- 1.6.2