Removed excess logging related to ATAPI and CD-ROM IOCTL.

This commit is contained in:
OBattler
2016-08-03 16:46:18 +02:00
parent 9b30305bd1
commit 45f01cc67e
2 changed files with 5 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ static int get_track_nr(uint32_t pos)
static void ioctl_playaudio(uint32_t pos, uint32_t len, int ismsf) static void ioctl_playaudio(uint32_t pos, uint32_t len, int ismsf)
{ {
if (!cdrom_drive) return; if (!cdrom_drive) return;
pclog("Play audio - %08X %08X %i\n", pos, len, ismsf); // pclog("Play audio - %08X %08X %i\n", pos, len, ismsf);
if (ismsf) if (ismsf)
{ {
int m = (pos >> 16) & 0xff; int m = (pos >> 16) & 0xff;
@@ -131,7 +131,7 @@ static void ioctl_playaudio(uint32_t pos, uint32_t len, int ismsf)
s = (len >> 8) & 0xff; s = (len >> 8) & 0xff;
f = len & 0xff; f = len & 0xff;
len = MSFtoLBA(m, s, f); len = MSFtoLBA(m, s, f);
pclog("MSF - pos = %08X len = %08X\n", pos, len); // pclog("MSF - pos = %08X len = %08X\n", pos, len);
} }
else else
len += pos; len += pos;
@@ -143,7 +143,7 @@ static void ioctl_playaudio(uint32_t pos, uint32_t len, int ismsf)
ioctl_cd_pos = 150; ioctl_cd_pos = 150;
} }
ioctl_cd_state = CD_PLAYING; ioctl_cd_state = CD_PLAYING;
pclog("Audio start %08X %08X %i %i %i\n", ioctl_cd_pos, ioctl_cd_end, ioctl_cd_state, cd_buflen, len); // pclog("Audio start %08X %08X %i %i %i\n", ioctl_cd_pos, ioctl_cd_end, ioctl_cd_state, cd_buflen, len);
/* CDROM_PLAY_AUDIO_MSF msf; /* CDROM_PLAY_AUDIO_MSF msf;
long size; long size;
BOOL b; BOOL b;

View File

@@ -1839,7 +1839,7 @@ void callbackide(int ide_board)
} }
else if (ide->packetstatus == ATAPI_STATUS_REQ_SENSE) /*REQUEST SENSE callback #1*/ else if (ide->packetstatus == ATAPI_STATUS_REQ_SENSE) /*REQUEST SENSE callback #1*/
{ {
pclog("REQUEST SENSE callback #1: setting status to 0x5A\n"); // pclog("REQUEST SENSE callback #1: setting status to 0x5A\n");
ide->atastat = 0x58 | (ide->atastat & ERR_STAT); ide->atastat = 0x58 | (ide->atastat & ERR_STAT);
ide_irq_raise(ide); ide_irq_raise(ide);
} }
@@ -2148,7 +2148,7 @@ static void atapicommand(int ide_board)
int ret; int ret;
#ifndef RPCEMU_IDE #ifndef RPCEMU_IDE
pclog("New ATAPI command %02X %i\n",idebufferb[0],ins); // pclog("New ATAPI command %02X %i\n",idebufferb[0],ins);
#endif #endif
// readflash=1; // readflash=1;
msf=idebufferb[1]&2; msf=idebufferb[1]&2;