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
display: Add BufferMirrorMode support for External

- In Buffer mirror mode, the output on the external should be rotated
  based on the primary orientation.
- this is used for the side sync feature.
- buffermirrormode has higher precedence over external orientation
- Add binder interface to enable/disable buffermirror mode

Change-Id: Ibea0af9627d69b4d42453adc868b113d82613437
hwc: Cleanup patch for SideSync and WFD/HDMI downscale feature

    Move block of code corresponds to SideSync and WFD/HDMI downscale
    feature to a seperate function.

Change-Id: Ib07cec61abf3a7226bc4dd2ebb9f313519114fd4
hwc:Donot invoke commit when wfd is in pause state

Donot invoke commit when wfd is in pause state
in hwc_set_virtual

Change-Id: I7202237e33b1b5de11f3bb1fdece4a897d3e6434
hwc: Call commit after unset of pipes

Call commit after unset of pipes as part of handling uevents

Change-Id: Ie140bb230a53a67389288191f7907f21215df059
Merge "hwc: Perform MDP downscaling for WFD/HDMI Scenario"
Merge "display: Add BufferMirrorMode support for External"
Merge "hwc: Cleanup patch for SideSync and WFD/HDMI downscale feature"
Merge "hwc: Call commit after unset of pipes"
Merge "hwc:Donot invoke commit when wfd is in pause state"
Merge branch 'jb_2.6_rb1.5' of git://codeaurora.org/platform/hardware/qcom/display into cm-10.2

Change-Id: I6be4811851ffcae2dfadf9e0df5454ccde9586ec