From c22843f238c9f623049b0a43a699a5db26aeebef Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Thu, 11 Apr 2024 16:56:10 +0200 Subject: [PATCH] appleramdac: vendor ID for AT&T fabbed RAMDACs. --- devices/video/appleramdac.cpp | 2 +- devices/video/appleramdac.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/video/appleramdac.cpp b/devices/video/appleramdac.cpp index 372ef76..bb6be7e 100644 --- a/devices/video/appleramdac.cpp +++ b/devices/video/appleramdac.cpp @@ -160,7 +160,7 @@ int AppleRamdac::get_dot_freq() { uint8_t n = this->clk_pn[this->pll_cr & 1] & 0x1F; double dot_freq; - if (this->dac_vendor == DACULA_VENDOR_OTHER) + if (this->dac_vendor == DACULA_VENDOR_ATT) dot_freq = 15000000.0f * (double)m / ((double)n + 2) / (double)(1 << p); else if (this->dac_vendor == DACULA_VENDOR_SIERRA) dot_freq = 14318180.0f * (double)m / ((double)n * (double)(1 << p)); diff --git a/devices/video/appleramdac.h b/devices/video/appleramdac.h index 4ac9143..f2ecaa6 100644 --- a/devices/video/appleramdac.h +++ b/devices/video/appleramdac.h @@ -36,7 +36,7 @@ enum DacFlavour { }; #define DACULA_VENDOR_SIERRA 0x3C // 14.3 MHz -#define DACULA_VENDOR_OTHER 0x84 // 15 MHz +#define DACULA_VENDOR_ATT 0x84 // 15 MHz constexpr auto VIDEO_XTAL = 14318180.0f; // external crystal oscillator frequency