withrobot / oCam

oCam - USB 3.0 Board Camera
GNU General Public License v3.0
54 stars 61 forks source link

Firmware R2101 has missing v4l controls for oCam-1CGN-U-T #24

Open harveybia opened 2 years ago

harveybia commented 2 years ago

This commit causes white_balance_red_component and white_balance_blue_component to disappear from v4l control options of the camera oCam-1CGN-U-T. I rolled back the firmware to R2006 and these control options came back. (Note: with windows viewer, white balance can still be changed with R2101 firmware for some reason)

(redacted)@(redacted):~$ uname -a
Linux (redacted) 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

With R2101 firmware, v4l2 options output:

(redacted)@(redacted):~$ sudo v4l2-ctl -l
                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=64 value=80
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=1 value=1
              exposure_absolute 0x009a0902 (int)    : min=1 max=1000 step=1 default=55 value=250

With R2006 firmware, v4l2 options output:

(redacted)@(redacted):~$ sudo v4l2-ctl -l
    white_balance_red_component 0x0098090e (int)    : min=0 max=250 step=1 default=100 value=130
   white_balance_blue_component 0x0098090f (int)    : min=0 max=250 step=1 default=100 value=148
                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=64 value=80
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=1 value=1
              exposure_absolute 0x009a0902 (int)    : min=1 max=1000 step=1 default=55 value=250