Skip to content
Commit cbf104f3 authored by Phi Bang Nguyen's avatar Phi Bang Nguyen Committed by Benjamin Cabé
Browse files

drivers: video: Add get_volatile_ctrl driver's API



Add get_volatile_ctrl() driver's API to retrieve the current value of a
control marked as volatile, e.g. gain, exposure. This function triggers
a hardware register reading instead of returning a cached value to ensure
that users always get a fresh value which is constantly updated by the HW.

Note that the driver is responsible for marking a control as volatile by
setting VIDEO_CTRL_FLAG_VOLATILE when registering a control because not
all hardwares work the same way for the same control.

Signed-off-by: default avatarPhi Bang Nguyen <phibang.nguyen@nxp.com>
parent f363bd6e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment