When blocksize is set to 2352, alwas read 2352 bytes.

This means it might read more than just data, but that is exactly
what we want here (for reading VCD's fx)
This commit is contained in:
Søren Schmidt 2001-01-18 15:20:18 +00:00
parent 1abae7ee85
commit df32668400
1 changed files with 10 additions and 2 deletions

View File

@ -1175,9 +1175,17 @@ acd_start(struct atapi_softc *atp)
return;
}
}
if (blocksize == 2048)
switch (blocksize) {
case 2048:
ccb[0] = ATAPI_READ_BIG;
else {
break;
case 2352:
ccb[0] = ATAPI_READ_CD;
ccb[9] = 0xf8;
break;
default:
ccb[0] = ATAPI_READ_CD;
ccb[9] = 0x10;
}