448,6 → 448,7 |
return name; |
} |
|
void set_crtc(struct drm_crtc *crtc); |
|
bool set_mode(struct drm_device *dev, int width, int height) |
{ |
476,30 → 477,8 |
if(crtc == NULL) |
continue; |
|
/* |
list_for_each_entry(mode, &connector->modes, head) |
{ |
if (mode->type & DRM_MODE_TYPE_PREFERRED); |
break; |
}; |
|
struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); |
struct radeon_native_mode *native_mode = &radeon_encoder->native_mode; |
|
native_mode->panel_xres = mode->hdisplay; |
native_mode->panel_yres = mode->vdisplay; |
|
native_mode->hblank = mode->htotal - mode->hdisplay; |
native_mode->hoverplus = mode->hsync_start - mode->hdisplay; |
native_mode->hsync_width = mode->hsync_end - mode->hsync_start; |
native_mode->vblank = mode->vtotal - mode->vdisplay; |
native_mode->voverplus = mode->vsync_start - mode->vdisplay; |
native_mode->vsync_width = mode->vsync_end - mode->vsync_start; |
native_mode->dotclock = mode->clock; |
native_mode->flags = mode->flags; |
*/ |
list_for_each_entry(mode, &connector->modes, head) |
{ |
char *con_name, *enc_name; |
|
struct drm_framebuffer *fb; |
533,6 → 512,7 |
|
crtc->fb = fb; |
crtc->enabled = true; |
set_crtc(crtc); |
|
ret = drm_crtc_helper_set_mode(crtc, mode, 0, 0, fb); |
|