mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
media: videobuf2-core: Rework and rename helper for request buffer count
The helper indicating whether buffers are associated with the request is reworked and renamed to return the number of associated buffer objects. This is useful for drivers that need to check how many buffers are in the request to validate it. Existing users of the helper don't need particular adaptation since the meaning of zero/non-zero remains consistent. Signed-off-by: Paul Kocialkowski <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
7390ba4397
commit
515c5a7333
3 changed files with 11 additions and 13 deletions
|
|
@ -1191,10 +1191,10 @@ int vb2_verify_memory_type(struct vb2_queue *q,
|
|||
bool vb2_request_object_is_buffer(struct media_request_object *obj);
|
||||
|
||||
/**
|
||||
* vb2_request_has_buffers() - return true if the request contains buffers
|
||||
* vb2_request_buffer_cnt() - return the number of buffers in the request
|
||||
*
|
||||
* @req: the request.
|
||||
*/
|
||||
bool vb2_request_has_buffers(struct media_request *req);
|
||||
unsigned int vb2_request_buffer_cnt(struct media_request *req);
|
||||
|
||||
#endif /* _MEDIA_VIDEOBUF2_CORE_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue