• Thierry Reding's avatar
    drm/tegra: dc - Add YUYV support · f925390e
    Thierry Reding authored
    YUYV is UYVY with swapped bytes. Luckily the Tegra DC hardware can swap
    bytes during scan-out, so supporting YUYV is simply a matter of writing
    the correct value to the byteswap register.
    
    This patch modifies tegra_dc_format() to return the byte swap parameter
    via an output parameter in addition to returning the pixel format. Many
    other formats can potentially be supported in a similar way.
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    f925390e
dc.c 34.9 KB