staging: vc04_services: codec: Fix component enable/disable 09/249309/1 accepted/tizen/unified/20201211.124322 submit/tizen/20201211.031336
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 13 Aug 2020 16:04:53 +0000 (17:04 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 10 Dec 2020 04:14:20 +0000 (13:14 +0900)
commitcb24cc8409d2eb4a23a94c2a7403ea6376bd7fa7
tree626a94d4f432a226fa53854e58892e73e69deeff
parent8da40a4662a49961088d79c56d739ce25f32e733
staging: vc04_services: codec: Fix component enable/disable

start_streaming enabled the VPU component if ctx->component_enabled
was not set.
stop_streaming disabled the VPU component if both ports were
disabled. It didn't clear ctx->component_enabled.

If seeking, this meant that the component never got re-enabled,
and buffers never got processed afterwards.

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: Ibf27e3ed2dc3d98d64a78b10878d6339d77f8a33
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c