summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-10-27 17:54:36 -0400
committerAdam Jackson <ajax@redhat.com>2008-10-27 17:54:36 -0400
commitb5f33108fea77280c9acd219954f20401f760faf (patch)
tree06f6487e898275e5e1a014c9307b73d33c2885b3
parente387bf31aae78d4447b4af555a8d09f79f72e6e7 (diff)
Adjust the nv34 panel tweak for Toshiba Tecra M2.
-rw-r--r--src/nv_dac.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/nv_dac.c b/src/nv_dac.c
index b1049cc..a256d0a 100644
--- a/src/nv_dac.c
+++ b/src/nv_dac.c
@@ -42,8 +42,21 @@ NVDACPanelTweaks(NVPtr pNv, NVRegPtr state)
we can do is experiment and apply hacks. */
if(((pNv->Chipset & 0xffff) == 0x0328) && (state->bpp == 32)) {
- /* At least one NV34 laptop needs this workaround. */
- tweak = -1;
+#if XSERVER_LIBPCIACCESS
+ if (((pNv->PciInfo->subvendor_id & 0xffff) == 0x1179) &&
+ ((pNv->PciInfo->subdevice_id & 0xffff) == 0x0020))
+#else
+ if (((pNv->PciInfo->subsysVendor & 0xffff) == 0x1179) &&
+ ((pNv->PciInfo->subsysCard & 0xffff) == 0x0020))
+#endif
+ {
+
+ /* Toshiba Tecra M2 */
+ tweak = 1;
+ } else {
+ /* At least one NV34 laptop needs this workaround. */
+ tweak = -1;
+ }
}
if((pNv->Chipset & 0xfff0) == 0x0310) {