]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/log
android/external-libkmsxx.git
7 years agouse reserve_connector from ResourceManager
Tomi Valkeinen [Tue, 7 Feb 2017 11:39:15 +0000 (13:39 +0200)]
use reserve_connector from ResourceManager

7 years agokmstest: Add --view option
Tomi Valkeinen [Tue, 7 Feb 2017 10:56:54 +0000 (12:56 +0200)]
kmstest: Add --view option

7 years agomappedframebuffer.h: add missing include
Tomi Valkeinen [Fri, 10 Feb 2017 05:03:26 +0000 (07:03 +0200)]
mappedframebuffer.h: add missing include

7 years agofix race issue in threaded test pattern draw
Tomi Valkeinen [Fri, 10 Feb 2017 04:56:39 +0000 (06:56 +0200)]
fix race issue in threaded test pattern draw

7 years agoSupport python2 based pykms binding
Alejandro Hernandez [Fri, 3 Feb 2017 15:11:58 +0000 (10:11 -0500)]
Support python2 based pykms binding

Previously only binding with python3 was supported, this patch allows
compilation of pykms with python3 or python2. When compiling with
python2 some of the python scripts located in the py/test will not work
since they import python3 only modules

Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoAdd README.md to custom targets
Tomi Valkeinen [Mon, 6 Feb 2017 10:57:38 +0000 (12:57 +0200)]
Add README.md to custom targets

7 years agoREADME: add note about python
Tomi Valkeinen [Fri, 27 Jan 2017 09:07:02 +0000 (11:07 +0200)]
README: add note about python

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agopy/tests: hpd test
Tomi Valkeinen [Fri, 27 Jan 2017 08:40:03 +0000 (10:40 +0200)]
py/tests: hpd test

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agowbcap: fix setup if a display is unconfigured
Tomi Valkeinen [Wed, 25 Jan 2017 11:20:43 +0000 (13:20 +0200)]
wbcap: fix setup if a display is unconfigured

7 years agoAdd refresh() to connector, crtc and encoder
Tomi Valkeinen [Wed, 25 Jan 2017 11:19:44 +0000 (13:19 +0200)]
Add refresh() to connector, crtc and encoder

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agopykms: add Videomode.__repr__
Tomi Valkeinen [Tue, 24 Jan 2017 12:10:20 +0000 (14:10 +0200)]
pykms: add Videomode.__repr__

7 years agopy: db.py: Print frame rate at 5s intervals
Laurent Pinchart [Mon, 2 Jan 2017 14:42:11 +0000 (16:42 +0200)]
py: db.py: Print frame rate at 5s intervals

Print both the number of vsyncs (as reported by the driver in flip
events) and the number of flip events. This is useful to debug frame
rate related issues.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7 years agopy: db.py: Rename argument to event handlers to avoid shadowing
Laurent Pinchart [Mon, 2 Jan 2017 14:42:10 +0000 (16:42 +0200)]
py: db.py: Rename argument to event handlers to avoid shadowing

The first argument to the key event handlers bears the same name as the
global variable that identifies the connector. Rename it to fileobj
which, in addition to being more descriptive, avoids shadowing the
global variable.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7 years agopy: Move helpers to the pykms module
Laurent Pinchart [Mon, 2 Jan 2017 14:42:09 +0000 (16:42 +0200)]
py: Move helpers to the pykms module

Instead of forcing applications to import the helpers manually, move
them to pykms by turning it into a python module.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7 years agopy: Reorganize source directory
Laurent Pinchart [Mon, 2 Jan 2017 14:42:08 +0000 (16:42 +0200)]
py: Reorganize source directory

Separate the Python bindings sources from the test scripts. While at it,
remove the unneeded run.sh script.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7 years agopy: Expose MappedFramebuffer width and height properties
Laurent Pinchart [Mon, 2 Jan 2017 14:42:07 +0000 (16:42 +0200)]
py: Expose MappedFramebuffer width and height properties

The property getters are defined as pure virtual functions in the
MappedFramebuffer class. Expose the Python properties as part of the
bindings for that class to make them available for all classes
inheriting from MappedFramebuffer.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7 years agokmstest: don't reserve primary_plane if it's not needed
Tomi Valkeinen [Tue, 20 Dec 2016 09:17:13 +0000 (11:17 +0200)]
kmstest: don't reserve primary_plane if it's not needed

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmstest: disable crtcs & planes before modeset
Tomi Valkeinen [Tue, 20 Dec 2016 09:12:39 +0000 (11:12 +0200)]
kmstest: disable crtcs & planes before modeset

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmstest: fix bug in setups_to_outputs()
Tomi Valkeinen [Tue, 20 Dec 2016 08:11:32 +0000 (10:11 +0200)]
kmstest: fix bug in setups_to_outputs()

Bad output used to get the crtc, causing crash.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agocrtc: add disable_mode()
Tomi Valkeinen [Mon, 19 Dec 2016 15:18:48 +0000 (17:18 +0200)]
crtc: add disable_mode()

Add crtc::disable_mode() for disabling the crtc.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmstest: use resman to get primary planes
Tomi Valkeinen [Mon, 12 Dec 2016 10:26:26 +0000 (12:26 +0200)]
kmstest: use resman to get primary planes

We need to ensure that a primary plane is not already in use.
ResourceManager does this for us.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmscube: improve egl config prints
Tomi Valkeinen [Fri, 9 Dec 2016 07:20:26 +0000 (09:20 +0200)]
kmscube: improve egl config prints

7 years agokmscube: fix X11 fullscreen
Tomi Valkeinen [Sat, 26 Nov 2016 18:58:16 +0000 (20:58 +0200)]
kmscube: fix X11 fullscreen

7 years agocmake: set C_FLAGS too
Tomi Valkeinen [Sat, 26 Nov 2016 18:53:28 +0000 (20:53 +0200)]
cmake: set C_FLAGS too

7 years agopy: Add OmapCard & OmapFramebuffer support
Tomi Valkeinen [Tue, 22 Nov 2016 11:13:20 +0000 (13:13 +0200)]
py: Add OmapCard & OmapFramebuffer support

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agopy: Add MappedFramebuffer and use it
Tomi Valkeinen [Tue, 22 Nov 2016 10:52:14 +0000 (12:52 +0200)]
py: Add MappedFramebuffer and use it

Add MappedFramebuffer to python bindings and use it for the draw
functions.

Looks like recent pybind11 versions have better multi-inheritance
support, so all this need to be revisited after updating pybind11.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoAdd OmapCard and OmapFramebuffer
Tomi Valkeinen [Fri, 23 Sep 2016 11:54:39 +0000 (14:54 +0300)]
Add OmapCard and OmapFramebuffer

Add OmapCard and OmapFramebuffer classes to utilize omap_bos. Only
non-tiled framebuffer is implemented for now.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmstest: use MappedFramebuffer
Tomi Valkeinen [Fri, 23 Sep 2016 12:33:56 +0000 (15:33 +0300)]
kmstest: use MappedFramebuffer

Use MappedFramebuffer instead of DumbFramebuffer in kmstest, except when
creating the object. This change makes it possible to easily use other
framebuffer objects in kmstest than DumbFramebuffer.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoAdd MappedFramebuffer
Tomi Valkeinen [Fri, 23 Sep 2016 12:32:29 +0000 (15:32 +0300)]
Add MappedFramebuffer

Add a base MappedFramebuffer class, which inherits Framebuffer and
implements IMappedFramebuffer.  This helps to implement platform
specific framebuffer classes, like OmapFramebuffer.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agodumbfb: pass O_RDWR to drmPrimeHandleToFD()
Tomi Valkeinen [Thu, 3 Nov 2016 09:52:44 +0000 (11:52 +0200)]
dumbfb: pass O_RDWR to drmPrimeHandleToFD()

This enables write access to the dumb fb with mmap().

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agomodedb_dmt: update table
Tomi Valkeinen [Tue, 11 Oct 2016 12:06:24 +0000 (15:06 +0300)]
modedb_dmt: update table

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoAdd DMT script
Tomi Valkeinen [Tue, 11 Oct 2016 11:11:34 +0000 (14:11 +0300)]
Add DMT script

Add script to auto-generate DMT tables.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmstest: be explicit about mode selection
Tomi Valkeinen [Tue, 11 Oct 2016 08:21:13 +0000 (11:21 +0300)]
kmstest: be explicit about mode selection

Instead of searching through the dmt and cea tables (if user has given
the option), lets be more explicit about it. Only look for the mode from
a single source, and fail if not found there.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmstest: add --cvt option
Tomi Valkeinen [Tue, 11 Oct 2016 08:17:04 +0000 (11:17 +0300)]
kmstest: add --cvt option

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokms++: add videomode_from_cvt()
Tomi Valkeinen [Tue, 11 Oct 2016 08:16:50 +0000 (11:16 +0300)]
kms++: add videomode_from_cvt()

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoAdd comment about ilace
Tomi Valkeinen [Tue, 11 Oct 2016 07:49:58 +0000 (10:49 +0300)]
Add comment about ilace

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoTravis: only build master & travis
Tomi Valkeinen [Mon, 10 Oct 2016 19:24:29 +0000 (22:24 +0300)]
Travis: only build master & travis

7 years agoTravis: use VERBOSE=1
Tomi Valkeinen [Sat, 1 Oct 2016 16:33:15 +0000 (19:33 +0300)]
Travis: use VERBOSE=1

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoTravis: set -Wno-maybe-uninitialized for gcc-4.9
Tomi Valkeinen [Sat, 1 Oct 2016 16:24:32 +0000 (19:24 +0300)]
Travis: set -Wno-maybe-uninitialized for gcc-4.9

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoTravis: treat warnings as errors
Tomi Valkeinen [Sat, 1 Oct 2016 15:49:55 +0000 (18:49 +0300)]
Travis: treat warnings as errors

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoAdd cmake option for -Werror
Tomi Valkeinen [Sat, 1 Oct 2016 15:48:44 +0000 (18:48 +0300)]
Add cmake option for -Werror

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agotravis: add my email
Tomi Valkeinen [Sat, 1 Oct 2016 15:48:24 +0000 (18:48 +0300)]
travis: add my email

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoremove -rdynamic gcc flag
Tomi Valkeinen [Sat, 1 Oct 2016 15:24:28 +0000 (18:24 +0300)]
remove -rdynamic gcc flag

This reduces the exe sizes.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agotravis: improve .travis.yml
Tomi Valkeinen [Fri, 30 Sep 2016 10:50:19 +0000 (13:50 +0300)]
travis: improve .travis.yml

7 years agoTravis: test different gcc versions
Tomi Valkeinen [Fri, 30 Sep 2016 09:49:29 +0000 (12:49 +0300)]
Travis: test different gcc versions

7 years agokmstest: enable display even if crtc doesn't have fb
Tomi Valkeinen [Fri, 30 Sep 2016 07:19:43 +0000 (10:19 +0300)]
kmstest: enable display even if crtc doesn't have fb

With atomic modesetting we can enable the crtc without a primary plane.
This allows enabling only a plane on the screen.

Change set_crtcs_n_planes() to allow this.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoREADME: travis icon
Tomi Valkeinen [Thu, 29 Sep 2016 12:46:57 +0000 (15:46 +0300)]
README: travis icon

7 years agotravis: enable kmscube
Tomi Valkeinen [Thu, 29 Sep 2016 12:19:43 +0000 (15:19 +0300)]
travis: enable kmscube

7 years agoAdd Travis CI
Tomi Valkeinen [Thu, 29 Sep 2016 11:52:40 +0000 (14:52 +0300)]
Add Travis CI

7 years agoImprove mode finding
Tomi Valkeinen [Thu, 29 Sep 2016 07:55:19 +0000 (10:55 +0300)]
Improve mode finding

Change calculated_vrefresh to round to 2 decimals, and do two rounds
when looking for a mode: first look for exact vrefresh match, then look
for rounded match.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoImprove LTO detection code
Tomi Valkeinen [Wed, 28 Sep 2016 07:42:03 +0000 (10:42 +0300)]
Improve LTO detection code

Split LTO detection into separate func and file, and create a cached
LTO_WORKS variable.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7 years agoFix LTO detection
Laurent Pinchart [Mon, 19 Sep 2016 11:38:16 +0000 (14:38 +0300)]
Fix LTO detection

Catch gcc-ar and gcc-ranlib versions compiled without plugin support and
disable LTO in that case.

Also do the LTO check only once by checking if HAS_LTO_FLAG has been set.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmsprint: fix prints
Tomi Valkeinen [Tue, 27 Sep 2016 10:56:24 +0000 (13:56 +0300)]
kmsprint: fix prints

7 years agoCard: virtual destructor
Tomi Valkeinen [Fri, 23 Sep 2016 12:47:50 +0000 (15:47 +0300)]
Card: virtual destructor

Add virtual destructor so Card can be inherited.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmatest: add custom videomode support
Tomi Valkeinen [Thu, 1 Sep 2016 12:24:32 +0000 (15:24 +0300)]
kmatest: add custom videomode support

Support custom videomodes when specifying a crtc.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7 years agokmatest: split regex strings to multiple lines
Tomi Valkeinen [Fri, 2 Sep 2016 13:01:00 +0000 (16:01 +0300)]
kmatest: split regex strings to multiple lines

Split regex strings to multiple lines to make them slightly more
readable.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7 years agoImprove struct Videomode
Tomi Valkeinen [Thu, 1 Sep 2016 12:24:26 +0000 (15:24 +0300)]
Improve struct Videomode

Enable set/get for sync polarities and interlace. Add
videomode_from_timings() helper to construct Videomode from non-X
timings.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmsprint: improve property enum prints
Tomi Valkeinen [Thu, 11 Aug 2016 09:47:34 +0000 (12:47 +0300)]
kmsprint: improve property enum prints

7 years agoFix error prints
Tomi Valkeinen [Thu, 1 Sep 2016 11:17:15 +0000 (14:17 +0300)]
Fix error prints

7 years agoFix LTO support for cross-compilation.
Arnout Vandecappelle (Essensium/Mind) [Fri, 26 Aug 2016 19:55:06 +0000 (21:55 +0200)]
Fix LTO support for cross-compilation.

When cross-compiling, the ar and ranlib to be used for LTO are prefixed
by the cross-tuple. gcc-ar and gcc-ranlib may not exist. Cfr.
http://autobuild.buildroot.net/results/f3c/f3c48da3a9706cd366c0e0a96c3cd0ff959f2a78/

Therefore, search for an appropriate lto-ar and lto-ranlib before
enabling LTO.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
7 years agokmstest: rename remaining references to testpat
Tomi Valkeinen [Wed, 24 Aug 2016 12:02:06 +0000 (15:02 +0300)]
kmstest: rename remaining references to testpat

7 years agorename testpat and fbtestpat
Tomi Valkeinen [Tue, 16 Aug 2016 12:38:44 +0000 (15:38 +0300)]
rename testpat and fbtestpat

7 years agoMerge branch 'master' of git://github.com/jsarha/kmsxx
Tomi Valkeinen [Mon, 15 Aug 2016 14:39:25 +0000 (17:39 +0300)]
Merge branch 'master' of git://github.com/jsarha/kmsxx

7 years agoFix byte order of 24-bit formats.
Jyri Sarha [Mon, 15 Aug 2016 13:17:49 +0000 (16:17 +0300)]
Fix byte order of 24-bit formats.

7 years agoAdd missing BGR color formats to draw_test_pattern_part().
Jyri Sarha [Mon, 15 Aug 2016 13:12:49 +0000 (16:12 +0300)]
Add missing BGR color formats to draw_test_pattern_part().

7 years agoAtomicReq: add add_display() helper
Tomi Valkeinen [Sun, 14 Aug 2016 08:10:34 +0000 (11:10 +0300)]
AtomicReq: add add_display() helper

7 years agoResourceManager: add card()
Tomi Valkeinen [Sun, 14 Aug 2016 08:10:21 +0000 (11:10 +0300)]
ResourceManager: add card()

7 years agosupport finding fractional vrefresh
Tomi Valkeinen [Mon, 15 Aug 2016 09:25:47 +0000 (12:25 +0300)]
support finding fractional vrefresh

7 years agomodedb: fix vrefresh for ilace
Tomi Valkeinen [Mon, 15 Aug 2016 09:09:07 +0000 (12:09 +0300)]
modedb: fix vrefresh for ilace

7 years agotestpat & kmsprint: improve mode prints
Tomi Valkeinen [Mon, 15 Aug 2016 06:55:24 +0000 (09:55 +0300)]
testpat & kmsprint: improve mode prints

7 years agoExtCPUFramebuffer: add size and offset params
Tomi Valkeinen [Fri, 12 Aug 2016 08:42:19 +0000 (11:42 +0300)]
ExtCPUFramebuffer: add size and offset params

Add size and offset params to ExtCPUFramebuffer, so that we can fix
fbtestpat's test pattern size on larger virtual fbdevs.

7 years agofbtestpat: remove extra leftover memcpy
Tomi Valkeinen [Fri, 12 Aug 2016 07:01:57 +0000 (10:01 +0300)]
fbtestpat: remove extra leftover memcpy

7 years agoadd basic cmake install system
Tomi Valkeinen [Thu, 11 Aug 2016 19:12:43 +0000 (22:12 +0300)]
add basic cmake install system

7 years agoMerge branch 'master' of git://github.com/jsarha/kmsxx
Tomi Valkeinen [Thu, 11 Aug 2016 09:32:50 +0000 (12:32 +0300)]
Merge branch 'master' of git://github.com/jsarha/kmsxx

7 years agoAdd BGR888 (BG24) and BGR565 (BG16) pixelformats.
Jyri Sarha [Wed, 10 Aug 2016 20:16:39 +0000 (23:16 +0300)]
Add BGR888 (BG24) and BGR565 (BG16) pixelformats.

Note colorbar does not support 24 bit modes (RGB888 or BGR888) yet.

7 years agoMerge branch 'yem/musl' of git://github.com/yann-morin-1998/kmsxx
Tomi Valkeinen [Wed, 10 Aug 2016 17:44:26 +0000 (20:44 +0300)]
Merge branch 'yem/musl' of git://github.com/yann-morin-1998/kmsxx

7 years agoutils: select() et al. need <sys/select.h>
Yann E. MORIN [Wed, 10 Aug 2016 16:34:28 +0000 (18:34 +0200)]
utils: select() et al. need <sys/select.h>

Although indirectly included by way of other headers with glibc and
uClibc, using any of the select()-class familly of functions or macros
requires including <sys/select.h>.

This fixes the build under musl, which is way more conservative in the
ehaders that are included one-from-the-others (k.e. as few as possible).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
7 years agokms++-util: portability fix
Yann E. MORIN [Wed, 10 Aug 2016 16:16:39 +0000 (18:16 +0200)]
kms++-util: portability fix

__STRING(x) is a glibcism (i.e. it is non-standard), that happens to be
also available with uClibc, but is not with musl.

Define it if not already defined, using the same trivial definition as
is done by both glibg and uClibc.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
7 years agofbtestpat: draw "/dev/fb0" text
Tomi Valkeinen [Wed, 10 Aug 2016 07:54:50 +0000 (10:54 +0300)]
fbtestpat: draw "/dev/fb0" text

7 years agoFix property name lookup
Tomi Valkeinen [Wed, 22 Jun 2016 09:38:30 +0000 (12:38 +0300)]
Fix property name lookup

Object types can have different properties with the same name, so we
need to move name-based property lookup from Card to DrmPropObject.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoREADME: add notes about custom toolchainfile
Tomi Valkeinen [Sun, 10 Jul 2016 07:54:43 +0000 (10:54 +0300)]
README: add notes about custom toolchainfile

7 years agokms++: fix AtomicReq compilation
Tomi Valkeinen [Sun, 10 Jul 2016 07:04:20 +0000 (10:04 +0300)]
kms++: fix AtomicReq compilation

4fb69b7d20e90746855de122422ac9cabd78f66f ("kms++: use DrmPropObject in
AtomicReq") made AtomicReq::add() use a not-yet-implemented method.

Fix this by changing that line back.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoAdd missing <system_error> includes
Tomi Valkeinen [Wed, 22 Jun 2016 10:05:00 +0000 (13:05 +0300)]
Add missing <system_error> includes

Missing <system_error> breaks compliation on gcc 4.9.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agopy: fix AtomicReq's add()
Tomi Valkeinen [Wed, 22 Jun 2016 06:36:15 +0000 (09:36 +0300)]
py: fix AtomicReq's add()

"kms++: use DrmPropObject in AtomicReq" forgot to update py bindings.
Fix this.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokmsprint: Include cinttypes instead of inttypes.h
Laurent Pinchart [Wed, 22 Jun 2016 06:21:04 +0000 (09:21 +0300)]
kmsprint: Include cinttypes instead of inttypes.h

cinttypes is the right C++ header, and doesn't require source files to
define __STDC_FORMAT_MACROS to get the integer type format macros.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokms++: use DrmPropObject in AtomicReq
Tomi Valkeinen [Wed, 22 Jun 2016 06:02:37 +0000 (09:02 +0300)]
kms++: use DrmPropObject in AtomicReq

The objects to which we set properties with AtomicReq must have
properties, so they are DrmPropObjects instead of DrmObjects.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agokms++: update decls.h
Tomi Valkeinen [Wed, 22 Jun 2016 06:06:34 +0000 (09:06 +0300)]
kms++: update decls.h

Sort the declarations and add DrmPropObject.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agopy: Expose the Connector::get_mode methods
Laurent Pinchart [Wed, 22 Jun 2016 00:10:21 +0000 (03:10 +0300)]
py: Expose the Connector::get_mode methods

Those methods are useful in Python scripts, expose them through the
bindings.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 years agoMerge V4L2 related work
Tomi Valkeinen [Mon, 20 Jun 2016 05:53:36 +0000 (08:53 +0300)]
Merge V4L2 related work

7 years agoFramebuffer: don't crash is drmModeGetFB() returns 0
Tomi Valkeinen [Mon, 20 Jun 2016 05:46:57 +0000 (08:46 +0300)]
Framebuffer: don't crash is drmModeGetFB() returns 0

7 years agoAdd Framebuffer::flush()
Tomi Valkeinen [Mon, 20 Jun 2016 05:46:32 +0000 (08:46 +0300)]
Add Framebuffer::flush()

7 years agokmscube: use drmModeAddFB2 version of ExtFB
Tomi Valkeinen [Fri, 17 Jun 2016 13:16:34 +0000 (16:16 +0300)]
kmscube: use drmModeAddFB2 version of ExtFB

7 years agoutils: add wbm2m
Tomi Valkeinen [Sun, 12 Jun 2016 06:50:16 +0000 (09:50 +0300)]
utils: add wbm2m

7 years agoutils: add wbcap
Tomi Valkeinen [Sat, 11 Jun 2016 20:41:11 +0000 (23:41 +0300)]
utils: add wbcap

7 years agopy: add cam.py
Tomi Valkeinen [Sat, 11 Jun 2016 20:42:58 +0000 (23:42 +0300)]
py: add cam.py

7 years agopy: add pyvid
Tomi Valkeinen [Sat, 11 Jun 2016 20:42:06 +0000 (23:42 +0300)]
py: add pyvid

7 years agokmsutils: add VideoDevice
Tomi Valkeinen [Sat, 11 Jun 2016 20:40:49 +0000 (23:40 +0300)]
kmsutils: add VideoDevice

7 years agokmsview: use resman
Tomi Valkeinen [Tue, 14 Jun 2016 19:38:29 +0000 (22:38 +0300)]
kmsview: use resman

7 years agopy: use ResourceManager
Tomi Valkeinen [Tue, 14 Jun 2016 19:20:50 +0000 (22:20 +0300)]
py: use ResourceManager

7 years agoadd ResourceManager
Tomi Valkeinen [Tue, 14 Jun 2016 19:20:08 +0000 (22:20 +0300)]
add ResourceManager