overlay: Allow disabling secure playback

If the device's kernel isn't fully prepared for secure content
playback, having the secure field in the msm_rotator_img_info
struct will cause issues while playing out video.

The correct set of patches to the kernel (MDP, maybe vidc) needs
to be figured out for this to be enabled; to disable it,
add QCOM_NO_SECURE_PLAYBACK to the device's CFLAGS. (and remove
"secure" from msm_rotator_img_info)

Change-Id: I7949e918163e0acb2d6eb3d8881b04fb07b2be2c
framebuffer: add alternative RGBA offset for SEMC 7x30

Change-Id: Ibf4e4069a8ebc4808a383295ebe725adcd7a45f1
gralloc: stop the log spam

Change-Id: Ib433aefd0725198d0c7dd210b9f10de38f4f4aa2
hwc_external: Support auto-setting of HDMI resolution

For devices with trouble matching the HDMI clocks in the receivers,
add the possibility of letting the controller choose the resolution
on its own with the build-time TARGET_QCOM_HDMI_RESOLUTION_AUTO flag

Originally from CM9's Change-Id I3ca0639e9f644872a3585f04f2cf8180d8451f2c
at frameworks/base (on hdmid)

Change-Id: I5690213ef1b745c72107dbb2f0203c741580674d
hwcomposer: Use RGB_BORDERFILL only on MDP 4.2 and higher.

MDP 4.0 does not support RGB_BORDERFILL and causes the display to fail
initializing.

Patch Set 2: Actually set MDP_RGB format if not BORDERFILL.

Change-Id: Ib2007221c4dc78fd17ced97c0a0d28896c877b80
display: Add support for MDP 4.1

 * MDP 4.1 does not support the borderfill pipe and the baselayer logic
   should not be used.
 * Only use 3 pipes for MDP 4.1.

Change-Id: Ide542079902f35818300619f8eefd3d188342b5d
Older QCOM devices don't support DISPLAY_COMMIT

Change-Id: I9241adef001f26fb7611623a23e05e559589532f
overlay: Allow Mdss rotator support to be optional

Pre-MR1 kernels doesn't have this.

Change-Id: Ib149b48e84c3bd514f9e984db6076ab049b992c3
pmem: Fix compile error due to wrong type used

Change-Id: Id838089c9e713eb1674c3ba4e1bb4a811864d292
libgralloc : Correct the usage of pmem ioctl

Return error only if the ioctl PMEM_ALLOCATE_ALIGNED
returns negative value.

CRs-Fixed: 375513

(cherry picked from commit b1caf041824cedc268ced33e47a166070ec84f29)

Change-Id: Ie5e926648ff845dc04ce06e5c57e27dd214d1b45
display: Don't enable pixel repeat for YUV buffers

 * This can cause horrible things to happen on msm8660 like clock rates
   going to a zillion hz, hard lockups, artifacts, and the smell of
   fresh ozone in the air. Don't do it.

Change-Id: Ic3b8541fc149c593e46ca5ed0c1ee14cab6af71a
hwc: Only perform the yuv+composition workaround on MDP < 4.2

Change-Id: Ie69376b282b9eda58b0e8e010ead14b31367c1a0
overlay: Bring back debug.mdpcomp.maxlayer

 * We're having underrun issues with 4-layer composition. It generally
   works, but when the system CPU ramps down and the device is mostly
   idle, underrun is happening.
 * Limiting to 3 layers solves the problem temporarily on these devices.
 * Readd the option so that the issue can be debugged without afflicting
   our current users with massive amounts of flickering.

Change-Id: I7ab7d013f65eaf12a3d21a91229dcaad6a815069
Fix compile errors for devices with unsupported features

Change-Id: Id9901f7c90699fe5b39b7e7c0ef55709a4c7648a
Allow to setup fps manually

Change-Id: Ida4b2b5006906070822e52ef98236407615da70e
Update and clean makefiles for building in CM-10.1

Change-Id: I6c42b99b86f7ebb30961f73c0f4ba74ab510c957