mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-12 11:31:16 +00:00
appleramdac: vendor ID for AT&T fabbed RAMDACs.
This commit is contained in:
parent
1c5009fcb0
commit
c22843f238
@ -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));
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user