mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-21 20:25:15 +07:00
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>
This commit is contained in:
parent
a0e40018dc
commit
e592e85f33
@ -1193,7 +1193,7 @@ static void optc1_enable_stereo(struct timing_generator *optc,
|
||||
REG_UPDATE_3(OTG_STEREO_CONTROL,
|
||||
OTG_STEREO_EN, stereo_en,
|
||||
OTG_STEREO_SYNC_OUTPUT_LINE_NUM, 0,
|
||||
OTG_STEREO_SYNC_OUTPUT_POLARITY, 0);
|
||||
OTG_STEREO_SYNC_OUTPUT_POLARITY, flags->RIGHT_EYE_POLARITY == 0 ? 0 : 1);
|
||||
|
||||
if (flags->PROGRAM_POLARITY)
|
||||
REG_UPDATE(OTG_STEREO_CONTROL,
|
||||
|
Loading…
Reference in New Issue
Block a user