#  v4l2 control settings mt9m131 with v4l-ctrl
#  PHYTEC 2018, V0.3

# show all v4l Controls
#  =======================
v4l2-ctl [CAM_DEVICE] --all (list all)
v4l2-ctl [CAM_DEVICE] -L (list all detail)
v4l2-ctl [CAM_DEVICE] -H (help)

[CAM_DEVICE] = ipux_csix capture device
for example: v4l2-ctl -d /dev/v4l-subdev1 --all


#  set MT9M131 AEC on/off
#  ======================
# 0 = AEC on / 1 = AEC = off
v4l2-ctl -d [CAM_DEVICE] --set-ctrl=auto_exposure=0


#  set MT9M131 White Balance Automatic on/off
#  ==========================================
# 0 = WBA off / 1 = WBA = on
v4l2-ctl -d [CAM_DEVICE] --set-ctrl=white_balance_automatic=1


#  set MT9M131 GLOBAL GAIN
#  ===========================
# range [0 .. 252]
v4l2-ctl -d [CAM_DEVICE] --set-ctrl=gain=32


#  set MT9M131 MIRROR
#  ======================
#  If set flip row and/or column
v4l2-ctl -d [CAM_DEVICE] --set-ctrl=horizontal_flip=0
v4l2-ctl -d [CAM_DEVICE] --set-ctrl=vertical_flip=0


#  set MT9M131 TESTPATTERN
#  =======================
#  range [0 .. 7]
v4l2-ctl -d [CAM_DEVICE] --set-ctrl=test_pattern=0
