Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 129
    • Issues 129
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • linux
  • Issues
  • #314

Closed
Open
Created May 01, 2021 by Sebastian Krzyszkowiak@sebastian.krzyszkowiakMaintainer

hi846: analogue_gain control has no effect

The selfie cam driver exports some V4L2 controls, like digital gain, exposure and analogue gain.

User Controls

                       exposure 0x00980911 (int)    : min=6 max=629 step=1 default=629 value=629

Image Source Controls

              vertical_blanking 0x009e0901 (int)    : min=151 max=65055 step=1 default=151 value=151
            horizontal_blanking 0x009e0902 (int)    : min=3160 max=3160 step=1 default=3160 value=3160 flags=read-only
                  analogue_gain 0x009e0903 (int)    : min=0 max=240 step=8 default=0 value=0

Image Processing Controls

                 link_frequency 0x009f0901 (intmenu): min=0 max=2 default=0 value=0 flags=read-only
                     pixel_rate 0x009f0902 (int64)  : min=0 max=0 step=0 default=0 value=32000000 flags=read-only
                   test_pattern 0x009f0903 (menu)   : min=0 max=9 default=0 value=0
                   digital_gain 0x009f0905 (int)    : min=0 max=8191 step=1 default=256 value=256

Adjusting them with v4l2-ctl works and changes the image produced (for example:)

v4l2-ctl -d /dev/v4l/by-path/platform-30a90000.csi1_bridge-video-index0 --set-ctrl digital_gain=8191 --set-ctrl exposure=2524

...except the analogue gain, which shows no difference in the produced image regardless of the value used:

v4l2-ctl -d /dev/v4l/by-path/platform-30a90000.csi1_bridge-video-index0 --set-ctrl analogue_gain=240
Assignee
Assign to
Time tracking