Rev 1222 | Rev 1233 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1222 | Rev 1230 | ||
---|---|---|---|
Line 446... | Line 446... | ||
446 | name[3] = 0; |
446 | name[3] = 0; |
Line 447... | Line 447... | ||
447 | 447 | ||
448 | return name; |
448 | return name; |
Line -... | Line 449... | ||
- | 449 | } |
|
Line 449... | Line 450... | ||
449 | } |
450 | |
450 | 451 | void set_crtc(struct drm_crtc *crtc); |
|
451 | 452 | ||
Line 474... | Line 475... | ||
474 | crtc = encoder->crtc; |
475 | crtc = encoder->crtc; |
Line 475... | Line 476... | ||
475 | 476 | ||
476 | if(crtc == NULL) |
477 | if(crtc == NULL) |
Line 477... | Line -... | ||
477 | continue; |
- | |
478 | - | ||
479 | /* |
- | |
480 | list_for_each_entry(mode, &connector->modes, head) |
- | |
481 | { |
- | |
482 | if (mode->type & DRM_MODE_TYPE_PREFERRED); |
- | |
483 | break; |
- | |
484 | }; |
- | |
485 | - | ||
486 | struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); |
- | |
487 | struct radeon_native_mode *native_mode = &radeon_encoder->native_mode; |
- | |
488 | - | ||
489 | native_mode->panel_xres = mode->hdisplay; |
- | |
490 | native_mode->panel_yres = mode->vdisplay; |
- | |
491 | - | ||
492 | native_mode->hblank = mode->htotal - mode->hdisplay; |
- | |
493 | native_mode->hoverplus = mode->hsync_start - mode->hdisplay; |
- | |
494 | native_mode->hsync_width = mode->hsync_end - mode->hsync_start; |
- | |
495 | native_mode->vblank = mode->vtotal - mode->vdisplay; |
- | |
496 | native_mode->voverplus = mode->vsync_start - mode->vdisplay; |
- | |
497 | native_mode->vsync_width = mode->vsync_end - mode->vsync_start; |
- | |
498 | native_mode->dotclock = mode->clock; |
- | |
499 | native_mode->flags = mode->flags; |
478 | continue; |
500 | */ |
479 | |
501 | list_for_each_entry(mode, &connector->modes, head) |
480 | list_for_each_entry(mode, &connector->modes, head) |
Line 502... | Line 481... | ||
502 | { |
481 | { |
Line 531... | Line 510... | ||
531 | fb->height = height; |
510 | fb->height = height; |
532 | fb->pitch = radeon_align_pitch(dev->dev_private, width, 32, false) * ((32 + 1) / 8); |
511 | fb->pitch = radeon_align_pitch(dev->dev_private, width, 32, false) * ((32 + 1) / 8); |
Line 533... | Line 512... | ||
533 | 512 | ||
534 | crtc->fb = fb; |
513 | crtc->fb = fb; |
- | 514 | crtc->enabled = true; |
|
Line 535... | Line 515... | ||
535 | crtc->enabled = true; |
515 | set_crtc(crtc); |
Line 536... | Line 516... | ||
536 | 516 |