Commit Graph

8 Commits

Author SHA1 Message Date
Neti Ravi Kumar
673e4933a1 hwcomposer : Use sysfs to read vysnc information
* Read sysfs entries, to get vsync timestamp from kernel.
* External display continues to use in ueventThread.
* A new thread, vsyncThread is created to read and send vsync
  timestamps to HAL.
* Disable H/W VSYNC for MDP 5.x targets until kernel changes are
  complete.

(cherry picked from commit a61a58cb775631cd3899211f6ff0aed232f5f3c0)

Change-Id: I58e09a092f81d4ff78b8cb4072ff06d2500c6f53
2012-10-14 15:45:19 -07:00
Steve Kondik
431dc083a9 Revert "hwc: Support VSYNC notification via sysfs"
This reverts commit 0d47bc4df5de25b8232a3c297a96d8def5e206af.

I suppose we'll use CAF's version.
2012-10-14 15:39:34 -07:00
Steve Kondik
36445e454b hwc: Support VSYNC notification via sysfs
* Poll on FB0 sysfs for VSYNC events. This requires kernel support to
   call sysfs_notify instead of sending a uevent.

Change-Id: I48734d8ffdd59dc1de7064fa004af1332ceb7623
2012-10-06 00:49:06 -05:00
Arun Kumar K.R
b25918ac52 hwcomposer: delay starting the uevent thread
- There is a race condition window between initializing hwcomposer as a
  whole and registering callback functions for when the uevents arrive. We
  can fix this issue by delaying the uevent thread kick off until the
  callback functions are registered.
- Add thread name to uevent thread

Change-Id: I30e23b411b92b6578f186b641f562462a8f23179
2012-09-12 23:05:51 -05:00
Amara Venkata Mastan Manoj Kumar
211f9f4144 hwc_composer: Support of WFD Display.
1. WFD Event Detection.
    2. WFD/HDMI Priority Decision.
    3. Configure HWC for WFD Connect/Disconnect.

Change-Id: I1c1bbae449ce38d9b32e8e2bd66d14ae98468c49
2012-08-08 20:30:11 -06:00
Arun Kumar K.R
0b44443a34 hwcomposer: fix the bug in setting connected status to ext display
the hdmi driver can send change uevent anytime, in which case, the
connected state was getting set to 0, due to its default value.

Change-Id: I22dc96acda0272661750277d62c5c11c5156fb3b
2012-08-02 11:06:43 -07:00
Arun Kumar K.R
a72904b1dc hwc: enable vsync for external display
- wait for hdmi vsync when connected to hdmi
- add commit to call PANDISPLAY for updating ext display
- add functions to close fb and reset info

Change-Id: Icdd3620bd9d15240a88a26a3f1bf9c07d58d011b
2012-07-27 08:23:30 -07:00
Naseer Ahmed
9ccb3975c7 display: Enable vsync
* Use the vsync uevents from the kernel to start
surfaceflinger composition.
* This patch also does some code cleanup
    - Move copybit specific functions to copybit files.
    - Cleanup verbose logging.
Change-Id: I8ca3cd7a7ceb53655ed0fcf39ac2cb35e6cbe890
2012-07-27 08:23:23 -07:00