Fix for the fixate problem on the Yamaha burners.

This commit is contained in:
Søren Schmidt 2001-05-29 17:19:42 +00:00
parent 13fc877343
commit c9cc17cc67
2 changed files with 2 additions and 4 deletions

View File

@ -1388,7 +1388,7 @@ acd_close_disk(struct acd_softc *cdp, int multisession)
else
param.session_type = CDR_SESS_NONE;
if ((error = acd_mode_select(cdp, (caddr_t)&param, sizeof(param))))
if ((error = acd_mode_select(cdp, (caddr_t)&param, param.page_length + 10)))
return error;
error = atapi_queue_cmd(cdp->atp, ccb, NULL, 0, 0, 30, NULL, NULL);
@ -1486,7 +1486,7 @@ acd_open_track(struct acd_softc *cdp, struct cdr_track *track)
break;
}
return acd_mode_select(cdp, (caddr_t)&param, sizeof(param));
return acd_mode_select(cdp, (caddr_t)&param, param.page_length + 10);
}
static int

View File

@ -261,12 +261,10 @@ struct write_param {
u_int8_t sub_hdr_byte1;
u_int8_t sub_hdr_byte2;
u_int8_t sub_hdr_byte3;
/*
u_int8_t vendor_specific_byte0;
u_int8_t vendor_specific_byte1;
u_int8_t vendor_specific_byte2;
u_int8_t vendor_specific_byte3;
*/
} __attribute__((packed));
/* CDROM Read Track Information structure */