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

media: i2c: ov9282: Correct the exposure offset #6522

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Dec 9, 2024

The datasheet lists that "Maximum exposure time is frame length -25 row periods, where frame length is set by registers {0x380E, 0x380F}".
However this driver had OV9282_EXPOSURE_OFFSET set to 12 which allowed that restriction to be violated, and would result in very under-exposed images.

Correct the offset.

Fixes: 14ea315 ("media: i2c: Add ov9282 camera sensor driver")

The datasheet lists that "Maximum exposure time is frame
length -25 row periods, where frame length is set by
registers {0x380E, 0x380F}".
However this driver had OV9282_EXPOSURE_OFFSET set to 12
which allowed that restriction to be violated, and would
result in very under-exposed images.

Correct the offset.

Fixes: 14ea315 ("media: i2c: Add ov9282 camera sensor driver")
Signed-off-by: Dave Stevenson <[email protected]>
@6by9
Copy link
Contributor Author

6by9 commented Dec 9, 2024

Reported https://forums.raspberrypi.com/viewtopic.php?p=2274970#p2274970
I'll be sending the patch upstream when I get a chance.

@6by9 6by9 requested a review from naushir December 9, 2024 16:17
@6by9
Copy link
Contributor Author

6by9 commented Dec 9, 2024

Sent upstream and has a R-b
https://lore.kernel.org/linux-media/[email protected]/

@pelwell pelwell merged commit e23afbf into raspberrypi:rpi-6.6.y Dec 9, 2024
11 of 12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Dec 10, 2024
kernel: Revert "PCI: Warn if no host bridge NUMA node info"
See: raspberrypi/linux#6531

kernel: drm/v3d: Enable Performance Counters before clearing them
See: raspberrypi/linux#6514

kernel: configs: Enable Intel Wireless (PCI) drivers
See: raspberrypi/linux#6526

kernel: media: i2c: ov9282: Correct the exposure offset
See: raspberrypi/linux#6522

kernel: waveshare panel driver update
See: raspberrypi/linux#6499

kernel: dtoverlays: Add Arducam override for ov9281
See: raspberrypi/linux#6506

kernel: nvme-pci: Disable Host Memory Buffer usage
See: raspberrypi/linux#6510

kernel: Allow setting I²C clock frequency via i2c_arm_baudrate dtparam when using pimidi overlay
See: raspberrypi/linux#6513
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Dec 10, 2024
kernel: Revert "PCI: Warn if no host bridge NUMA node info"
See: raspberrypi/linux#6531

kernel: drm/v3d: Enable Performance Counters before clearing them
See: raspberrypi/linux#6514

kernel: configs: Enable Intel Wireless (PCI) drivers
See: raspberrypi/linux#6526

kernel: media: i2c: ov9282: Correct the exposure offset
See: raspberrypi/linux#6522

kernel: waveshare panel driver update
See: raspberrypi/linux#6499

kernel: dtoverlays: Add Arducam override for ov9281
See: raspberrypi/linux#6506

kernel: nvme-pci: Disable Host Memory Buffer usage
See: raspberrypi/linux#6510

kernel: Allow setting I²C clock frequency via i2c_arm_baudrate dtparam when using pimidi overlay
See: raspberrypi/linux#6513
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.

2 participants