v4l: fixed the issue of cts. [1/1]
authorNanxin Qin <nanxin.qin@amlogic.com>
Thu, 9 Jul 2020 16:39:44 +0000 (00:39 +0800)
committerZhi Zhou <zhi.zhou@amlogic.com>
Wed, 15 Jul 2020 07:43:14 +0000 (00:43 -0700)
commit9787d42524cfe4bc4e58b7f75acd8bc9c349f3eb
tree9d92ec55cacb8f081d2af18986925f1600555065
parenta1cd3c48a985d072d693ceb7418f9bb9ed786f59
v4l: fixed the issue of cts. [1/1]

PD#SWPL-28575

Problem:
When capture buffer's status isn't stream on, there is no flush video pipeline.
The driver will not send EOS to the back end, this will cause jamming.

Solution:
When the upper layer sends the stop command, flush the video pipeline.

Verify:
U212

Change-Id: I0ae3f73e536bfcba85f8901c2cb7ce4d46b99e75
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
drivers/amvdec_ports/aml_vcodec_dec.c