[PATCH] [media] s5p_mfc: unify variable naming style

2014-09-03 Thread Zhaowei Yuan
Variable frame_size represents the size of plane luminance here, not just frame size, its naming style should be unified as frame_size_ch and frame_size_mv. Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c |8 1 file changed, 4 insertions(+), 4

[PATCH] [media] s5p_mfc: correct the loop condition

2014-09-03 Thread Zhaowei Yuan
It should take ctx->dst_fmt->num_planes as the loop condition for CAPTURE. Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/pl

[PATCH V2] vb2: fix plane index sanity check in vb2_plane_cookie()

2014-08-21 Thread Zhaowei Yuan
It's also invalid that plane_no equals to vb->num_planes Signed-off-by: Zhaowei Yuan --- drivers/media/v4l2-core/videobuf2-core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core

[PATCH] videobuf2-core: make checking condition more strict

2014-08-19 Thread Zhaowei Yuan
It's also invalid that plane_no equals to vb->num_planes Signed-off-by: Zhaowei Yuan --- drivers/media/v4l2-core/videobuf2-core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core

[PATCH] media: s5p-mfc: correct improper logs

2014-08-13 Thread Zhaowei Yuan
This patch corrects improper logs within the code initializing hardware. Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media

[PATCH V3] media: s5p_mfc: Release ctx->ctx if failed to allocate ctx->shm

2014-08-05 Thread Zhaowei Yuan
ctx->ctx should be released if the following allocation for ctx->shm gets failed. Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c b/drivers/media/platfo

[PATCH V2] media: s5p_mfc: Release ctx->ctx if failed to allocate ctx->shm

2014-08-05 Thread Zhaowei Yuan
ctx->ctx should be released if the following allocation for ctx->shm gets failed. Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c |1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c dif

[PATCH] media: s5p_mfc: Release ctx->ctx if failed to allocate ctx->shm

2014-08-05 Thread Zhaowei Yuan
Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c |1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c b/drivers/media/platform/s5p-

[PATCH] media: v4l2: make allocation algorithm more robust and flexible

2014-07-29 Thread Zhaowei Yuan
Current algorithm relies on the fact that caller will align the size to PAGE_SIZE, otherwise order will be decreased to negative when remain size is less than PAGE_SIZE, it makes the function hard to be migrated. This patch sloves the hidden problem. Signed-off-by: Zhaowei Yuan --- drivers

[PATCH] media: v4l2: make alloction alogthim more robust and flexible

2014-07-29 Thread Zhaowei Yuan
Current algothim relies on the fact that caller will align the size to PAGE_SIZE, otherwise order will be decreased to negative when remain size is less than PAGE_SIZE, it makes the function hard to be migrated. This patch sloves the hidden problem. Signed-off-by: Zhaowei Yuan --- drivers/media

[PATCH] media: s5p_mfc: remove unnecessary calling to function video_devdata()

2014-07-22 Thread Zhaowei Yuan
Since we have get vdev by calling video_devdata() at the beginning of s5p_mfc_open(), we should just use vdev instead of calling video_devdata() again in the following code. Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH] media: s5p_mfc: Check the right pointer after allocation

2014-07-22 Thread Zhaowei Yuan
It should be bank2_virt to be checked after dma allocation instead of dev->fw_virt_addr. Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/driv

[PATCH] media: s5p_mfc: remove unnecessary calling to function video_devdata()

2014-07-22 Thread Zhaowei Yuan
Since we have get vdev by calling video_devdata() at the beginning of s5p_mfc_open(), we should just use vdev instead of calling video_devdata() again in the following code. Change-Id: I869051762d33b50a7c0dbc8149b072e70b89c6b9 Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc

[PATCH] media: s5p_mfc: Check the right pointer after allocation

2014-07-22 Thread Zhaowei Yuan
It should be bank2_virt to be checked after dma allocation instead of dev->fw_virt_addr. Change-Id: I03ed5603de3ef1d97bf76d7d42097d9489b6b003 Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi