Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L librem5-devkit-tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • librem5-devkit-tools
  • Merge requests
  • !230

test_cameras: update for newer kernels

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Martin Kepplinger requested to merge martin.kepplinger/librem5-devkit-tools:cam_for_5.15 into pureos/byzantium Sep 30, 2021
  • Overview 7
  • Commits 1
  • Pipelines 3
  • Changes 3

Linux 5.15 and later include new media csi drivers. Rename the test files to be a bit more descriptive. we test raw i2c communication in test_cameras_i2c.py and test the (new) media control and v4l2 interface in test_cameras_api.py.

and yes, this looks like it randomly tests that analogue_gain is available. That control is random, it should rather test that there is valid data output from that call. The long way of doing the v4l2-ctl call is:

media-ctl -d "platform:30b80000.csi" --entity "S5K3L6-CIS 3-002d"
/dev/v4l-subdev2
v4l2-ctl -d /dev/v4l-subdev2 --all

and that is possible in one go in v4l2-ctl now, but requires all new drivers to be set up correctly.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: cam_for_5.15