Ticket #11358: dpms_encoder_lock.diff

File dpms_encoder_lock.diff, 572 bytes (added by kallisti5, 9 years ago)

A random guess at a fix

  • src/add-ons/accelerants/radeon_hd/mode.cpp

    diff --git a/src/add-ons/accelerants/radeon_hd/mode.cpp b/src/add-ons/accelerants/radeon_hd/mode.cpp
    index ec4fb04..c157081 100644
    a b radeon_dpms_set_hook(int mode)  
    168168
    169169    uint8 crtcID = 0;
    170170
    171     if (gDisplay[crtcID]->attached)
     171    encoder_output_lock(true);
     172    if (gDisplay[crtcID]->attached) {
     173        display_crtc_lock(crtcID, ATOM_ENABLE);
    172174        radeon_dpms_set(crtcID, mode);
     175        display_crtc_lock(crtcID, ATOM_DISABLE);
     176    }
     177    encoder_output_lock(false);
    173178}
    174179
    175180