Changeset 43571 in vbox
- Timestamp:
- Oct 8, 2012 5:20:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r43570 r43571 3524 3524 { 3525 3525 case 0x0: /* All types. */ 3526 { 3527 uint32_t iLbaStart; 3528 3529 if (pbPacket[0] == SCSI_READ_CD) 3530 iLbaStart = atapiBE2H_U32(&pbPacket[2]); 3531 else 3532 iLbaStart = ataMSF2LBA(&pbPacket[3]) 3533 3534 if (s->pTrackList) 3535 s->cbATAPISector = ATAPIPassthroughTrackListGetSectorSizeFromLba(pTrackList, iLbaStart); 3526 if (ASMAtomicReadU32(&s->MediaTrackType) == ATA_MEDIA_TYPE_CDDA) 3527 s->cbATAPISector = 2352; 3536 3528 else 3537 3529 s->cbATAPISector = 2048; /* Might be incorrect if we couldn't determine the type. */ 3538 3530 break; 3539 }3540 3531 case 0x1: /* CD-DA */ 3541 3532 s->cbATAPISector = 2352;
Note:
See TracChangeset
for help on using the changeset viewer.