summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/imx/dcss/dcss-dev.h
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>2020-11-05 17:50:18 +0300
committerLucas Stach <l.stach@pengutronix.de>2020-11-26 13:29:44 +0300
commit05faf1559de52465f1e753e31883aa294e6179c1 (patch)
tree2c62b09e42de7ae5e990a9f750685d5f22c23c60 /drivers/gpu/drm/imx/dcss/dcss-dev.h
parent594486b52c8e77378a9b3769be1f2080b891a922 (diff)
downloadlinux-05faf1559de52465f1e753e31883aa294e6179c1.tar.xz
drm/imx/dcss: allow using nearest neighbor interpolation scaling
This patch adds support for using NN interpolation scaling by setting the SCALING_FILTER plane property to 1. Otherwise, the default method is used. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Link: https://patchwork.freedesktop.org/patch/msgid/20201105145018.27255-1-laurentiu.palcu@oss.nxp.com
Diffstat (limited to 'drivers/gpu/drm/imx/dcss/dcss-dev.h')
-rw-r--r--drivers/gpu/drm/imx/dcss/dcss-dev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/dcss/dcss-dev.h b/drivers/gpu/drm/imx/dcss/dcss-dev.h
index c642ae17837f..1e582270c6ea 100644
--- a/drivers/gpu/drm/imx/dcss/dcss-dev.h
+++ b/drivers/gpu/drm/imx/dcss/dcss-dev.h
@@ -7,6 +7,7 @@
#define __DCSS_PRV_H__
#include <drm/drm_fourcc.h>
+#include <drm/drm_plane.h>
#include <linux/io.h>
#include <video/videomode.h>
@@ -165,6 +166,8 @@ void dcss_ss_sync_set(struct dcss_ss *ss, struct videomode *vm,
/* SCALER */
int dcss_scaler_init(struct dcss_dev *dcss, unsigned long scaler_base);
void dcss_scaler_exit(struct dcss_scaler *scl);
+void dcss_scaler_set_filter(struct dcss_scaler *scl, int ch_num,
+ enum drm_scaling_filter scaling_filter);
void dcss_scaler_setup(struct dcss_scaler *scl, int ch_num,
const struct drm_format_info *format,
int src_xres, int src_yres, int dst_xres, int dst_yres,