Always considering mode page 2A when looking for min and max speed

This commit is contained in:
Thomas Schmitt 2013-03-05 18:54:19 +00:00
parent 0002873ca4
commit c81e6b8bf6
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2013.03.05.124508"
#define Cdrskin_timestamP "2013.03.05.185356"

View File

@ -2784,9 +2784,9 @@ void mmc_set_speed(struct burn_drive *d, int r, int w)
if (r <= 0 || w <= 0) {
/* ts A70712 : now searching for best speed descriptor */
if (w > 0 && r <= 0)
burn_drive_get_best_speed(d, r, &best_sd, 1);
burn_drive_get_best_speed(d, r, &best_sd, 1 | 2);
else
burn_drive_get_best_speed(d, w, &best_sd, 0);
burn_drive_get_best_speed(d, w, &best_sd, 2);
if (best_sd != NULL) {
w = best_sd->write_speed;
d->nominal_write_speed = w;