diff options
author | Antonio Borneo <antonio.borneo@st.com> | 2019-02-20 17:48:22 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2019-07-23 15:11:17 +0200 |
commit | a0a4c0238026b24ac7ace5919132921160673ce2 (patch) | |
tree | 6cadb13be7617d0628797c7769cdb0fae46441d8 /drm-common.h | |
parent | a09d38f94e27dcc5fe52adf99404c821028e3e9d (diff) | |
download | kmscube-a0a4c0238026b24ac7ace5919132921160673ce2.tar.gz |
kmscube: add command-line selection of video mode
The mode of type "DRM_MODE_TYPE_PREFERED" can be miss-configured,
making kmscube not working.
Plus, user could need to test the other available video modes at
the connector.
Add a command line flag to specify the video mode. If the mode is
not present, print an informative message and fall-back to the
default behaviour (preferred mode or highest resolution mode).
Signed-off-by: Antonio Borneo <antonio.borneo@st.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'drm-common.h')
-rw-r--r-- | drm-common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drm-common.h b/drm-common.h index 53af2cf..c4eb886 100644 --- a/drm-common.h +++ b/drm-common.h @@ -73,8 +73,8 @@ struct drm_fb { struct drm_fb * drm_fb_get_from_bo(struct gbm_bo *bo); -int init_drm(struct drm *drm, const char *device); -const struct drm * init_drm_legacy(const char *device); -const struct drm * init_drm_atomic(const char *device); +int init_drm(struct drm *drm, const char *device, const char *mode_str, unsigned int vrefresh); +const struct drm * init_drm_legacy(const char *device, const char *mode_str, unsigned int vrefresh); +const struct drm * init_drm_atomic(const char *device, const char *mode_str, unsigned int vrefresh); #endif /* _DRM_COMMON_H */ |