Rock 3A Camera support

use cmd “v4l2-ctl -d /dev/video0 -l”, and you will see:

root@rock-3a:~# v4l2-ctl -d /dev/video0 -l

User Controls

    white_balance_automatic 0x0098090c (bool)   : default=0 value=0
                   exposure 0x00980911 (int)    : min=4 max=500 step=1 default=500 value=500
             gain_automatic 0x00980912 (bool)   : default=0 value=0
            horizontal_flip 0x00980914 (bool)   : default=0 value=0 flags=modify-layout
              vertical_flip 0x00980915 (bool)   : default=0 value=0 flags=modify-layout

     Camera Controls

              auto_exposure 0x009a0901 (menu)   : min=0 max=1 default=1 value=1

    Image Source Controls

          vertical_blanking 0x009e0901 (int)    : min=24 max=32287 step=1 default=24 value=24
        horizontal_blanking 0x009e0902 (int)    : min=1212 max=1212 step=1 default=1212 value=1212 flags=read-only
              analogue_gain 0x009e0903 (int)    : min=16 max=1023 step=1 default=32 value=128

     Image Processing Controls

             link_frequency 0x009f0901 (intmenu): min=0 max=3 default=0 value=0
                 pixel_rate 0x009f0902 (int64)  : min=55000000 max=55000000 step=1 default=55000000 value=55000000 flags=read-only

then you can use cmd “v4l2-ctl --set-ctrl=analogue_gain=xxx” to change some param for camera, and you can change any of list ctrl(analogue_gain exposure white_balance_automatic .. and so on).

for example: “v4l2-ctl --set-ctrl=analogue_gain=512”, you will see like this: