drm/exynos: mixer: add 2x scaling to mixer_graph_buffer
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Mon, 6 Apr 2015 23:14:52 +0000 (01:14 +0200)
committerInki Dae <inki.dae@samsung.com>
Mon, 13 Apr 2015 02:39:41 +0000 (11:39 +0900)
commit2611015c7511106719bae904cac459383c55ffef
tree19c6f805dbfd09655707deefb6ceaebc0672c130
parent7ded85885d49bac7df1836ea3ac5612d9afcc8de
drm/exynos: mixer: add 2x scaling to mixer_graph_buffer

While the VP (video processor) supports arbitrary scaling
of its input, the mixer just supports a simple 2x (line
doubling) scaling. Expose this functionality and exit
early when an unsupported scaling configuration is
encountered.

This was tested with modetest's DRM plane test (from
the libdrm test suite) on an Odroid-X2 (Exynos4412).

v2: Put if- and return-statement on different lines.

Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c