741 Commits

Author SHA1 Message Date
Naomi Luis
7a23eb34e1 libgralloc-qsd8k: support for specifying buffer size during allocation
Add support in the gralloc to specify the desired buffer size during
buffer allocation. This is done via a new function in the gralloc(allocSize).

If the specified size is lesser that the calculated size,
set the buffer size to the calculated size.

Change-Id: Iad9609d3b9074dcf3af07430966590078081ab72
2011-09-19 19:16:34 -05:00
Ravi Kumar Alamanda
62955d9fc4 libaudio-msm8660: Support audio routing to HDMI
- Contains audio routing to HDMI using HDMI device introduced by Google.

Change-Id: I0e8d136e1eb6a016e42135dd6d43e8fc55966d04
2011-09-19 19:16:34 -05:00
Ravi Kumar Alamanda
9ca5e8f394 libaudio-msm8660: Merge Audio HAL and AudioPolicyManager fixes from GB
Change-Id: I3847295182055ada26e75ff354013316d0633159
2011-09-19 19:16:34 -05:00
Arun Kumar K.R
e10754c16c gralloc: Avoid multiple signals from videoOverlayStarted
Signal hdmi_ui_loop from fb_videoOverlayStarted only if there is a
state change

CRs-fixed: 279095
Change-Id: I43bc87b4d78fae139bcfc0318ad8b271a6a325c7
2011-09-19 19:16:34 -05:00
Arun Kumar K.R
1ae5a28caa gralloc: Avoid unnecessary overlay set calls for HDMI
Call setPosition and setParameter for HDMI only when there is a
change in the rotation or position.

Change-Id: Id11b58408607c2f9799bb332c30d52f52957ec4e
2011-09-19 19:16:34 -05:00
Satya Durga Srinivasu Prabhala
64527a8af1 Cleanup copyrights in Makefiles
As per Copyright Markings guidelines, Makefiles shouldn't contain
any Copyright in them.

Change-Id: Iefa61b8713d2bfec21eb885dfe999b492da43681
2011-09-19 19:16:34 -05:00
Naomi Luis
73a28215fa liboverlay: Remove additional overlay SET ioctl calls.
The MSMFB_OVERLAY_SET ioctl gets called everytime there is a setSource called.
This is an expensive call and should not be done unnecessarily.

Change-Id: I2d9be394f48b9dea31b9f4f39b1b576c4ad42b47
2011-09-19 19:16:34 -05:00
Arun Kumar K.R
7017323f14 liboverlay: enable rotator only for primary display
Enable rotator only for primary if the panel type is MDDI

Change-Id: I513de9c022e2a92e8bcd8f683f332903f708e6fa
2011-09-19 19:16:34 -05:00
Omprakash Dhyade
a3742036fc liboverlay: Remove RGB specific checks
liboverlay assumes RGB format comes from UI,
which is incorrect. Remove RGB format checks.

Change-Id: I001d36dcc6bdec043c29b21c072be91bd45d4999
2011-09-19 19:16:34 -05:00
Arun Kumar K.R
1c9191bda5 liboverlay: Use rotator during video on MDDI panel
Always use rotator on the MDDI panel, irrespective
of rotation.

CRs-fixed: 271109

Change-Id: Ief0a7d3fc1bd3254ef50931cf7ee5c5bf02dfdee
2011-09-19 19:16:34 -05:00
Omprakash Dhyade
7e948c3238 overlay: Update startChannel function call
startChannel function prototype has changed.
One of the places it uses old signature,
update it with new signature.

Change-Id: Id0510187ffa13d7d750ad101030649134353b14b
2011-09-19 19:16:34 -05:00
Jeykumar Sankaran
5abeb9b1ea liboverlay: Calculate x and y values in setCrop on 180 degree rotation
This change calculates x and y values based on setcrop parameters and current overlay values on 180 degree rotation.

CRs-Fixed: 274707

Change-Id: Ibfe20c1a53e832424a880d99e73bd4a1c7b95173
2011-09-19 19:16:34 -05:00
Naomi Luis
c096d185f1 overlayLib: Add support for flipping the source
When the FLIP_H is passed, the overlay needs to flip the image along the vertical axis and similarly
when the FLIP_V is passed, the flip needs to happen along the horizontal axis

Change-Id: Iae31a1ca266e7e0bb9e598c88cb0728f35028052
2011-09-19 19:16:34 -05:00
Naomi Luis
8bd9729c72 overlay: Add S3D support over HDMI in the overlayLib
Change-Id: I1f650237f2de414fe248d4281ce22344049d2956
2011-09-19 19:16:34 -05:00
Naomi Luis
67b9bd9154 liboverlay: Set MDP_OV_PLAY_NOWAIT flag in overlay
Set the MDP_OV_PLAY_NOWAIT flag when there is a UI update during video playback

Change-Id: I0e71087a879fceaaab204bbd3acabcaaad676fe3
2011-09-19 19:16:34 -05:00
Omprakash Dhyade
553c4b501f overlay: Composition bypass changes
This change adds following to Overlay class
- is_fg, client could pass whether, FB need not be scaned.
- RGBX_8888 format is now supported.
- number of rotator buffers also could be passed which could be up to 3

Change-Id: I85519abc21e34642ef8f728948f1bd61f09a18cb
2011-09-19 19:16:34 -05:00
Naomi Luis
71a74457f1 overlay: Add support for flipping the source image
Add support for source horizonal and vertical flipping in the overlay.
Based on the final orientation and the flip information, set the correct
rotation value for the MDP.

Change-Id: Ie20022a8bf8f9725f01b4213b814cbe0af44625e
2011-09-19 19:16:33 -05:00
Naomi Luis
e03a345a11 libgralloc-qsd8k: Flush the cache after buffer allocation
Change-Id: Idb720b8c64b323216f77de834c83c328caccd6ef
2011-09-19 19:16:33 -05:00
Harshad Bhutada
36342178c2 libgralloc-qsd8k: Add support for triple buffering
Change-Id: I15c0a2c76f4ee1a87a8b2be369c24ab8d4c38101
2011-09-19 19:16:33 -05:00
Naseer Ahmed
8864a8d075 gralloc: Fix compilation issue with ashmem on 7x27
Change-Id: I02fcbd7bdefd83be4a55a79ccd82c0df4b74f7ae
2011-09-19 19:16:33 -05:00
Saurabh Shah
f7c6371137 hardware/msm7k: Fix aspect ratio in HDMI UI
For portrait mode: Actionsafe width depends on actionsafe
height, thus maintaining the  aspect ratio.
User entered value for actionsafe width doesn't matter.

For landscape mode: Both, user entered actionsafe width
and height matter. Aspect ratio may change, in an attempt to fill
up the TV screen till the edges to avoid overscan/underscan.

Picks actionsafe rectangle as the final rectangle.

Change-Id: I4e16a2d57978d3443283e9311c2efdc6494f8a94
CRs-fixed: 271567
2011-09-19 19:16:33 -05:00
Shubhraprakash Das
76595c17bd libgralloc-qsd8k: Port part of change Ice6a7c28
Port over part of change Ice6a7c28 that frees ashmem
memory.

Change-Id: I467617f3bc35a0e448fbf41207853e669aed657a
2011-09-19 19:16:33 -05:00
Saurabh Shah
a2d029bef1 hardware/msm7k: Fix position, aspect ratio on HDMI UI
Fix position, aspect ratio of HDMI UI when the
primary panel type is MIPI, 8660 Panel or 7x30 Panel

Change-Id: I8e9824520317e3facb4ef25bc25dd9b1de60b4ce
CRs-fixed: 263690, 269433
2011-09-19 19:16:33 -05:00
Naomi Luis
ed76fc69a8 libgralloc-qsd8k: Close the gralloc module
Close the gralloc module in the fb_device_open api.

CRs-fixed: 269234

Change-Id: Ifcb1909e0cf8bf40f2b505716cb624531309556b
2011-09-19 19:16:33 -05:00
Naomi Luis
cd8f8d8e84 libhwcomposer: Close the overlay channel after video/camera playback.
Change-Id: I321acdb5ff00d7d70399d044473ef9b5ad9f547e
2011-09-19 19:16:33 -05:00
Naomi Luis
7b7b48531e libhwcomposer: Set the correct copybit parameters
Set the correct parameters for the source and destination rectangles
when drawing the layer using copybit.

Change-Id: I6ab7e2b5ba7b457a5bc604fd3a0031e6bada82cb
2011-09-19 19:16:33 -05:00
Sridhar Parasuram
2a50a0a894 Fix copyright markings
Change-Id: I2170d0dbd9270bcfd38ea2f8c7052ac387b9e0c9
2011-09-19 19:16:33 -05:00
Naomi Luis
9cdf0b93ca libgralloc-qsd8k: Align the chroma size for NV12Tiled formats to 8K
The video decoder requires the chroma and luma sizes to be aligned to 8K.

Change-Id: Ie378728647348812197b48ca4a9299344e56c3af
2011-09-19 19:16:33 -05:00
Naomi Luis
06304d437b Align pmem for NV12 Tiled buffers
The decoder requires the NV12Tiled buffers to be physically aligned to 8k.

Change-Id: I07a40d2a390601192a01213a5de94df2ab1ee06c
2011-09-19 19:16:33 -05:00
Vinay Kalia
4fa0ce6a29 Fix compilation for new snapshot
Change-Id: I5c932523c1fed2e5a69e2e193b89afbcf475f78e
2011-09-19 19:16:33 -05:00
Naomi Luis
aedeaccc6a overlayLib: Set the MDP_OV_PLAY_NOWAIT flag for non RGB buffers
Change-Id: I6e3323cbc59125e1d52883c3a41d0950b3caefef
2011-09-19 19:16:33 -05:00
Naomi Luis
3be64f08f9 libgralloc-qsd8k: Close the masterFd when freeing video/camera buffers
Buffers allocated from the adsp or smipool regions have a masterFd associated with each buffer.
Make sure both the fds are closed when the buffers are freed to avoid memory leaks.

Change-Id: I7dd194bae9ebfffb5e8c1ed647bff6210409a731
2011-09-19 19:16:33 -05:00
Vinay Kalia
27a57f3a80 libstagefrighthw: Using libstagefrighthw plugin for loading components.
Change-Id: Ia8e738a0da024c94fe773b3c93177dfd4f492f9a
2011-09-19 19:16:33 -05:00
Naomi Luis
05ff4bb661 copybit_c2d: Set the kgsl memory type as pmem for buffers with the PRIV_FLAGS_USES_PMEM_ADSP flag
Gralloc buffers which have the PRIV_FLAGS_USES_PMEM_ADSP
flag are allocated from a pmem region.

Set the kgsl memory type to PMEM to reflect this change.

Change-Id: Id5b84277ddec5cc9550aa97d2789df4d1bc2b2b5
2011-09-19 19:16:33 -05:00
Naomi Luis
ac47ade639 hwcomposer: Add support for C2D/MDP composition
Add support in the HWC to use C2D and MDP composition via the copybit HAL

Change-Id: I19a98d9821600fdfbadcab53329027ef17aa8f1f
2011-09-19 19:16:33 -05:00
Naomi Luis
f59c70eab4 libhwcomposer: Add null checks
SurfaceFlinger calls a hwc_set with a NULL context and
list when it is releasing the HWC. Check the validity
of the pointers before using it.

Change-Id: I5b61cc50a85b9b660646789b2cf9a0f4ee6e4a5c
2011-09-19 19:16:33 -05:00
Arun Kumar K.R
7e5f14bb48 Add support for video on HDMI
Enable video on HDMI when cable is connected.
Inform gralloc module when video playback starts and stops.

Change-Id: Icc2a1b62fcd8cf75c1be98d88c3fa4dc49ef0278
2011-09-19 19:16:33 -05:00
Arun Kumar K.R
49d7fa781d hwcomposer: Add support in the HWC to store the HDMI connection status
Change-Id: Id9afe4da3b69465e356c16a227653896f2fd86c5
2011-09-19 19:16:33 -05:00
Naomi Luis
9c8bc18f79 overlay: Add support for enabling/disabling HDMI
Add support in the overlayLib to enable/disable and queue the buffers
to the primary or secondary based on the hdmi connected parameter.

Change-Id: Ie6c780e4076b0b84e6457a0503ec511ff2b8c452
2011-09-19 19:16:33 -05:00
Naomi Luis
5a1bf4cb9e overlay: Add support for additional S3D formats
Add support for Side-by-Side full, Side-By-Side-half formats in the overlay.
The Side by Side half formats could either be in Left-Right or Right-Left mode.

Change-Id: Ie1f0ccb5b1a8254f7256aafdd3f0ce9a3faa0df4
2011-09-19 19:16:32 -05:00
Naomi Luis
3a51941fe6 Add support for S3D content over HDMI
Add support in the overlay to display 3D content on the HDMI.
The 3D input and out formats are passed along with the regular color format.

Change-Id: I4e0338e8b2c07eca0f211c50a17bf7d82c35279b
2011-09-19 19:16:32 -05:00
Chetan Kalyan
5fe46458a5 Overlay: Return error if crop values are invalid
Return an error to the caller if input crop rectangle values are incorrect

Change-Id: Ie1bf9ac0dbcfba0becee0864b44903abd4016873
2011-09-19 19:16:32 -05:00
Saurabh Shah
6ec5b1553f hardware/msm7k : Fix centering of low resolution clips
Change-Id: I90825fd77376325fe9427d1a739be4bec13ff1e3
CRs-fixed: 269485
2011-09-19 19:16:32 -05:00
Naomi Luis
1e95e224d6 libgralloc-qsd8k: Move the OMX format definitions to gpu.cpp
Change-Id: Ieb6e1f07b6e676d6d9556572a61b70780e4483fc
2011-09-19 19:16:32 -05:00
Naomi Luis
7725e18ca3 libcopybit: Add copybit and copybit_c2d changes from Gingerbread
Change-Id: I39ccc7579f89d08eae809b47e434601aee6973a2
2011-09-19 19:16:32 -05:00
Naomi Luis
13ac17278d hwcomposer: Initial version of the Hardware Composer HAL
Initial HWC changes
- Add support to recognize video/camera buffers in the prepare phase
- Use overlays to draw single video/camera layers

Change-Id: I3351b3172fae12d9f6e016ff7e1a2f6a476799b3
2011-09-19 19:16:32 -05:00
Naomi Luis
d1fc805f34 libgralloc-qsd8k: Initial gralloc changes for honeycomb
This commit contains the following changes in the gralloc:
- Add buffertype in the gralloc handle i.e video buffer or UI buffer
- Add support for allocating memory from the /dev/pmem_smipool
- Add support for obtaining the buffer type and the HAL formats from the
input format which could be an OMX format.
- Add buffer type, format, width and height in the gralloc handle

Change-Id: Ie801cfcf5cea9c4b718b75e88abf71be6b087de7
2011-09-19 19:16:32 -05:00
David Ng
155d9fa5fb liboverlay: Add liboverlay and enable for MSM8660 target
liboverlay based on MSM8660-1066 release.

Change-Id: Ic9453d38c5a60b40728e2a3651f7a065d802817e
2011-09-19 19:16:32 -05:00
David Ng
53cb829a9c libaudio-msm8660: Initial commit from MSM8660-1066
Change-Id: I69961d6b29859955ee8ed3d7a7a0c45bdc913209
2011-09-19 19:16:32 -05:00
David Ng
68b2ebce12 librpc: Initial HC commit with Gingerbread version
Snapshot from MSM8660 release 1066.

Change-Id: I7ad104eb64d2807d159c2244c3659fd9dfb1f7b7
2011-09-19 19:16:32 -05:00