Skip to content

Commit

Permalink
staging: bcm2835_camera: Ensure all buffers are returned on disable
Browse files Browse the repository at this point in the history
With the recent change to match MMAL and V4L2 buffers there
is a need to wait for all MMAL buffers to be returned during
stop_streaming.

Fixes: 9384167 "staging: bcm2835-camera: Remove V4L2/MMAL buffer remapping"
Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 authored and popcornmix committed Jul 13, 2020
1 parent 9b9724b commit 718805e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ static void buffer_work_cb(struct work_struct *work)
if (!buffer->cmd)
atomic_dec(&msg_context->u.bulk.port->buffers_with_vpu);

atomic_dec(&msg_context->u.bulk.port->buffers_with_vpu);

msg_context->u.bulk.port->buffer_cb(msg_context->u.bulk.instance,
msg_context->u.bulk.port,
msg_context->u.bulk.status,
Expand Down

0 comments on commit 718805e

Please sign in to comment.