Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: media: imx500: Simplify the vblank control init #6388

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

naushir
Copy link
Contributor

@naushir naushir commented Sep 26, 2024

Set the VBLANK control minimum and default values to IMX500_VBLANK_MIN unconditionally everywhere.

Remove the mode specific framerate_default parameter, it is now unused.

Set the VBLANK control minimum and default values to IMX500_VBLANK_MIN
unconditionally everywhere.

Remove the mode specific framerate_default parameter, it is now unused.

Signed-off-by: Naushir Patuck <[email protected]>

/* Setting this will adjust the exposure limits as well. */
__v4l2_ctrl_s_ctrl(imx500->vblank, frm_length_default - mode->height);
__v4l2_ctrl_s_ctrl(imx500->vblank, IMX500_VBLANK_MIN);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically not needed as __v4l2_ctrl_modify_range will update the value if the current value is out of range and call s_ctrl.

There was a debate previously over whether setting the mode should reset the frame rate controls or not, but I don't think there was ever a final decision.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, but I'd prefer to leave it in to preserve existing code that I've been testing with 😄

@pelwell pelwell merged commit 0094eba into raspberrypi:rpi-6.6.y Sep 26, 2024
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Sep 26, 2024
See: raspberrypi/linux#6368

kernel: tty/serial: pl011: Also unregister pl011_axi_platform_driver
See: raspberrypi/linux#6380

kernel: overlays: wm8960-soundcard: Fix clock declaration
See: raspberrypi/linux#6387

kernel: Fix speaker disabling issue after closing microphone app
See: raspberrypi/linux#6383

kernel: ASoC: bcm2835-i2s: Set the PERIOD_BYTES min to 256
See: raspberrypi/linux#6386

kernel: drivers: media: imx500: Simplify the vblank control init
See: raspberrypi/linux#6388
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Sep 26, 2024
See: raspberrypi/linux#6368

kernel: tty/serial: pl011: Also unregister pl011_axi_platform_driver
See: raspberrypi/linux#6380

kernel: overlays: wm8960-soundcard: Fix clock declaration
See: raspberrypi/linux#6387

kernel: Fix speaker disabling issue after closing microphone app
See: raspberrypi/linux#6383

kernel: ASoC: bcm2835-i2s: Set the PERIOD_BYTES min to 256
See: raspberrypi/linux#6386

kernel: drivers: media: imx500: Simplify the vblank control init
See: raspberrypi/linux#6388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants