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: bcm2835_unicam: Improve frame sequence count handling #5507

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

naushir
Copy link
Contributor

@naushir naushir commented Jun 16, 2023

Ensure that the frame sequence counter is incremented only if a previous frame start interrupt has occurred, or a frame start + frame end has occurred simultaneously.

This corresponds the sequence number with the actual number of frames produced by the sensor, not the number of frame buffers dequeued back to userland.

Ensure that the frame sequence counter is incremented only if a previous
frame start interrupt has occurred, or a frame start + frame end has
occurred simultaneously.

This corresponds the sequence number with the actual number of frames
produced by the sensor, not the number of frame buffers dequeued back
to userland.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
@naushir
Copy link
Contributor Author

naushir commented Jun 16, 2023

@6by9 this is what I have come up with. Have I missed any other conditioning in the logic?

@6by9
Copy link
Contributor

6by9 commented Jun 16, 2023

Looks reasonable to me.

@naushir
Copy link
Contributor Author

naushir commented Jun 19, 2023

@pelwell feel free to merge this if you are happy with the change.

@pelwell pelwell merged commit 6ef818e into raspberrypi:rpi-6.1.y Jun 19, 2023
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 23, 2023
kernel: driver: media: i2c: imx477: Re-enable temperature sensor
See: raspberrypi/linux#5513

kernel: ASoC: cs43130: Fix numerator/denominator mixup
See: raspberrypi/linux#5510

kernel: dtoverlays: Fix pitft[28|35] overlays for 6.1 driver change
See: raspberrypi/linux#5508

kernel: drivers: media: bcm2835_unicam: Improve frame sequence count handling
See: raspberrypi/linux#5507

kernel: overlays: allo-katana-dac-audio: Reduce I2C clock
See: raspberrypi/linux#5511
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.

3 participants