-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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: video: Add VIDEO_BUF_STARTED to poll signals #78499
drivers: video: Add VIDEO_BUF_STARTED to poll signals #78499
Conversation
Add VIDEO_BUF_STARTED event to video_signal_result. VIDEO_BUF_STARTED should be triggered once processing of the buffer has started (e.g. start_of_transmission/reception) Signed-off-by: Armin Kessler <[email protected]>
b52aec8
to
1000738
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A very light addition to an API that enables a new use-case.
IMO the naming this |
I had |
8518b6b
to
1000738
Compare
Sorry, I messed up and pushed to the wrong branch while I intended to make a new PR... |
@epc-ake it still not entirely clear from your diagram where is the allowed window for changing the 'settings', and why it can not be done before/after enqueuing/dequeuing the buffer? If I try to understand a bit better, you need a specific setting/control for each frame you're going to queue? |
Yes, I need to change a setting on my image sensor for every frame. |
I close this PR again since adding a new video_signal_result seems not to be the right way to achieve what I need. |
Adding
VIDEO_BUF_STARTED
result toenum video_signal_result
.VIDEO_BUF_STARTED
: Gets triggered at the start of buffer processing (e.g. start of capturing data)Full disclosure:
I'm developing a sensor driver for a TOF image sensor and I need to change some settings on the driver after every frame.
The Idea would be to produce the
VIDEO_BUF_STARTED
in the video driver using the vsync or SOF interrupt and pulling for it in the sensor driver using ameta-IRQ thread
.