[COMMON] media: smfc: store control variables at the start of H/W run
authorCho KyongHo <pullip.cho@samsung.com>
Mon, 4 May 2015 06:47:38 +0000 (15:47 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:30:56 +0000 (14:30 +0900)
commit7479b937682459af2103bc1410bacccfeb881602
treeb2eb30e18f4e72038723f2774161e685ca4f7a3e
parente03261594775a56c65e53a293eb586ca42a78928
[COMMON] media: smfc: store control variables at the start of H/W run

V4L2 control variables can be configured during H/W configuration.
Direct reference to the control variables several during H/W
configuration may result in inconsistent configuration to the H/W
because users may change the control variables during H/W
configurations. Therefore it is safe to keep a copy of the values
of the control variables before H/W configuration and to refer to
the copy. It is not important to configure the most latest values
of the control variables because the users do not know when the
H/W is configured.

Change-Id: I22a1b0d8a9ffa2e77b311559028fc2560a4eb122
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc-regs.c
drivers/media/platform/exynos/smfc/smfc.c
drivers/media/platform/exynos/smfc/smfc.h