711 Commits

Author SHA1 Message Date
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
David Ng
1cf556fa5b hardware/msm7k: Add 8660 target support
Change-Id: I00e99fa0a3dd04e4e74cb36c515eecede97d7b77
2011-09-19 19:16:32 -05:00
Naomi Luis
a709f0300c libgralloc-qsd8k: Initial gralloc commit
Update the gralloc HAL to match commit:

        commit 4d3c9ca6fabf2b0111ef6b567df7d244e124b9c2
        Author: Arun Kumar K.R <akkr@codeaurora.org>
        Date:   Fri Dec 17 13:14:58 2010 -0800

            libgralloc-qsd8k: Add support for non-aligned width on HDMI

            While creating overlay channel for HDMI consider the aligned
            width and set the crop rectangle to the actual width and height.

Change-Id: I8858d71bb10b2be4c57edb605b5da680f53051dc
2011-09-19 19:16:32 -05:00
The Android Open Source Project
df13c41d1f am 5270e840: Reconcile gingerbread-plus-aosp and honeycomb
* commit '5270e8408cc59774ac7cd6e2f0349fa7038bf7d0':
2011-01-30 12:54:19 -08:00
The Android Open Source Project
7b02ed6fd1 Reconcile gingerbread-plus-aosp and honeycomb
Change-Id: I93cb2dd15d45909b451a35287f9f9d26ec931a13
2011-01-30 12:41:00 -08:00
The Android Open Source Project
c296d66092 Mass merge from gingerbread - do not merge
Change-Id: Ibd8955d17b77e827b5d36763717c8508c78860a3
2011-01-30 12:40:59 -08:00
Jean-Michel Trivi
7c56bddf1d am 39c0d4c0: (-s ours) do not merge bug 3370834 Cherrypick from master CL 79327
* commit '39c0d4c031d479a679900cb540253f42747cb810':
  do not merge bug 3370834 Cherrypick from master CL 79327
2011-01-29 09:54:33 -08:00
Andreas Huber
bdb29f6fce am ad47fcaa: (-s ours) Turning an assertion into an error log.
* commit 'ad47fcaa744f72cd34562730364916b6203535e0':
  Turning an assertion into an error log.
2011-01-27 11:24:10 -08:00
Jean-Michel Trivi
45b87acffd am b8cedf7b: (-s ours) am 39c0d4c0: (-s ours) do not merge bug 3370834 Cherrypick from master CL 79327
* commit 'b8cedf7bc99ad52d739949ea1af1184b489c04da':
  do not merge bug 3370834 Cherrypick from master CL 79327
2011-01-26 14:15:17 -08:00
Jean-Michel Trivi
8d5783dc30 am 39c0d4c0: (-s ours) do not merge bug 3370834 Cherrypick from master CL 79327
* commit '39c0d4c031d479a679900cb540253f42747cb810':
  do not merge bug 3370834 Cherrypick from master CL 79327
2011-01-26 14:12:47 -08:00
Andreas Huber
308b56d70a resolved conflicts for merge of ad47fcaa to honeycomb-plus-aosp
Change-Id: I2946b716b87c9834541cdbac1219c0f54d616281
2011-01-21 10:59:48 -08:00
Jean-Michel Trivi
92e6c00905 do not merge bug 3370834 Cherrypick from master CL 79327
Use input source to determine whether voice reco mode is enabled.

Change-Id: I1efe64904b19575b590ce4b83f44d18b7d064f6b
2011-01-20 12:06:07 -08:00
Andreas Huber
d304649a40 Turning an assertion into an error log.
Change-Id: I276945246449fcad2644805236a9e6b2a212090d
related-to-bug: 3314324
2011-01-18 09:43:30 -08:00
Eric Laurent
95825e3f61 am e784e44a: Fix issue 3158317.
* commit 'e784e44a0402aa4e9489e0b9f2f3d3685cf76a93':
  Fix issue 3158317.
2010-12-01 09:21:11 -08:00
Eric Laurent
cfb25d1036 Fix issue 3158317.
Do not open the input device when opening the input stream but
only when the input stream starts. This avoids blocking the thread
executing openInputStream() on the pcm input driver mutex while this mutex
is constantly acquired and released by the high priority audio
input thread.

It also allows an app to open an input stream while another thread is recording
if it does not use it immediately (useful for voice search and VoIP).

Also did some clean up in output and input stream standby logic.

Change-Id: I69c82f5833f7a034d828001f87e02745d7683b65
2010-11-19 09:13:34 -08:00
Jean-Michel Trivi
0a55195c63 Use input source to determine whether voice reco mode is enabled.
Change-Id: I19245b21320e8e5113740c87c84bc9287564f96a
2010-11-11 10:00:05 -08:00
Andreas Huber
abed0d15a5 am 7d308b99: (-s ours) Support for rotated display of video content.
* commit '7d308b99544a6e8c5387ccee7095a780dcd9f957':
  Support for rotated display of video content.
2010-11-08 13:20:27 -08:00
Andreas Huber
e5ff982521 Support for rotated display of video content.
Change-Id: Ia16e096287fb7b2432f7a142647edf4f5f038ced
related-to-bug: 3166122
2010-11-04 14:04:08 -07:00
Joe Onorato
857681cc16 am 637d2d04: Reduce logging.
Merge commit '637d2d047afc8033f91357725474b32b74173c65'

* commit '637d2d047afc8033f91357725474b32b74173c65':
  Reduce logging.
2010-10-19 13:37:06 -07:00
Joe Onorato
51f291d432 Reduce logging.
Remember, the system and main logs are
    - Shared resources
    - Primarily for recording problems
    - To be used only for large grained events during normal operation

Bug: 3104855
Change-Id: I1abde2ae74119ce8ffa69c8b6e8ff278c2c8029e
2010-10-18 19:13:43 -04:00
Jean-Baptiste Queru
1a6c5c1379 Merge f1b90c7d from gingerbread-plus-aosp
Change-Id: I2586418263a2755b69db315dbbae06960e758359
2010-10-18 08:16:55 -07:00
Iliyan Malchev
ba8565847e am b508a485: libaudio-qsd8k: acquire wakelock before starting playback
Merge commit 'b508a4857b07898fb8322a858c4ee9624bcf1180'

* commit 'b508a4857b07898fb8322a858c4ee9624bcf1180':
  libaudio-qsd8k: acquire wakelock before starting playback
2010-10-15 14:01:15 -07:00
Andreas Huber
c2d7566290 Include the framework copy of the OpenMAX headers instead of referencing external/opencore.
Change-Id: I950d84fb6e9c346c7989590f5a341036a5845ab8
related-to-bug: 3101573
2010-10-15 13:32:24 -07:00
Iliyan Malchev
ffb6733c66 libaudio-qsd8k: acquire wakelock before starting playback
This fixes issue 2410711.

Change-Id: I01161b3febc02914f2c7a9ed3c4c9ae121ce181a
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-10-13 19:25:45 -07:00
Mathias Agopian
08b5da348c am 15a9e53f: reject odd widths or heights for YV12 format
Merge commit '15a9e53fbeaf765bfa6ed795d270e5968b30acb8'

* commit '15a9e53fbeaf765bfa6ed795d270e5968b30acb8':
  reject odd widths or heights for YV12 format
2010-09-10 17:24:21 -07:00
Mathias Agopian
9efee771b2 reject odd widths or heights for YV12 format
Change-Id: I66cbb5fbc20630218947cd41552a95503b58e15e
2010-09-10 14:40:10 -07:00
Mathias Agopian
b6eda20485 am ad20ef6b: don\'t revert to ashmem if HW usage bits are set
Merge commit 'ad20ef6be061091a95353fbf71712a3a97618304'

* commit 'ad20ef6be061091a95353fbf71712a3a97618304':
  don't revert to ashmem if HW usage bits are set
2010-08-24 10:24:52 -07:00
Mathias Agopian
1f16706e84 am a91a220a: only set the PRIV_FLAGS_NEEDS_FLUSH flag on PMEM buffers
Merge commit 'a91a220ae435832209702ec59040036d276b63ca'

* commit 'a91a220ae435832209702ec59040036d276b63ca':
  only set the PRIV_FLAGS_NEEDS_FLUSH flag on PMEM buffers
2010-08-24 09:15:32 -07:00
Andreas Huber
20153cc699 Merge "We're no longer using the ISurface-based rendering code on Passion." 2010-08-23 12:31:52 -07:00
Andreas Huber
e32200a872 We're no longer using the ISurface-based rendering code on Passion.
Change-Id: Iee7b086bfcec2552e6f5bfbee974fffa12fe7835
2010-08-23 12:29:52 -07:00
Mathias Agopian
e440088ec8 am e6f90ec4: add qcom specific pixelformats
Merge commit 'e6f90ec4ffe9cdef941a3d0032dfa275c2a302ad'

* commit 'e6f90ec4ffe9cdef941a3d0032dfa275c2a302ad':
  add qcom specific pixelformats
2010-08-21 09:43:29 -07:00