drm/amd/display: writing stereo polarity register if swapped
authorMartin Leung <martin.leung@amd.com>
Thu, 27 Feb 2020 19:41:39 +0000 (14:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Mar 2020 17:50:15 +0000 (13:50 -0400)
commite592e85f3378246dd66b861fa60ef803d8cece6b
tree0a1a166d040704458fa37afa4e89cf6a92dfcbe7
parenta0e40018dcc3f59a10ca21d58f8ea8ceb1b035ac
drm/amd/display: writing stereo polarity register if swapped

[why]
on some displays that prefer swapped polarity we were seeing L/R images
swapped because OTG_STEREO_SYNC_OUTPUT_POLARITY would always be mapped
to 0

[how]
fix initial dal3 implementation to properly update the polarity field
according to the crtc_stereo_flags (same as
OTG_STEREO_EYE_FLAG_POLARITY)

Signed-off-by: Martin Leung <martin.leung@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c