media: amphion: initiate a drain of the capture queue in dynamic resolution change
authorMing Qian <ming.qian@nxp.com>
Sat, 6 May 2023 08:47:35 +0000 (16:47 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:20 +0000 (16:21 +0200)
commit076b6289b2c12d76fab248659896682830fa7766
tree0f75c7a1201f9d4beb40967e4988d3765791d9ec
parente75d25a0c9bea52d50894e3d72c9ab486f165ac9
media: amphion: initiate a drain of the capture queue in dynamic resolution change

The last buffer from before the change must be marked
with the V4L2_BUF_FLAG_LAST flag,
similarly to the Drain sequence above.

initiate a drain of the capture queue in dynamic resolution change

Fixes: 6de8d628df6e ("media: amphion: add v4l2 m2m vpu decoder stateful driver")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/amphion/vdec.c
drivers/media/platform/amphion/venc.c
drivers/media/platform/amphion/vpu_v4l2.c
drivers/media/platform/amphion/vpu_v4l2.h