Revert "video: tegra: Fix filtering with SCAN_COLUMN on"

This reverts commit f08b3a1c970f72c6978979936d117b694ecaeba6.

Signed-off-by: David Yu <davyu@nvidia.com>
Change-Id: Ib9875132e313efafa28280f315a0c9314ca80dee
Reviewed-on: http://git-master/r/412001
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Conflicts:
	drivers/video/tegra/dc/dc_config.h
video: tegra: dc: swap rotated h/v filter check

When determining if the filter should be disabled because input == output,
use the SCAN_COLUMN flag to select the correct dimension.

Bug 1421307
Bug 1413155
Bug 1482737

Change-Id: I19dd5575fb41d8a2b6aa3ee12022acd14232afe4
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/340037
(cherry picked from commit 08f1bbbfd9c7484d38db8f4eac3868fa0e9d22c3)
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/412002
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

Conflicts:
	drivers/video/tegra/dc/dc_config.h
video: tegra: dc: fix filtering during rotation

SCAN_COLUMN works on the input, filters work on the output. Only input
settings need to be swapped when in SCAN_COLUMN mode (270/90 rotation).

This removes an inadvertant swap of H and V for the filter capabilities.

Bug 1421307
Bug 1413155
Bug 1482737

Change-Id: I53017429fe4f554517ad9e054a0116582585bb56
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/403755
(cherry picked from commit f2d3ce1df0ccd8401aab554853401b5e3afa6859)
Reviewed-on: http://git-master/r/412004
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
video: tegra: dc: fix nvsd smooth_k handling

When smooth_k is enabled, the NVSD driver determines
that hardware pixel gain and brightness calculations
are complete when it sees to consecutive and equal
brightness values. However, since multiple raw K
values are mapped to a single brightness value,
this check can be misleading.

To fix this, we continue checking for new brightness
values for a few additional frames after seeing repeating
brightness results. The number of frames is calculated
from smooth_k_incr.

Bug 1502587

Change-Id: I97f2ecd77398cf441ac720b6e306e0a1c89eed5d
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/423871
(cherry picked from commit ce039a7a6d0f0b3764dc1e719b297fc37e343f45)
Reviewed-on: http://git-master/r/435077
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
tegra: macallan: panel: enable smooth_k
input: gpio_keys: Fix disordered wakeup key reports

- If power key is released before gpio_keys_gpio_report_wake() called,
power key press-release events pair will be reported twice and supress
display from coming back up.
- If power key is released before enabling device driver to receive
interrupts, power key release interrupt will be lost due to the previous
pending key press intterupt, and we can only get the released key state.
Change to call gpio_keys_gpio_report_wake() and gpio_keys_report_state()
in gpio_keys_resume_noirq() callback to avoid the disordered reports.

Bug 1372600
Bug 1346985
Bug 1437458

Change-Id: I8e35f6012f2fc600f4dd830e1c191f9f2782e621
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/280231
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/357540
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>