summaryrefslogtreecommitdiff
path: root/kms++/src/omap
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2019-01-17 17:24:25 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2019-01-17 17:43:48 +0200
commitdb0da1f33c7d688e84e9cd7ff0551842bb68ca6f (patch)
tree58abaa24d29b2c592b9de03e1d4c1aaa23e22806 /kms++/src/omap
parentd49777b00e844ac77e0f3b0cfb9b9e07257b4c26 (diff)
card: another try with card constructors
Let's try again with the card constructors. Card::open_modesetting_card() is removed. The main constructor is Card(const std::string& dev_path = ""). If dev_path is set, the device node with that path is used. If dev_path is not set, the behavior is similar as previously, except a modeset capable card is used at the third step: - If KMSXX_DEVICE env variable is set, the card device with that path is opened. - If KMSXX_DRIVER env variable is set, the card with the given driver name and index is opened. The format is either "drvname" or "drvname:idx". - If neither env variable is given, the first modeset capable card is opened. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/src/omap')
-rw-r--r--kms++/src/omap/omapcard.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/kms++/src/omap/omapcard.cpp b/kms++/src/omap/omapcard.cpp
index e811b6d..5e21c75 100644
--- a/kms++/src/omap/omapcard.cpp
+++ b/kms++/src/omap/omapcard.cpp
@@ -9,11 +9,6 @@ using namespace std;
namespace kms
{
-OmapCard::OmapCard()
- : OmapCard("/dev/dri/card0")
-{
-
-}
OmapCard::OmapCard(const string& device)
: Card(device)