From e621f48fe4cb32d8cc8bf1964e62ed66c0a156f5 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Thu, 2 Mar 2017 15:34:55 +0900 Subject: ipptest: Add the set crtc for display mode Added the modeSetCrtc func for display mode test of ipptest. Change-Id: If2d51e0be6b6302dc0c4931ee5b73dd4dbe483c6 Signed-off-by: Hoegeun Kwon --- tests/ipptest/fimc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/ipptest/fimc.c b/tests/ipptest/fimc.c index 73de30e1..dc19d352 100644 --- a/tests/ipptest/fimc.c +++ b/tests/ipptest/fimc.c @@ -841,6 +841,16 @@ void fimc_m2m_set_mode(struct device *dev, struct connector *c, int count, goto err_ipp_quque_close; } + /* Set crtc */ + ret = drmModeSetCrtc(dev->fd, pipe.crtc->crtc->crtc_id, + fb_id_dst, 0, 0, pipe.con_ids, + pipe.num_cons, pipe.mode); + if (ret) { + fprintf(stderr, "failed to set crtc: %s\n", + strerror(errno)); + goto err_ipp_quque_close; + } + j = 0; while (1) { struct timeval timeout = {.tv_sec = 3, .tv_usec = 0}; -- cgit v1.2.3