v4l2: do not reset pool fields on streamoff output port [1/1]
authorSong Zhao <song.zhao@amlogic.com>
Wed, 12 Aug 2020 06:22:29 +0000 (23:22 -0700)
committerHui Zhang <hui.zhang@amlogic.com>
Fri, 14 Aug 2020 07:26:55 +0000 (00:26 -0700)
commit8c84a9c10e55f8b6d52c125de9266573d253859c
treea16e5c996142cab1c40c4134a6b0117512941357
parent86b532bfdba90f7145a13b9d02efcc2648b19b9f
v4l2: do not reset pool fields on streamoff output port [1/1]

PD#SWPL-30433

Problem:
a) Streamoff output port will reset cap_pool.in, it will cause decoding
error like "v4l_get_free_buf_idx fail"
b) Sometimes
application will not call dqueue of capture buffer to trigger
aml_recycle_dma_buffers().

Solution:
ONLY reset cap_pool filed on streamoff capture port.
Recycle DMA secure buffer after receiving vframe from VFM.

Verify:
U212 + RDK + DSTV seek

Change-Id: Ic9e72591398c5c68cbad970282f4530a4a91c22f
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
drivers/amvdec_ports/aml_vcodec_dec.c