rem: cdrom->max_speed_read = cdrom_s->speed; if (cdrom_s->can_write_dvdr || cdrom_s->can_write_dvdram) { cdrom->type = CDDRIVE_TYPE_DVD_RECORDER; } else { cdrom->type = CDDRIVE_TYPE_CD_RECORDER;
add: cdrom->max_speed_read = cdrom_s->speed; if (cdrom_s->can_write_dvdr) { cdrom->type |= CDDRIVE_TYPE_DVD_RW_RECORDER;
context: add_linux_cd_recorder (GList *cdroms,		       struct cdrom_unit *cdrom_s,		       struct scsi_unit *scsi_units,		       int n_scsi_units){	int bus, id, lun;	CDDrive *cdrom;	cdrom = g_new0 (CDDrive, 1);	if (cdrom_s->device[0] == 's') {		cdrom->display_name = cdrom_get_name (cdrom_s, scsi_units,				n_scsi_units);		if (!get_cd_scsi_id (cdrom_s->device, &bus, &id, &lun)) {			return cdroms;		}		cdrom->cdrecord_id = g_strdup_printf ("%d,%d,%d",				bus, id, lun);		cdrom->max_speed_write = get_device_max_speed (cdrom->cdrecord_id);	} else {		/* kernel >=2.5 can write cd w/o ide-scsi */		cdrom->display_name = cdrom_get_name(cdrom_s, scsi_units, n_scsi_units);		cdrom->cdrecord_id = g_strdup_printf (cdrom_s->device);		cdrom->max_speed_write = get_device_max_speed (cdrom->cdrecord_id);	}	cdrom->device = g_strdup_printf ("/dev/%s", cdrom_s->device);	cdrom->max_speed_read = cdrom_s->speed; 	if (cdrom_s->can_write_dvdr	    || cdrom_s->can_write_dvdram) {		cdrom->type = CDDRIVE_TYPE_DVD_RECORDER;	} else {		cdrom->type = CDDRIVE_TYPE_CD_RECORDER;	}		return g_list_append (cdroms, cdrom);}