Commit Graph

5 Commits

Author SHA1 Message Date
Tatenda Chipeperekwa
0eca40edd2 hwc: set the secure flag for AD when secure content is present
When AD is enabled and we have secure content then the secure
flag must be set appropriately. This configures the WB session
as secure; enabling secure playback on AD.

Change-Id: I32373b4b716d5add14994f88e626ff26d2823b8b
2013-11-08 12:43:18 -08:00
Saurabh Shah
c4f1fa691c hwc: Writeback for ad is needed only for split displays.
Writeback for assertive display feature is needed only for
split displays and only if ro.qcom.ad is set to 2 by OEM.
This patch removes the unnecessary code and adds the relevant
conditional checks for split displays and property value

Change-Id: Ic36f28441d1a6e93132316b33fe1cf98a6e1efe4
2013-09-05 09:40:19 -07:00
Naseer Ahmed
c2d949d34c hwc: Change log message for AD feature
If the AD node is not present in the kernel, make the log sound
less fatal and change it to a debug log.

Change-Id: I14adf2df6375d4a2aa012842bda51faf7870ffa5
2013-08-29 13:33:52 -07:00
Jeykumar Sankaran
27dee264f7 display: External display refactor
- cleans up external library
- add separate library for virtual display
- process virtual updates in its separate path
  in hwc.
- Acquire blank mutex lock for one complete drawing
  cycle

Change-Id: Ib984c578464a131ecdb27ee48960f58d68b7a5a7
2013-08-14 13:19:37 -07:00
Saurabh Shah
a9da08f5af hwc: Add assertive display support.
Add assertive display support to hwc. This feature takes effect when
node /sys/class/graphics/fb*/ad is present. This signifies that that LM0
is being used with fb* for writeback.

When a video playback begins we write "1" to this node to indicate to
post processing that a writeback will happen. Likewise a "0" is written
to this node when playback stops.

The original contents are worked upon and the modified output is fed
via writeback to either rotator or mdp as appropriate.

The feature doesnt trigger when either:
1) Buffer size exceeds 2048
2) External display is connected
3) Multiple yuv streams are present

When this mode is active, MDP comp is applied only to yuv layer.

Change-Id: If5520f9dc849de3189c9f9ed4e9072c8f8f760e1
2013-08-07 17:57:09 -07:00