Commit Graph

22 Commits

Author SHA1 Message Date
Saurabh Shah
173ec33dbf qdutils: mdpversion: Add device version checks
Add device version inline checks for hardware devices.
Also fixes the issue of 8084 being treated as 8974v2
owing to the expanded range.

Change-Id: Iaeefb505e14e022b6e542daa8b84a87a22e7f69a
2013-12-05 09:31:47 -08:00
Saurabh Shah
8ee5e89553 qdutils: Parse low and high bandwidth from mdp capabilities node
Parse low and high bandwidth from mdp capabilities sysfs node
/sys/class/graphics/fb0/mdp/caps
This will be specified in kbps.

Conflicts:
	libqdutils/mdp_version.cpp

Change-Id: I2956e340106d47bb49f5744e4f9a4a0bb796f6e3
2013-12-01 18:43:28 -08:00
Manoj Kumar AVM
c65ec6186a qdutils: Remove fb open dependency to read MDSS capabiliites
1. MDPVersion class can query the capabilities using sysfs node.
   Since sysfs node can be read with out opening framebuffer, it is no
   longer required.
2. New internal functions updatePanelInfo, updateSplitInfo are added.

Change-Id: If506e600fb14401d8bf2361aac969c7e29a5d50a
2013-11-22 11:58:45 -08:00
Zohaib Alam
4eff790bbc libqdutils: added a new revision for mpq8092
Added a new entry for HW_REV for mpq8092

Change-Id: I34c0c2c1bb0055303f271e20a86d594a54cbaf0d
2013-11-20 15:19:24 -08:00
manoj kumar amara venkata mastan
bc05ef0581 hwc: Replace metadata ioctl reading with sysfs node
Metadata ioctl approach has limitations with respect
  to adding new capabilities in MDSS driver.
  Use sysfs node mechanism to obtain MDSS capabilities.
  (sysfs node: /sys/class/graphics/fb0/mdp/caps)

Change-Id: Id7fe683c85b3acf182920d28abf62e9826ff1161
2013-11-04 19:13:26 -08:00
Sravan Kumar D.V.N
294725962b libqdutils: initialize split char array to 0
String should have null character at the end, otherwise
functions like atio may not work on the string properly.

Change-Id: Ib3eb579a5a96dbd121bf6f65b09fa19ec7e274f3
CRs-Fixed: 546662
2013-10-07 11:40:35 +05:30
Saurabh Shah
75b81b9701 qdutils: Add version check API for 8974 v2
Add a version check API for 8974 v2 revision of MDP.

Change-Id: I7469ffc2f2df14c2ac02ee9dc025f5b1d8737206
2013-09-03 14:59:10 -07:00
Xiaoming Zhou
3da712a97d libqdutils: delay the close of fd handle
During surfaceflinger initialization, the first fb open
call comes from the MDP version check.   The MDPVersion
class implements a singleton object, which open and close
the fb device.  This initial fb open and close will trigger
the kernel driver to turn on and off the display, which
results two side effects: 1) extra delay in the display on,
2) one flicker when the display is turned on and off.
The change is to close the fd handle in the destructor.

Change-Id: I2ee5cfc78cbb613ed1326d9f7c26cbca97406163
2013-07-05 15:00:11 -04:00
Linux Build Service Account
5713417ae8 Merge "hwc: support 8x26 variants" 2013-07-03 08:22:56 -07:00
Saurabh Shah
67a38c3565 hwc: Add support for uneven split primary displays
Add support for unevenly split primary displays.
The driver provides info about the split via msm_fb_split sysfs node

For external we assume even split. If driver doesn't specify any split
for primary, we default to even split.

Change-Id: I4d541f41de2d7a5d2b62653fa33cab079a6d5d30
2013-07-01 14:55:06 -07:00
Amara Venkata Mastan Manoj Kumar
5fa4d60a7c hwc: support 8x26 variants
Add support for 8x26 variants (8x26v1, v2 etc..)

Change-Id: Ie316c1f77fdafb8021100f371c2ebc327e1c9da9
2013-07-01 14:11:10 -07:00
Saurabh Shah
e247408f06 hwc: Don't permit rotator use under certain conditions
These include constrained targets, with external connected which could
lead to a scarcity of pipes. Furthermore owing to a scarcity of writeback
interfaces, even if pipes are available, we may not be able to still
use rotator.

Change-Id: Ie2fb4c1726f32addcace89c268a126abe0cddbe0
2013-05-16 17:56:37 -07:00
Linux Build Service Account
edef94a033 Merge "qdutils: Parse panel type dynamically from panel info" 2013-05-14 21:43:34 -07:00
Carl Vanderlip
045d9c8a17 qdutils: Parse panel type dynamically from panel info
Parse the panel type from the panel info string using string operations
rather than relying on constant offset (which would have to be update for
any changes in length to the preceding MDP/MDSS version string). Assumes
that panel type is the first character after the first '_' in the panel
info string.

Change-Id: I33178e7219c26e0e0361e53941f15a3d38f99b71
2013-05-09 16:41:30 -07:00
Linux Build Service Account
f144c0b2ca Merge "display: libqdutils: add the MDP h/w version for 8x10 MDP core" 2013-05-06 14:51:06 -07:00
Xiaoming Zhou
530f861625 display: libqdutils: add the MDP h/w version for 8x10 MDP core
Add the support to enable 8x10 MDP core version

Change-Id: I385f9bcc5e1c6011f3e2704ee71ce5aacec8b92d
2013-05-02 13:39:04 -04:00
Sushil Chauhan
bab187a53e liboverlay: Add support for MDSS Bandwidth Compression
- This adds support for Bandwidth Compression.
- If MDSS supports BWC, then we set BWC flags
  to both Rotator(encode) and overlay(decode)

Change-Id: I6f7800716a2ce2ab855f4c0b1a53cd96f7d06d74
2013-04-29 13:51:44 -07:00
Saurabh Shah
bd2d083c79 overlay: Add support for decimation.
Add support for decimation on top of what MDP can downscale,
because decimation can have quality issues.
B-family MDP downscale of 1/4, plus decimation of 1/16 can let
us have a total downscale of 1/64.

Also decimate by 2 (min) if width is greater than what layer mixer
supports and is not handled by the client.

Change-Id: I3b7c4bf321c7561bd98206ad118f4ac1ee2879ae
2013-04-18 10:08:27 -07:00
Sushil Chauhan
07a2c7660c qdutils: Retrieve MDP revision and pipes information from driver.
Userspace can retrieve MDP revision number and number of different
types of MDP pipes (RGB,VG,DMA) information from driver. Add target
specific flag as previous MDP versions do not provide this support.

- Make use of this information while maintaining PipeBook.
- Move PipeBook related functions from overlay utils to PipeBook.

Change-Id: I46578bb27e515c4b9525d90b6619c11d7749914f
2013-03-14 11:43:42 -07:00
Duy Truong
73d36df685 Update copyright to The Linux Foundation
Change-Id: I145b66896159ff9886ed73507f17b3165ba0266d
2013-02-09 20:33:23 -08:00
Naseer Ahmed
96c4c95d48 display: Get panel type from framebuffer
Change-Id: I3b7cb78d7c6019482ae698b30d553ca782f5022b
2012-08-14 14:18:11 -07:00
Naseer Ahmed
a87da60090 display: Add QC Display utils
* Rename qcomui directory to qdutils
* Avoid inclusion of qcom_ui header
* Add class to get MDP version
* Add namespace for qdutils to prevent collison

Change-Id: I9a3f440e6b0fea1cfcc478ddca90af5df3bbb897
2012-07-13 17:50:32 -07:00