diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-05-15 11:08:03 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-05-15 11:13:30 +0300 |
commit | 36f42004d8f084775efd92a559996ecaeefb0cda (patch) | |
tree | 559c511227dd744f9fd83896618b568c58882156 /kms++/src/videomode.cpp | |
parent | 4091a630137400dfac389215a7ec8c43b191ec5f (diff) |
kmstest: allow enabling output without anything connected
Allow kmstest to enable an output without anything connected, if the
user gives a videomode. DRM framework allows this, and is needed for
testing.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/src/videomode.cpp')
-rw-r--r-- | kms++/src/videomode.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kms++/src/videomode.cpp b/kms++/src/videomode.cpp index b53f0c0..066896f 100644 --- a/kms++/src/videomode.cpp +++ b/kms++/src/videomode.cpp @@ -12,6 +12,11 @@ using namespace std; namespace kms { +bool Videomode::valid() const +{ + return !!clock; +} + unique_ptr<Blob> Videomode::to_blob(Card& card) const { drmModeModeInfo drm_mode = video_mode_to_drm_mode(*this); |