staging: vc04_service: codec: Allow start_streaming to update the buffernum 08/249308/1
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 13 Aug 2020 16:01:27 +0000 (17:01 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 10 Dec 2020 04:14:02 +0000 (13:14 +0900)
commit8da40a4662a49961088d79c56d739ce25f32e733
tree3099c19ac36b86afd19c08603b3d4746cd8fc66c
parent30dcbc16255df980f9834534dad52281a7926f74
staging: vc04_service: codec: Allow start_streaming to update the buffernum

start_streaming passes a count of how many buffers have been queued
to videobuf2.

Allow this value to update the number of buffers the VPU allocates
on a port to avoid buffer recycling issues.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
[sw0312.kim: cherry-pick rpi-5.4.y commit to fix video decoding seek issue]
Ref: https://github.com/raspberrypi/linux/pull/3790
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Iaf37f57df95789cc8987b268feab1f0fa7377849
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c