History log of /hardware/qcom/display/msm8084/libexternal/external.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bad2217825fe0a98d9c4a987a139f4d7a0e05a2f 21-Feb-2014 Tatenda Chipeperekwa <tatendac@codeaurora.org> hwc: Enable downscale feature through system property

Add support to turn the MDP downscale feature ON through the
use of a system property. 'sys.hwc.mdp_downscale_enabled' shall be
set to 'true' in build.prop file to enable this functionality.

This is required for OEMs that might have privacy concerns over panel
size information being exposed.

Change-Id: I354b25b1fdabe5786aed7552f2afccda35412467
(cherry picked from commit 5d14c718eeea661a8f29278bfb283c7d2161e4a2)
/hardware/qcom/display/msm8084/libexternal/external.cpp
cf40ec929a1ddf18023dad9647e7be08638b659d 25-Feb-2014 Dileep Kumar Reddi <dkumarre@codeaurora.org> hqd : Use proper type casts

* Remove compilation errors
* Use proper type casts

Change-Id: I1d44c2a2362a1fdd4d6e412ea816d4078e8355c9
:
/hardware/qcom/display/msm8084/libexternal/external.cpp
c9cbe63708025b7aed15e251b2fb3a914fd842a0 01-Feb-2014 Ramkumar Radhakrishnan <ramkumar@codeaurora.org> display: Remove klockwork warnings and errors.

Remove all klockwork warnings and errors for libgralloc,
libhwcomposer, liboverlay, libqdutils, libqservice, libvirtual,
libexternal libraries to avoid buffer overflow and memory leaks.

Change-Id: I078143bcbcf5e4b342156bd8305a644566f7cc4b
/hardware/qcom/display/msm8084/libexternal/external.cpp
c150373713683b4ff42323c1be9f4dab56e93757 29-Jan-2014 Arun Kumar K.R <akumarkr@codeaurora.org> display: remove compile time warnings

- remove unused variable in libexternal.
- make use of all variables in memtrack.

Change-Id: I67b34428f4a976327e4e9dcd6fd7dfb9063b969c
/hardware/qcom/display/msm8084/libexternal/external.cpp
2040a273da33b131c49242c61967bf19a57bc378 28-Nov-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: limit ext downscale to FullHD Resolution

- should not be enabling external downscale when primary panel
is of higher resolution
- while enabling downscale on external, also check if primary is
within the Full HD resolution

Change-Id: I871a435834b6bca9b0e6899680aa8282dddad624
/hardware/qcom/display/msm8084/libexternal/external.cpp
7394a4b56677e6f750b699c16111daa08429c209 23-Oct-2013 Manoj Kumar AVM <manojavm@codeaurora.org> libexternal: Restrict external mdp downscale to 1080p

Enable MDP downscale feature on External display upto 1080p.
If primary is 2560x1600 and hdmi is 1080p, do not perform
MDP downscale for hdmi.

Change-Id: Ie835a71c293ca3f56c4ab62de96e38b51ded0dd7
/hardware/qcom/display/msm8084/libexternal/external.cpp
a2aa8d73e3e67473a0383aed024a61e4aa9aa003 25-Sep-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: remove mEDIDs string

Remove mEDIDs string from the External class as it not needed
after parsing the string

Change-Id: I0a624857894a0b5401b33408c09b32ceb4f8a0d4
CRs-fixed: 549578
/hardware/qcom/display/msm8084/libexternal/external.cpp
fea63d61337f1efeb2d1c7a7a4fafe472611704c 14-Mar-2013 Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> hwc: Perform MDP downscaling for WFD/HDMI Scenario

On WFD/HDMI connection, if the configured resolution is less than
Primary Resolution, Display HAL does the following:

1. sends hpd notification to SF with primary resolution.
2. configures MDP pipes with configured Resolution.

This is done to improve UI quality as MDP has better downscale
filter options compared to GPU.

Change-Id: I33570c13016a35ed6c5d22d4c34dfe75b2c605a1
/hardware/qcom/display/msm8084/libexternal/external.cpp
e831288603d44b7e6133efae7dac9d0d117fd0e3 22-Aug-2013 Ramkumar Radhakrishnan <ramkumar@codeaurora.org> Revert "hwc: Perform MDP downscaling for WFD/HDMI Scenario"

This reverts commit 1291675ee44cadc234c4403cf1b0cfe70eadaf3a.
/hardware/qcom/display/msm8084/libexternal/external.cpp
88722217d313796d01a1afde4ae456f23ed562fd 14-Mar-2013 Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> hwc: Perform MDP downscaling for WFD/HDMI Scenario

On WFD/HDMI connection, if the configured resolution is less than
Primary Resolution, Display HAL does the following:

1. sends hpd notification to SF with primary resolution.
2. configures MDP pipes with configured Resolution.

This is done to improve UI quality as MDP has better downscale
filter options compared to GPU.
This works only for QCOM WFD proprietary solution.

Change-Id: Ic20e837bf02c0f7b6718946e70b936f3a469fa7c
/hardware/qcom/display/msm8084/libexternal/external.cpp
361900d9a618d2c4d2276a10ca76919214f6759f 02-Aug-2013 Jeykumar Sankaran <jsanka@codeaurora.org> 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
/hardware/qcom/display/msm8084/libexternal/external.cpp
c34e3ff840266288c03bfcf6734a25cb80b22373 27-Jun-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: enable HPD if target supports HDMI

enable HPD only on targets that has valid HDMI fb device.

Change-Id: Ia43d9138167b6ab3a887f7663a05831a2fcc09ea
CRs-fixed: 506363
/hardware/qcom/display/msm8084/libexternal/external.cpp
d53530e64a89c7e50d2357c671fc28cf34b30208 17-May-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: fix mode selection

Consider 1024x768p vesa format when deciding the best mode

Change-Id: I5966689c24ad19cccfdf280d73c4cdd95c8b3662
/hardware/qcom/display/msm8084/libexternal/external.cpp
d22dec70121283832cf0cf3305c838a1e529768f 08-May-2013 Manoj Rao <manojraj@codeaurora.org> libexternal: Support VESA format

Add support for VESA formats with pixel clock
at 65MHz. This change helps verify support
for formats corresponding to 65MHz in the
HDMI/MHL driver by using 1024x768p604:3 resolution.

Change-Id: I28b4adcfced7e8bfe7b75c534f5b15c25138ef7f
/hardware/qcom/display/msm8084/libexternal/external.cpp
1afa12c45ee08b13e96c681f3b21412b68a9b2b4 11-Apr-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: change action safe property to persist

It is more probable that end user always use same TV to connect.
Hence make the action safe property persist, so that it is
persistent across reboot
Also, change property to sys. from hw. so that hwc can write

Change-Id: I5a77156012d121e28d1adbadb9162fcdf7ca3edd
CRs-fixed: 472431
/hardware/qcom/display/msm8084/libexternal/external.cpp
d0d432cf032707cbdea7635619ad5622bfc1b371 10-Apr-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: Add 3840x2160p25Hz to getAttrForMode

Fix the black screen shown on TV when Resolution
3840x2160p@25Hz was set

Change-Id: Ib3ff35ce53df0409c7643f349f8095c7f2ad4d1d
/hardware/qcom/display/msm8084/libexternal/external.cpp
9d2cf700ca8ae9be23b549f3d4432fa0850e2572 12-Feb-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: Add support for SPD Information

- SPD: Source product description.
- Retrieve the product vendor and name from the system
property and pass it to the hdmi driver.
- This will display some specific names for source such
as instead of "Input 1" it might display "QCOM 8974" for
example

Change-Id: I5440841b9e47110386c793045f3b30774522dcb6
/hardware/qcom/display/msm8084/libexternal/external.cpp
93497cfeef2625f01515de8bdc51f3195a23fb31 16-Nov-2012 Ujwal Patel <ujwalp@codeaurora.org> hwc: Add support for new resolutions

This change adds support for following resolutions.
* 2560x1260 @ 60Hz (DVI)
* 3840x2160 @ 30Hz (HDMI)
* 3840x2160 @ 25Hz (HDMI)
* 3840x2160 @ 24Hz (HDMI)
* 4096x2160 @ 24Hz (HDMI)

Change-Id: Ibd6fbaf20ac9c9557e738057f2a990eea1de928d
/hardware/qcom/display/msm8084/libexternal/external.cpp
ec56080710fee33d2e5cf1b022bc1080584c182b 25-Jan-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: Add support for vesa format

This change adds support for 1280x1024@60Hz
with pixel clock of 108MHz

Change-Id: Idb2c752554bfb130bba8db2b29444afcacc40fee
CRs-fixed: 438028
/hardware/qcom/display/msm8084/libexternal/external.cpp
56e7f2675db48df98bff43b6e8d0e0828875e04f 01-Mar-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: clean up HDMI modes

- Userspace was maintaining its own display mode timing table
- Change that to include the header from kernel

Change-Id: I19823e60d188b5a30445866c7df1860e269975bc
CRs-fixed: 470335
/hardware/qcom/display/msm8084/libexternal/external.cpp
848d0d35701cacacee11129a08cff4bd7b8f7f26 28-Mar-2013 Linux Build Service Account <lnxbuild@localhost> Merge "hwc: Processing of HDMI connection request when WFD is active"
aca973d77f39ea40b62eed400ee37ca9b0904be6 08-Feb-2013 Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> hwc: Processing of HDMI connection request when WFD is active

when HDMI is connected during active WFD session, teardown
WFD and process HDMI connection request.

CRs-Fixed: 442226
Change-Id: I4b22ff9f1ab3175bab47babdaf040cb2289ebe4d
/hardware/qcom/display/msm8084/libexternal/external.cpp
a0ab8e632404bb11744420accaa9eaddf198c4a9 20-Mar-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: disable HPD during initialization.

- Disable HPD at start, it will be enabled later
when the display is powered on
- This fixes the issue where the HDMI mirroring
was not working when there was a framework reboot
or adb shell stop/start

Change-Id: I56d706ebae281297a8ec6517a4fb8e5cdda27617
CRs-fixed: 461820
/hardware/qcom/display/msm8084/libexternal/external.cpp
c567a93cd9ff7079ac03024d4fdb1ddc5683e748 21-Feb-2013 Jeykumar Sankaran <jsanka@codeaurora.org> display: Remove framebuffer HAL usage

This patch removes the usage of the framebuffer HAL which is
deprecated in JB MR1 onwards. The code is left for compatibility
such as conformance tests but it is unused for normal display
usage.

Change-Id: If98133bdaa759cdc41d4503ff695b225ee43cb6f

Conflicts:

libhwcomposer/hwc_utils.cpp
/hardware/qcom/display/msm8084/libexternal/external.cpp
96b413618bcdd213927494ca85f022bc78bbc60f 26-Feb-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: prefix the property name with hw

System property to be shared with the applications, they need
to have same UID.
Prefix the system property with "hw." so that it can be of system
UID and be accessed by any app.

Change-Id: Ie5db1b7e614728c53e1085089194cd8a58f9ae63
CRs-fixed: 456480
/hardware/qcom/display/msm8084/libexternal/external.cpp
90571fc7c38e38858ad22a79e95efcb99c3a8b1d 17-Jan-2013 Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> hwc: Allow HWC to support Virtual Display

This change allows virtual display to be composed
by HWC for supporting Google WFD App + QCOM WFD stack.

Change-Id: If8892230256e72fa34e3fb5ae715c3ad8cbd5b64
/hardware/qcom/display/msm8084/libexternal/external.cpp
50e19d2c536783fad3c29f8ffced6ba5915e7f06 16-Feb-2013 Naseer Ahmed <naseer@codeaurora.org> display: Close 0 fds

0 can be a valid file descriptor, make sure 0 fds are closed

Change-Id: I2bf2280d70eda74fa0b0a886ea54ecefc6854b24
/hardware/qcom/display/msm8084/libexternal/external.cpp
736f2b25c5dc2be95de68574efb1d094e5fdb4a0 13-Feb-2013 Linux Build Service Account <lnxbuild@localhost> Merge "display: Reconcile display HALs"
183dd0299958def06887c33f74611c2edab74ac1 12-Feb-2013 Linux Build Service Account <lnxbuild@localhost> Merge "libexternal: change the order of ioctl call for HDMI"
59644b2127280052ca410cb053f0a41c3181a97a 09-Feb-2013 Naseer Ahmed <naseer@codeaurora.org> display: Reconcile display HALs

Make the display HALs compile with/without the Qualcomm BSP
specific features so they can work with pure AOSP.
Change-Id: I1ad7282c4fe1fe7e3309afb530a07735f165ffbe
/hardware/qcom/display/msm8084/libexternal/external.cpp
97133affcb6618a547b5650771a97cd104b06405 07-Feb-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: change the order of ioctl call for HDMI

In driver PUTVSCREEN_INFO ioctl uses the META_DATA to configure, so
change the order in which the iocts are called during setResolution

Change-Id: I79e1bcf191756b3567b3e73a8eccd50ecb8857a7
CRs-fixed: 449567
/hardware/qcom/display/msm8084/libexternal/external.cpp
0ae34e340382b0b3b767b844305db19e91257edd 01-Feb-2013 Arun Kumar K.R <akumarkr@codeaurora.org> display: Add support for overscan compensation for ext display

- Read scan_info sys file node to check if TV underscans
- Apply action safe parameters to avoid overscan on ext display
- Store action safe width and height ratio using system property
- Use these to calculate the destination position on the ext display
- Remove unsed ActionSafe Class

Change-Id: Id27e6fa20966fb13fc16aa7e237cacce8caeb642
CRs-fixed: 447367
/hardware/qcom/display/msm8084/libexternal/external.cpp
129d67ba73aa87f84795f2ebe199004e5f8f9d02 28-Jan-2013 Linux Build Service Account <lnxbuild@localhost> Merge "external: use metadata ioctl to set vic"
e31290730a9c47d2d02b0ef1d7d766280fea17bc 16-Jan-2013 Ken Zhang <kenz@codeaurora.org> external: use metadata ioctl to set vic

Get rid of reserved field usage

Change-Id: Icad81d4065f559066a2722fa3227bddab75d665b
/hardware/qcom/display/msm8084/libexternal/external.cpp
df631660b7ecbcbb2c8a70753d2de26ea81a4afa 15-Jan-2013 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: set hw.hdmiON system property

- hw.hdmiON property is set to 1 when cable is connected
and 0 otherwise
- This property can be queried by other modules to know
if HDMI is connected

Change-Id: Id513711a676e6cb4eb9a99b3b208b05f6e021047
/hardware/qcom/display/msm8084/libexternal/external.cpp
c5bb51f047f080f2920994cfbd788d27800a8e89 10-Dec-2012 Arun Kumar K.R <akumarkr@codeaurora.org> libexternal: Add support for changing resolution on HDMI

- set the property hdmi.resolution with the required mode
(16,4,3,32,34,1)
- If that resolution is not supported by the TV, it will fall
back to the best mode supported by the TV

Change-Id: I90ceda02319e79e388035ba7b5926bdcf6625595
CRs-fixed: 430055
/hardware/qcom/display/msm8084/libexternal/external.cpp
eeb2868ac7dc7f962ccaa920e73767b0c2e3585f 07-Dec-2012 Naseer Ahmed <naseer@codeaurora.org> external: memset commit struct

Change-Id: I5e6d046f2fdff54fdd58aaca583c0ae8038a9a63
/hardware/qcom/display/msm8084/libexternal/external.cpp
620fc1f5f84e968c2e9b803e8580ee718c3c3f65 03-Dec-2012 Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> hwc: support WFD external display

Change-Id: I3d24ff1757e79c4b41ff6c6db17d0274cd665671
(cherry picked from commit f8942672226a7af26218aa8d325c1677ae2b83dd)
/hardware/qcom/display/msm8084/libexternal/external.cpp
71005afe9fda149b1bdd2720d0aed1414dc5a455 27-Nov-2012 Arun Kumar K.R <akumarkr@codeaurora.org> hwc: changes for hdmi hotplug and hpd

This commit has the following changes:
1. Use hdmi switch node for hdmi hotplug
- uses /devices/virtual/switch/hdmi switch_state to determine
the hdmi connect/disconnect
- this switch will be set to 1 on connect and 0 on disconnect
- on connect, open framebuffer device, will trigger the hdcp
authentication.
- the driver will set the hdmi_audio switch to indicate that
the HDMI sink supports audio
2. Enable HDP on unblank
- this will resolve the device freeze during the bootup with hdmi
connected

Change-Id: Id7a656d548a31178e31dcb9aea8acf38a56c9e0c
(cherry picked from commit 953b04b3cbba2f91d25795e5b0560c13d47844b0)
/hardware/qcom/display/msm8084/libexternal/external.cpp
16791f95b2570b9d48fa360875676e9c8559c0a1 29-Nov-2012 Naseer Ahmed <naseer@codeaurora.org> libhwcomposer: Add support for 4 layer MDP Comp

This change extends MDP composition to support
upto 4 layers by making border fill as base pipe and
using all MDP h/w pipes in overlay mode.

Conflicts:

libhwcomposer/hwc.cpp
libhwcomposer/hwc_utils.cpp
libhwcomposer/hwc_utils.h

Bug: 7626586
Change-Id: I01a0e53ddfbcf3ed46734f6f3bb0ef7d912ceac6
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libexternal/external.cpp
6e458c9164c7891d0f869a58c0ea12280c23e9ca 13-Oct-2012 Saurabh Shah <saurshah@codeaurora.org> hwc: clean up overlay for external from the draw thread only

Cleanup overlay for external from the draw thread. If done from the uevent
thread, its possible that the object being used by draw thread is deleted by
uevent thread.

This also removes unnecessary side-effects where libexternal sets states in
hwc, whereas, it could be set from hwc itself. There should be no need for
libexternal to modify states in hwc.

Bug: 7335863 (partial fix)
Change-Id: If07483e640abae2ced2418e0d5c8f278f8c6ec33
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libexternal/external.cpp
ee0d135b8a226b5844fd569fb166a90aa55bbba0 06-Oct-2012 Saurabh Shah <saurshah@codeaurora.org> hwc: external: Cleanup overlay objects on external disconnect.

Cleanup overlay objects and close fds when external is disconnected. Without
this, the external does not come on when cable connected-disconnected multiple
times when device is in suspended state.

Bug: 7150885 (part of the fix)
Bug: 7295979
Bug: 7150885 (partial)
Change-Id: I1ae2ce7220b9928dde332ce3644dbe671d25c7e6
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libexternal/external.cpp
76443245d153635b512539fbc68fdf7a904fdf6f 28-Sep-2012 Saurabh Shah <saurshah@codeaurora.org> hwc: enable dual display on hwc 1.1

Enable dual display on HWC 1.1; video uses overlay.

Bug: 7124159
Change-Id: I8333e46cfc74072f6259fba2b82368f0dd52b6df
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libexternal/external.cpp
b4e7df4fbb0a21bb4cd0e7b7506380cbfceae729 22-Sep-2012 Saurabh Shah <saurshah@codeaurora.org> libexternal: Call new IOCTL to commit on external display

From post() for external call the new ioctl MSMFB_OVERLAY_COMMIT
to update the external display.

The new IOCTL is faster than the default PAN and waits for DMAE to finish before
returning. This fixes tearing.

Bug: 7249589

Acked-by: Arun Kumar K.R <akumarkr@codeaurora.org>
Change-Id: Ic755e634d5f141a567c7d93f39c74bb087cd7044
/hardware/qcom/display/msm8084/libexternal/external.cpp
074dab343c4cfc5c77511a77247d759b10089a94 26-Sep-2012 Saurabh Shah <saurshah@codeaurora.org> (TEMP) hwc: external: Enable default mirroring on hwc1.1

Related to bug: 7124159

UI Mirror works with tearing because sync operates at primary vsync. Need
kernel patch to wait on external post.

Change-Id: I77116ef40ae25a2207feb5ca3cd9065ef0da6e4a
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libexternal/external.cpp
2e449280f98f003bb5831c274fc07ab722ac1a94 18-Sep-2012 Saurabh Shah <saurshah@codeaurora.org> hwc: hwc 1.1 implementation

Bug: 7124159

--External disabled
--MDP comp coded but disabled.
--Videos via overlay, so that secure videos can work.

Change-Id: Ie48b264143d5e4237ab9724e28930e3f68ba49ee
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libexternal/external.cpp
bbee5b1c3475b630caa5061fbf535f87f21743f7 08-Aug-2012 Saurabh Shah <saurshah@codeaurora.org> display: Create QService binder interface.

Add QService binder interface to enable communication
to display by the mediaserver for Securing/Unsecuring start and end
notifications.

Create separate lib for external.
Clear reserved field before applying format.

Change-Id: I463c9c6deac7587bd0c4e0b84513b5d0b5dd7e98
/hardware/qcom/display/msm8084/libexternal/external.cpp