Avoided self contradicting result of ATIP speed inquiry

This commit is contained in:
Thomas Schmitt 2006-12-27 13:28:40 +00:00
parent b6c332d9be
commit 49cc49e118
2 changed files with 11 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.12.27.130239" #define Cdrskin_timestamP "2006.12.27.132653"

View File

@ -636,12 +636,20 @@ void mmc_read_atip(struct burn_drive *d)
d->start_lba= burn_msf_to_lba(data[8],data[9],data[10]); d->start_lba= burn_msf_to_lba(data[8],data[9],data[10]);
d->end_lba= burn_msf_to_lba(data[12],data[13],data[14]); d->end_lba= burn_msf_to_lba(data[12],data[13],data[14]);
if (data[6]&4) { if (data[6]&4) {
if (speed_value[(data[16]>>4)&7] > 0) if (speed_value[(data[16]>>4)&7] > 0) {
d->mdata->min_write_speed = d->mdata->min_write_speed =
speed_value[(data[16]>>4)&7]; speed_value[(data[16]>>4)&7];
if (speed_value[(data[16])&15] > 0) if (speed_value[(data[16])&15] <= 0)
d->mdata->max_write_speed =
speed_value[(data[16]>>4)&7];
}
if (speed_value[(data[16])&15] > 0) {
d->mdata->max_write_speed = d->mdata->max_write_speed =
speed_value[(data[16])&15]; speed_value[(data[16])&15];
if (speed_value[(data[16]>>4)&7] <= 0)
d->mdata->min_write_speed =
speed_value[(data[16])&15];
}
} }
#ifdef Burn_mmc_be_verbous_about_atiP #ifdef Burn_mmc_be_verbous_about_atiP