media: fixed some issues for the v4l2 decode. [2/2]
authorNanxin Qin <nanxin.qin@amlogic.com>
Thu, 20 Sep 2018 17:18:20 +0000 (01:18 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 20 May 2019 10:58:48 +0000 (03:58 -0700)
commit595c5f8b7e4adee8cd681120ea2a5558a6b6b402
tree42b6c45ceb30f67a545d90e4a2beeef149cc3cc3
parent1dea1f8ede94d70e51ac62fdd14d4896aa112f8c
media: fixed some issues for the v4l2 decode. [2/2]

PD#SWPL-5314

Problem:
1. add a dummy vframe flag VFRAME_FLAG_EMPTY_FRAME_V4L.
2. add the FRAME_BASE_PATH_V4L_* for v4l2 display
3. recycle vframes when the isr recevie the empty vframe.

Solution:
1. fixed some issues for the v4l2 decode.
2. add pause and resume for v4l2 m2m job.

Verify:
todo

Change-Id: I00b44ad4d3a75f7e2167ca347562d002c2690430
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
drivers/amlogic/media/video_sink/video.c
drivers/media/v4l2-core/v4l2-ioctl.c
drivers/media/v4l2-core/v4l2-mem2mem.c
include/linux/amlogic/media/utils/amstream.h
include/linux/amlogic/media/vfm/vframe.h
include/media/v4l2-mem2mem.h
include/uapi/linux/videodev2.h