xf86-video-voodoo/0007-voodoo_find_dac-doesn-t-check-device_ids-2.patch
Stefan Dirsch 89f97d561d - 0001-gitlab-CI-ensure-libtool-is-installed-in-build-conta.patch
0002-configure-Use-LT_INIT-from-libtool-2-instead-of-depr.patch
  0003-Add-X.Org-s-standard-C-warning-flags-to-AM_CFLAGS.patch
  0004-Quiet-Wredundant-decls-from-xorg-os.h-fallbacks-for-.patch
  0005-Fix-3-Wunused-but-set-variable-warnings.patch
  0006-Fix-4-Wunused-variable-warnings.patch
  0007-voodoo_find_dac-doesn-t-check-device_ids-2.patch
  0008-use-XNFalloc-instead-of-xnfalloc.patch
  0009-use-XNFcallocarray-instead-of-xnfcalloc-macro.patch
  0010-bump-minimal-xorg-version-to-1.18.patch
  0011-drop-compat-with-ancient-xserver-versions.patch
  0012-Drop-ifdefs-for-ABI_VIDEODRV_VERSION-6.patch
  0013-Remove-XAA-support.patch
  0014-drop-dead-code.patch
  0015-drop-remains-of-old-compat-code.patch
  * latest changes to fix build against current xserver

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xf86-video-voodoo?expand=0&rev=15
2024-12-11 16:16:03 +00:00

32 lines
1.0 KiB
Diff

From 3065954a83c966901baecf686619e6679833632f Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Tue, 16 Jan 2024 16:38:58 -0800
Subject: [PATCH 07/15] voodoo_find_dac doesn't check device_ids (#2)
Closes: #2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
---
src/voodoo_hardware.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/voodoo_hardware.c b/src/voodoo_hardware.c
index 8dcfb63..d1463e7 100644
--- a/src/voodoo_hardware.c
+++ b/src/voodoo_hardware.c
@@ -389,10 +389,10 @@ static int voodoo_find_dac(VoodooPtr pVoo)
device_id = dac_in(pVoo, 2);
/* AT&T 20C409 and clones */
- if(vendor_id == DAC_VENDOR_ATT && DAC_DEVICE_ATT20C409)
+ if(vendor_id == DAC_VENDOR_ATT && device_id == DAC_DEVICE_ATT20C409)
return DAC_ID_ATT;
- if(vendor_id == DAC_VENDOR_TI && DAC_DEVICE_TITVP3409)
+ if(vendor_id == DAC_VENDOR_TI && device_id == DAC_DEVICE_TITVP3409)
return DAC_ID_TI;
/* ICS5432 doesn't implement the back door. Glide does some
--
2.43.0