lkml.org 
[lkml]   [2013]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[64/84] drm/radeon: improve dac adjust heuristics for legacy pdac
    3.2.50-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Alex Deucher <alexander.deucher@amd.com>

    commit 03ed8cf9b28d886c64c7e705c7bb1a365fd8fb95 upstream.

    Hopefully avoid more quirks in the future due to bogus
    vbios dac data.

    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    drivers/gpu/drm/radeon/radeon_combios.c | 6 ++++--
    1 file changed, 4 insertions(+), 2 deletions(-)

    --- a/drivers/gpu/drm/radeon/radeon_combios.c
    +++ b/drivers/gpu/drm/radeon/radeon_combios.c
    @@ -953,8 +953,10 @@ struct radeon_encoder_primary_dac *radeo
    dac = RBIOS8(dac_info + 0x3) & 0xf;
    p_dac->ps2_pdac_adj = (bg << 8) | (dac);
    }
    - /* if the values are all zeros, use the table */
    - if (p_dac->ps2_pdac_adj)
    + /* if the values are zeros, use the table */
    + if ((dac == 0) || (bg == 0))
    + found = 0;
    + else
    found = 1;
    }



    \
     
     \ /
      Last update: 2013-08-01 09:01    [W:4.154 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site