Corrected kB conversion factor to 176.4 with ATIP speed codes
This commit is contained in:
parent
6277678a8e
commit
13ecca61bc
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2006.12.27.125948"
|
||||
#define Cdrskin_timestamP "2006.12.27.130125"
|
||||
|
@ -612,8 +612,10 @@ void mmc_read_atip(struct burn_drive *d)
|
||||
My CD-R (>=24 speed) tell no A1.
|
||||
The higher non-MMC-1 values are hearsay.
|
||||
*/
|
||||
static int speed_value[16]= { 0, 2, 4, 6, 10, -5, 16, -7,
|
||||
24, 32, 40, 48, -12, -13, -14, -15};
|
||||
/* 0, 2, 4, 6, 10, -, 16, -, */
|
||||
static int speed_value[16]= { 0, 353, 706, 1059, 1764, -5, 2824, -7,
|
||||
4234, 5646, 7056, 8468, -12, -13, -14, -15};
|
||||
/* 24, 32, 40, 48, -, -, -, - */
|
||||
|
||||
mmc_function_spy("mmc_read_atip");
|
||||
memcpy(c.opcode, MMC_GET_ATIP, sizeof(MMC_GET_ATIP));
|
||||
@ -636,10 +638,10 @@ void mmc_read_atip(struct burn_drive *d)
|
||||
if (data[6]&4) {
|
||||
if (speed_value[(data[16]>>4)&7] > 0)
|
||||
d->mdata->min_write_speed =
|
||||
speed_value[(data[16]>>4)&7]*176;
|
||||
speed_value[(data[16]>>4)&7];
|
||||
if (speed_value[(data[16])&15] > 0)
|
||||
d->mdata->max_write_speed =
|
||||
speed_value[(data[16])&15]*176;
|
||||
speed_value[(data[16])&15];
|
||||
}
|
||||
|
||||
#ifdef Burn_mmc_be_verbous_about_atiP
|
||||
|
Loading…
Reference in New Issue
Block a user