drm/exynos/mixer: pass actual mode on MIXER to encoder
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 29 Sep 2017 10:05:39 +0000 (12:05 +0200)
committerInki Dae <inki.dae@samsung.com>
Thu, 26 Oct 2017 00:06:33 +0000 (09:06 +0900)
commitacc8bf040c39499139e6d26e72c642d42ffa5016
tree605fb86aa6c497e42cf3c3ab92c36281e2d0aad6
parent2466db97e39d5479bb44a09a56ca85043d3d3997
drm/exynos/mixer: pass actual mode on MIXER to encoder

MIXER in SoCs prior to Exynos5420 supports only 4 video modes:
720x480, 720x576, 1280x720, 1920x1080. Support for other modes can be
enabled by manipulating timings of HDMI. To allow it MIXER must pass
actual video mode to HDMI, the proper way to do it is to modify
adjusted_mode property in crtc::mode_fixup callback. Adding such callback
allows also to simplify mixer_cfg_scan code - choosing mode is performed
already in crtc::mode_fixup. mode_fixup is also better place to check
interlace flag.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c