Skip to content

Commit 718805e

Browse files
6by9popcornmix
authored andcommitted
staging: bcm2835_camera: Ensure all buffers are returned on disable
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]>
1 parent 9b9724b commit 718805e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c

+2
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ static void buffer_work_cb(struct work_struct *work)
268268
if (!buffer->cmd)
269269
atomic_dec(&msg_context->u.bulk.port->buffers_with_vpu);
270270

271+
atomic_dec(&msg_context->u.bulk.port->buffers_with_vpu);
272+
271273
msg_context->u.bulk.port->buffer_cb(msg_context->u.bulk.instance,
272274
msg_context->u.bulk.port,
273275
msg_context->u.bulk.status,

0 commit comments

Comments
 (0)