Skip to content

Commit

Permalink
Made reg 0x53 (read only) default temp val to 0x70 to satisfy xgaaido…
Browse files Browse the repository at this point in the history
…s.sys's detection.

Apparently MCA Audio cards always want auto-init enabled.
  • Loading branch information
TC1995 committed Jul 19, 2022
1 parent d3350fa commit 8767bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ dma_channel_read(int channel)
dma_sg_next_addr(dma_c);
else {
tc = 1;
if (dma_c->mode & 0x10) { /*Auto-init*/
if ((dma_c->mode & 0x10) || dma_ps2.is_ps2) { /*Auto-init*/
dma_c->cc = dma_c->cb;
dma_c->ac = dma_c->ab;
} else
Expand Down Expand Up @@ -1536,7 +1536,7 @@ dma_channel_write(int channel, uint16_t val)
if (dma_advanced && (dma_c->sg_status & 1) && !(dma_c->sg_status & 6))
dma_sg_next_addr(dma_c);
else {
if (dma_c->mode & 0x10) { /*Auto-init*/
if ((dma_c->mode & 0x10) || dma_ps2.is_ps2) { /*Auto-init*/
dma_c->cc = dma_c->cb;
dma_c->ac = dma_c->ab;
} else
Expand Down
2 changes: 1 addition & 1 deletion src/video/vid_xga.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ xga_ext_inb(uint16_t addr, void *p)
ret = 0x0b;
break;
case 0x53:
ret = 0xb0;
ret = 0x70;
break;
case 0x54:
ret = xga->clk_sel_1;
Expand Down

0 comments on commit 8767bb5

Please sign in to comment.