summaryrefslogtreecommitdiff
path: root/src/radeon_atombios.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-12-30 06:50:54 +1000
committerDave Airlie <airlied@linux.ie>2008-12-30 06:50:54 +1000
commit837f7e8a48ea35d21de24b620830a2c6db854861 (patch)
tree1130ff8c50a7f02be0f65ebfad1457bf8af51340 /src/radeon_atombios.c
parent45f8b911659dba7f43b9b70bde4b9c3be51b0b5b (diff)
atombios: endian fix in r600 object table handling
This fixes the r600 object table on r600.
Diffstat (limited to 'src/radeon_atombios.c')
-rw-r--r--src/radeon_atombios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_atombios.c b/src/radeon_atombios.c
index 43f2c18f..1ca9f86f 100644
--- a/src/radeon_atombios.c
+++ b/src/radeon_atombios.c
@@ -1644,8 +1644,8 @@ RADEONGetATOMConnectorInfoFromBIOSObject (ScrnInfoPtr pScrn)
for (j = 0; j < SrcDstTable->ucNumberOfSrc; j++) {
uint8_t sobj_id;
- sobj_id = (SrcDstTable->usSrcObjectID[j] & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT;
- ErrorF("src object id %04x %d\n", SrcDstTable->usSrcObjectID[j], sobj_id);
+ sobj_id = (le16_to_cpu(SrcDstTable->usSrcObjectID[j]) & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT;
+ ErrorF("src object id %04x %d\n", le16_to_cpu(SrcDstTable->usSrcObjectID[j]), sobj_id);
switch(sobj_id) {
case ENCODER_OBJECT_ID_INTERNAL_LVDS: