Trying to fix bugs about BD-RE, macro for simulating BD-RE on DVD-RAM
This commit is contained in:
@ -46,6 +46,9 @@ extern struct libdax_msgs *libdax_messenger;
|
||||
static struct burn_drive drive_array[255];
|
||||
static int drivetop = -1;
|
||||
|
||||
/* ts A80410 : in init.c */
|
||||
extern int burn_support_untested_profiles;
|
||||
|
||||
/* ts A61021 : the unspecific part of sg.c:enumerate_common()
|
||||
*/
|
||||
int burn_setup_drive(struct burn_drive *d, char *fname)
|
||||
@ -2167,8 +2170,10 @@ int burn_disc_get_multi_caps(struct burn_drive *d, enum burn_write_types wt,
|
||||
wt == BURN_WRITE_TAO)
|
||||
o->might_simulate = 1;
|
||||
} else if (d->current_profile == 0x12 || d->current_profile == 0x13 ||
|
||||
d->current_profile == 0x1a) {
|
||||
/* DVD-RAM, overwriteable DVD-RW, DVD+RW */
|
||||
d->current_profile == 0x1a ||
|
||||
(d->current_profile == 0x43 &&
|
||||
burn_support_untested_profiles)) {
|
||||
/* DVD-RAM, overwriteable DVD-RW, DVD+RW, BD-RE */
|
||||
o->start_adr = 1;
|
||||
ret = burn_disc_get_formats(d, &status, &size, &dummy,
|
||||
&num_formats);
|
||||
|
@ -54,6 +54,10 @@ extern struct libdax_msgs *libdax_messenger;
|
||||
/* ts A70306 */
|
||||
#define Libburn_support_dvd_plus_R 1
|
||||
|
||||
/* ts A80410 : <<< Dangerous experiment: Pretend that DVD-RAM is BD-RE
|
||||
#define Libburn_dvd_ram_as_bd_rE yes
|
||||
*/
|
||||
|
||||
/* DVD progress report:
|
||||
ts A61219 : It seems to work with a used (i.e. thoroughly formatted) DVD+RW.
|
||||
Error messages of class DEBUG appear because of inability to
|
||||
@ -2107,9 +2111,16 @@ static int mmc_get_configuration_al(struct burn_drive *d, int *alloc_len)
|
||||
d->current_is_supported_profile = 1;
|
||||
#endif
|
||||
#ifdef Libburn_support_dvd_raM
|
||||
if (cp == 0x12 || (cp == 0x43 && burn_support_untested_profiles))
|
||||
if (cp == 0x12 || (cp == 0x43 && burn_support_untested_profiles)) {
|
||||
/* DVD-RAM , BD-RE */
|
||||
d->current_is_supported_profile = 1;
|
||||
|
||||
#ifdef Libburn_dvd_ram_as_bd_rE
|
||||
cp = d->current_profile = 0x43;
|
||||
strcpy(d->current_profile_text, mmc_obtain_profile_name(cp));
|
||||
#endif
|
||||
|
||||
}
|
||||
#endif
|
||||
#ifdef Libburn_support_dvd_r_seQ
|
||||
if (cp == 0x10 || cp == 0x11 || cp == 0x14) /* DVD-ROM,DVD-R,DVD-RW */
|
||||
|
Reference in New Issue
Block a user