All MODE SENSE and MODE SELECT commands now support the block descriptor when a CD-ROM drive is set to SCSI;
Fixed MODE SELECT behavior with ATAPI; Removed excess PIIX logging; Fixed and improved the CD Audio buffer code in sound.c.
This commit is contained in:
@@ -589,10 +589,23 @@ static int iso_is_track_audio(uint8_t id, uint32_t pos, int ismsf)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int iso_media_type_id(uint8_t id)
|
||||
{
|
||||
if (iso_size(id) <= 405000)
|
||||
{
|
||||
return 1; /* Data CD. */
|
||||
}
|
||||
else
|
||||
{
|
||||
return 65; /* DVD. */
|
||||
}
|
||||
}
|
||||
|
||||
static CDROM iso_cdrom =
|
||||
{
|
||||
iso_ready,
|
||||
iso_medium_changed,
|
||||
iso_media_type_id,
|
||||
NULL,
|
||||
NULL,
|
||||
iso_readtoc,
|
||||
|
||||
Reference in New Issue
Block a user