Implemented ATAPI audio channel select. Based on patch from Battler.
This commit is contained in:
parent
99df1f6d87
commit
11eb87b436
2 changed files with 42 additions and 3 deletions
|
|
@ -538,6 +538,11 @@ static uint32_t ide_atapi_mode_sense(IDE *ide, uint32_t pos, uint8_t type)
|
|||
return pos;
|
||||
}
|
||||
|
||||
uint32_t atapi_get_cd_channel(int channel)
|
||||
{
|
||||
return (page_flags[GPMODE_CDROM_AUDIO_PAGE] & PAGE_CHANGED) ? mode_pages_in[GPMODE_CDROM_AUDIO_PAGE][channel ? 8 : 6] : (channel + 1);
|
||||
}
|
||||
|
||||
uint32_t atapi_get_cd_volume(int channel)
|
||||
{
|
||||
return (page_flags[GPMODE_CDROM_AUDIO_PAGE] & PAGE_CHANGED) ? mode_pages_in[GPMODE_CDROM_AUDIO_PAGE][channel ? 9 : 7] : 0xFF;
|
||||
|
|
@ -732,6 +737,8 @@ void resetide(void)
|
|||
cur_ide[1] = 2;
|
||||
|
||||
// ide_drives[1].type = IDE_CDROM;
|
||||
|
||||
page_flags[GPMODE_CDROM_AUDIO_PAGE] &= ~PAGE_CHANGED;
|
||||
}
|
||||
|
||||
int idetimes=0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue