145 Commits

Author SHA1 Message Date
Kalyani polepeddy
3f23890374 hardware/msm7k : Add new target msm7627_6x
Change-Id: I896ca4507a706e3e35a3a5c1b815dd7fea8e3e6a

Conflicts:

	libgralloc-qsd8k/Android.mk
2011-10-05 15:33:19 +05:30
Anshul Gupta
b632d742e7 build: standardize building conditionally for qcom chipsets
Replace QCOM_TARGET_PRODUCT usage with make functions provided by
build/core/utils.mk to build conditionally for qcom chipsets

Change-Id: I98e2341f46a59de597e8a9ed757d9c6b88bae588
CRs-Fixed: 298335
2011-09-21 18:26:53 +05:30
Naseer Ahmed
3421d7556e gralloc: Remove pmem hack for unicorn
pmem_adsp is now cached for unicorn and the
video encoder does not use any display pmem.
Hence, it is no longer needed to map a hardcoded value

Change-Id: Ib012da39e4aedb5c8d4d6666def38f95c900e575
2011-09-07 12:54:15 +05:30
Naomi Luis
e835f16741 libgralloc-qsd8k: Use correct vaddr for clean/invalidate pmem regions
CRs-fixed: 304740
Change-Id: Id72bb9ae874a56be89aec79d23e8d2e79856409d
2011-09-06 13:16:35 -07:00
Linux Build Service Account
a00b44f664 Merge "libgralloc-qsd8k: Invalidate the ashmem cache" into gingerbread 2011-08-09 19:50:29 -07:00
Naomi Luis
3039436e1e libgralloc-qsd8k: Invalidate the ashmem cache
Invalidate the ashmem cache after allocating an ashmem buffer.

Change-Id: I874711297c983d64646e069c17c1f2880c4af3d9
2011-08-02 13:51:12 -07:00
Manas Abichandani
dec023e3ef hardware/msm7k: Fix a leak of file descriptors
CRs-fixed: 297010

Change-Id: I62ac2ab3407cd91ec8c1b25f4ad00d33e7b34ad4
2011-07-28 00:07:13 -06:00
Linux Build Service Account
0dbb66c46e Merge "gralloc-qsd8k, liboverlay: Change closeBypass flow." into gingerbread 2011-07-27 06:44:39 -07:00
Omprakash Dhyade
a5ed7b74ba gralloc-qsd8k, liboverlay: Change closeBypass flow.
Following changes are included in this commit:
1) CloseBypass will just update one flag.
2) Close channel will be done in disp_loop.

This is needed so that we make sure, close channel happens
only after framebuffer has been sent to MDP.

CRs-fixed: 292152
Change-Id: I1d4b9930ad98fd8c437a3e5641c605842c63a91d
2011-07-26 14:32:52 -07:00
Naomi Luis
58e28d8615 libgralloc-qsd8k: Fallback to ashmem if pmem allocation fails
If we are not using MDP composition, and the pmem allocation fails,
try allocating the surface memory from the ashmem region, if a PMEM
surface is not explicitly requested.

Change-Id: I528cd6b31cc84fb3a4b4611cf197baffe1465ee9
2011-07-26 12:39:57 -07:00
Linux Build Service Account
c27e302c7d Merge "ligralloc-qsd8k: Add debug feature to display FPS" into gingerbread 2011-07-24 23:45:42 -07:00
Naseer Ahmed
d2b8c6667d msm7k: Add support for non-cached blit
Add support for the userspace to make MDP
avoid flushing the source image buffer
This change is needed if we are using
cached video buffers. Since the MDP driver
used to flush the entire source buffer before
the blit, it was a huge overhead in terms of CPU
usage for cases where the entire buffer didn't
really need flushing. Any clients that modify
the video buffers with CPU should now ensure that
they flush the region that they modified (if the
memory is cached)

Change-Id: I94572644ed5aefac3184b45df05d10be0f2c7660
2011-07-15 00:05:26 +05:30
Linux Build Service Account
e96423187e Merge "gralloc: Clean pmem caches after memset" into gingerbread 2011-07-13 10:12:57 -07:00
Naseer Ahmed
661fad9412 gralloc: Clean pmem caches after memset
Change-Id: If403dde70863e0d6ea221f2a105b86bdec134261
2011-07-11 13:50:22 +05:30
Naseer Ahmed
fc570c7782 gralloc: Add YV12 support
Change-Id: I49da8312dda70b6d7038d9bbc1c8abfcad44f128
2011-07-06 15:42:52 +05:30
Harshad Bhutada
07447a0e88 ligralloc-qsd8k: Add debug feature to display FPS
Change-Id: I5fd7d605db7067044c4839cbb0d3544a25410b7f
2011-06-29 11:48:48 +05:30
Saurabh Shah
c541ee93f1 Use reserved[4] field for storing fps
Use reserved[4] field for storing fps, since reserved[3]
is used by HDMI

Change-Id: I4cc94eb0359b71bf15ae025e30fdad3fc96ae1fd
2011-06-23 15:35:05 -06:00
Linux Build Service Account
13202f9fa8 Merge "hardware/msm7k: Add an api to copy bypass buffer." into gingerbread 2011-06-21 20:02:23 -07:00
Omprakash Dhyade
e53fd36f0a hardware/msm7k: Add an api to copy bypass buffer.
Add an api to copy bypass buffer. De-couple
comp. bypass functions from HDMI feature defines.

Change-Id: I743a80518c29a04bcf61e48d189b07636026afc7
CRs-fixed: 288992
2011-06-17 12:12:17 -07:00
Harshad Bhutada
102a78d2ee libgralloc-qsd8k: Dynamic ASHMEM
When USE_ASHMEM is set, ASHMEM will be used only for non-MDP composition.
This implementation will force to use PMEM for MDP composition case. This
will allow using ASHMEM or PMEM at run time, depending on the composition
type. USE_ASHMEM would mean that use ASHMEM where possible.
This will also make sure that video works properly when dynamic ASHMEM
feature is enabled on 7x27 / 7x27a / 7x25a targets.

Change-Id: I5860311aad20d33e2d078cd6f0d05e041ff3364a
2011-06-16 01:06:43 -06:00
Saurabh Shah
5f4aad3d12 Remove FPS calculations from userspace.
The FPS is stored in reserved[3] field of fb_var_screeninfo
structure. Read directly from this field.

Change-Id: I052dc3c20a8a38995881cd4d743c13d9522f9246
CRs-fixed: 283750
2011-06-10 21:30:17 -06:00
Naseer Ahmed
43330bed60 Revert "libgralloc-qsd8k: Align the framebuffer only for GPU or C2D composition"
This reverts commit 80df10595720594cf661b8812507ba75b2bafd1e.

Revert "libgralloc-qsd8k: Set the framebuffer offsets correctly"

This reverts commit 09a31858f42978c29e0c7014713748d413b3c587.

It is no longer a requirement for GPU to be 4k aligned, hence
reverting these 2 changes.

Change-Id: I39e6f6324353a3c19bfdf523f8862408ef9a4093
2011-06-10 12:29:15 +05:30
Saurabh Shah
53316df74a Implement ActionSafe ratios in OverlayOrigRes class
Implement ActionSafe ratios in OverlayOrigRes class
Change class internal design.

Change-Id: I42a7f9b00dfd3e760b2162a1f7f36d679440363f
CRs-fixed: 285165
2011-06-06 18:18:01 -07:00
Saurabh Shah
e1d83ee15a Fix Tearing, stuttering for Original resolution surface.
Design now uses OverlayUI class. Flow goes through gralloc
to avoid race conditions with mirroring, when video is
played via Gallery.

Change-Id: If18c1f84a99aae38a6a4a20da7dff804ae05b8be
CRs-fixed: 285186, 286930, 286596
2011-05-26 13:28:00 -07:00
Saurabh Shah
eab9c40b8b Simplify call flow for action safe parameters.
Observed overscan in case of videos and UI
This change fixes all the paths and eliminates overscan
Adds a class to save user specified action safe parameters

Change-Id: I8c65b1142b086f5ff0d568c5f5c87fcde9642d5b
CRs-fixed: 285165
2011-05-17 04:34:14 -06:00
Linux Build Service Account
0ba2a7c861 Merge "libgralloc-qsd8k: Align the framebuffer only for GPU or C2D composition" into gingerbread 2011-05-06 15:50:52 -07:00
Naomi Luis
8950548d7d libgralloc-qsd8k: Align the framebuffer only for GPU or C2D composition
Change-Id: Iba334eb14d5af3eadf88534faaa86d2ae613f037
2011-05-04 13:13:54 -07:00
Naomi Luis
3db200d1bb libgralloc-qsd8k: Modify perform to use memory region
Modify the GRALLOC_MODULE_PERFORM_CREATE_HANDLE_FROM_BUFFER function
to take into account the memory region that the buffer has been
allocated from.

Change-Id: Ifac7b117956b39e54911b1b7693c0f4b959c630b
CRs-fixed: 284900
2011-05-04 12:45:44 -07:00
Naomi Luis
a447596a60 libgralloc-qsd8k: Set the framebuffer offsets correctly
The offsets for the framebuffer needs to start at a 4K aligned address.
Calculate the additional delta for the yoffset, the virtual address for flipping
as well as the total framebuffer size required to achieve this

Change-Id: Idfd70be10a24ac464ec820494b66d506a03a983b
CRs-fixed: 273888
2011-04-28 13:03:56 -07:00
Aparna Mallavarapu
5ed080eb34 libgralloc-qsd8k: Add support for 7627A
Change-Id: I5ae4573b546d4de23648be2933f7b693da4372c1
2011-04-16 00:02:54 -06:00
Arun Kumar K.R
3175fdf201 hardware/msm7k: Remove ioctl call from getOrientation
- The ioctl call from getOrientation is removed.
- In gralloc use getOrientation instead of storing the
  orientation.

Change-Id: Idb08568ff5d46ce99e0a9a8c6f492b90bb666f0c
2011-04-08 05:17:46 -06:00
Omprakash Dhyade
784aa08948 gralloc-qsd8k: Add comp. bypass feature
Add comp. bypass post API. This api uses OverlayUI
class to post application surface to MDP.

Change-Id: I2b3d4caeee2681a189059dcac4ead85d17722379
2011-04-07 16:30:53 -07:00
Kinjal Bhavsar
9d197b4c3b liboverlay: Add TV detection and monoscopic display for S3D
Add the state machine for overlay configuration. When connected,
check whether the TV on HDMI is 3D capable or not using the EDID
info. Show L channel on primary panel; and R channel on 2D TV if
non 3DTV is connected via HDMI, else switch TV to 3D mode.

Change-Id: I3109f8b0b81a8f5ad542db038262fd668e225e96
2011-04-05 18:29:45 -06:00
Linux Build Service Account
8fce0f895f Merge "liboverlay: Always use rotator for UI mirroring on HDMI" into gingerbread 2011-04-04 19:38:45 -07:00
Linux Build Service Account
55607ad9da Merge "libgralloc-qsd8k: Flush ashmem region cache instead of Invalidating it" into gingerbread 2011-04-04 15:31:01 -07:00
Arun Kumar K.R
b560c2e860 liboverlay: Always use rotator for UI mirroring on HDMI
- Use rotator buffer for UI mirroring on HDMI
- Avoid ioctl calls on getPosition

CRs-fixed: 278858
Change-Id: Id390e2b85fe939d8388ed17f5f9c7fcd30499755
2011-04-04 12:46:52 -07:00
Kinjal Bhavsar
6b6d116e95 msm7k: Use sanitized kernel headers
Add the exported sanitized kernel headers to include path in C2D/
copybit, gralloc and overlay HAL libraries.

Change-Id: Id60adf8cbd57d1d639d98f712bdc920adace33c3
2011-03-30 18:41:16 -07:00
Harshad Bhutada
7da3b2c955 libgralloc-qsd8k: disable framebuffer state related error reporting when swapinterval set to 0
Change-Id: I916408280dc155e4448de9303272dfbd5dc1c423
2011-03-25 13:55:37 -06:00
Shubhraprakash Das
7c67393bc8 libgralloc-qsd8k: Flush ashmem region cache instead of Invalidating it
ashmem ioctl does not allow the ashmem region to be invalidated
anymore, so we have to flush the ashmem region instead of simply
invalidating it.

Change-Id: I912d2cf293e6ad39d40fb04fd0a1d21700a3907b
2011-03-21 14:48:19 -06:00
Linux Build Service Account
2328b3c79b Merge "gralloc: Avoid multiple signals from videoOverlayStarted" into gingerbread 2011-03-17 16:14:34 -07:00
Arun Kumar K.R
3400eb4a89 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-03-16 15:01:34 -07:00
Satya Durga Srinivasu Prabhala
a8d5925278 Cleanup QCOM usage of LOCAL_MODULE_TAGS
Starting from GB, modules which doesn't have LOCAL_MODULE_TAGS
defined (default to user tag) or which has user tag and not part
of GRANDFATHERED_USER_MODULES does throgh ERROR/WARNING
message. To supress these WARNING messages, we need to add
optional tag.

Targets tested on:
msm8660_surf

Tests:
Did a build from scratch

Change-Id: I13484250258582dc7c05e1893712719660a8ff06
2011-03-15 20:08:37 +05:30
Arun Kumar K.R
fb772f887b 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-03-10 16:39:29 -08:00
Naomi Luis
c2516125da libgralloc-qsd8k: Flush the cache after buffer allocation
Change-Id: Idb720b8c64b323216f77de834c83c328caccd6ef
2011-02-18 14:49:30 -08:00
Harshad Bhutada
a0d56b4f1c libgralloc-qsd8k: Add support for triple buffering
Change-Id: I15c0a2c76f4ee1a87a8b2be369c24ab8d4c38101
2011-02-07 17:53:26 -07:00
Linux Build Service Account
7bf92de13a Merge "gralloc: Fix compilation issue with ashmem on 7x27" into gingerbread 2011-02-07 03:15:47 -08:00
Linux Build Service Account
cffd3354a7 Merge "gralloc: Add support for YCrCb_420_SP allocs" into gingerbread 2011-02-03 04:51:45 -08:00
Naseer Ahmed
aa2384f58d gralloc: Fix compilation issue with ashmem on 7x27
Change-Id: I02fcbd7bdefd83be4a55a79ccd82c0df4b74f7ae
2011-02-03 10:00:42 +05:30
Naseer Ahmed
9b2fea998b gralloc: Add support for YCrCb_420_SP allocs
CRs-fixed:272635
Change-Id: I61503b9591c7db2f0aa6c912dba2a829c30263dc
2011-01-28 16:20:45 +05:30
Naomi Luis
90a29ea10e 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: I1274529f75e69e10443705c863599936c45a7148
2011-01-27 12:23:06 -08:00