[PATCH v3,1/2] media: v4l UAPI: add V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS

2020-07-01 Thread Yunfei Dong
This patch adds support for the V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS flag. This flag is used for Read-only(Ro) Request. Signed-off-by: Yunfei Dong --- Documentation/userspace-api/media/v4l/vidioc-reqbufs.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/userspace-api/media

[PATCH v3,2/2] media: v4l: Add Ro request api for capture queue

2020-07-01 Thread Yunfei Dong
for ro request. Add param supports_ro_requests in struct vb2_queue present that capture or output queue use ro request. When set/get ext ctrls, will check whether current CID ctrls is ro ctrls or not using function v4l2_check_ro_ext_ctrls(). Signed-off-by: Yunfei Dong --- .../media/common

[PATCH v3, 0/2] This patchset add read-only(Ro) request for capture queue

2020-07-01 Thread Yunfei Dong
, will check whether current CID ctrls is ro ctrls or not using function v4l2_check_ro_ext_ctrls(). Changes in v3 -change cover-letter message -change commit message for patch 02/02 -add sanity check in vb2_core_queue_init() Yunfei Dong (2): media: v4l UAPI: add

[PATCH v2, 1/2] media: v4l UAPI: add V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS

2020-06-21 Thread Yunfei Dong
This patch adds support for the V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS flag. This flag is used for Read-only(Ro) Request. Signed-off-by: Yunfei Dong --- Documentation/userspace-api/media/v4l/vidioc-reqbufs.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/userspace-api/media

[PATCH v2, 2/2] media: v4l: Add Ro request api for capture queue

2020-06-21 Thread Yunfei Dong
ext ctrls, will check whether current CID ctrls is ro ctrls or not using function v4l2_check_ro_ext_ctrls(). Signed-off-by: Yunfei Dong --- .../media/common/videobuf2/videobuf2-v4l2.c | 7 ++ drivers/media/mc/mc-request.c | 10 +- drivers/media/v4l2-core/v4l2-ctrls.c

[PATCH v2, 0/2] This patchset add Read-only(Ro) request for capture queue

2020-06-21 Thread Yunfei Dong
commit message of patch 02/02 Yunfei Dong (2): media: v4l UAPI: add V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS media: v4l: Add Ro request api for capture queue .../media/v4l/vidioc-reqbufs.rst | 4 + .../media/common/videobuf2/videobuf2-v4l2.c | 7 ++ drivers/media/mc/mc-request.c

[PATCH 2/2] media: v4l: Add Request support for capture queue

2020-06-16 Thread Yunfei Dong
ctrls or not using function v4l2_check_ro_ext_ctrls(). Signed-off-by: Yunfei Dong --- .../media/common/videobuf2/videobuf2-v4l2.c | 7 ++ drivers/media/mc/mc-request.c | 10 +- drivers/media/v4l2-core/v4l2-ctrls.c | 107 +++--- drivers/media/v4l2-core/v4l2

[PATCH 1/2] media: v4l UAPI: add V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS

2020-06-16 Thread Yunfei Dong
This patch adds support for the V4L2_BUF_CAP_SUPPORTS_RO_REQUESTS flag. This flag is used for RO Request. Signed-off-by: Yunfei Dong --- Documentation/userspace-api/media/v4l/vidioc-reqbufs.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/vidioc

[RESEND PATCH v4,1/3] media: dt-bindings: media: add 'assigned-clocks' to vcodec examples

2019-02-13 Thread Yunfei Dong
Fix MTK binding document for MT8173 dtsi changed in order to use standard CCF interface. MT8173 SoC from Mediatek. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan Reviewed-by: Rob Herring --- .../devicetree/bindings/media/mediatek-vcodec.txt | 13 + 1 file changed, 13

[RESEND PATCH v4,2/3] arm64: dts: Using standard CCF interface to set vcodec clk

2019-02-13 Thread Yunfei Dong
Using standard CCF interface to set vdec/venc parent clk and clk rate. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64

[RESEND PATCH v4,3/3] media: mtk-vcodec: Using common interface to manage vdec/venc clock

2019-02-13 Thread Yunfei Dong
Vdec: Using standard CCF interface to set parent clock and clock rate in dtsi and using common interface to open/close video decoder clock. Venc: Using standard CCF interface to set parent clock in dtsi and using common interface to open/close video encoder clock. Signed-off-by: Yunfei Dong

[PATCH v3,2/3] arm64: dts: Using standard CCF interface to set vcodec clk

2019-01-16 Thread Yunfei Dong
Using standard CCF interface to set vdec/venc parent clk and clk rate. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64

[PATCH v3,3/3] media: mtk-vcodec: Using common interface to manage vdec/venc clock

2019-01-16 Thread Yunfei Dong
Vdec: Using standard CCF interface to set parent clock and clock rate in dtsi and using common interface to open/close video decoder clock. Venc: Using standard CCF interface to set parent clock in dtsi and using common interface to open/close video encoder clock. Signed-off-by: Yunfei Dong

[PATCH v3,1/3] media: dt-bindings: media: add 'assigned-clocks' to vcodec examples

2019-01-16 Thread Yunfei Dong
Fix MTK binding document for MT8173 dtsi changed in order to use standard CCF interface. MT8173 SoC from Mediatek. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan Reviewed-by: Rob Herring --- .../devicetree/bindings/media/mediatek-vcodec.txt | 13 + 1 file changed, 13

[PATCH v2,3/3] media: mtk-vcodec: Using common interface to manage vdec/venc clock

2019-01-03 Thread Yunfei Dong
Vdec: Using standard CCF interface to set parent clock and clock rate in dtsi and using common interface to open/close video decoder clock. Venc: Using standard CCF interface to set parent clock in dtsi and using common interface to open/close video encoder clock. Signed-off-by: Yunfei Dong

[PATCH v2,1/3] media: dt-bindings: media: add 'assigned-clocks' to vcodec examples

2019-01-03 Thread Yunfei Dong
Fix MTK binding document for MT8173 dtsi changed in order to use standard CCF interface. MT8173 SoC from Mediatek. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan --- change note: v2: modify subject --- .../devicetree/bindings/media/mediatek-vcodec.txt | 13 + 1 file

[PATCH v2,2/3] arm64: dts: Using standard CCF interface to set vcodec clk

2019-01-03 Thread Yunfei Dong
Using standard CCF interface to set vdec/venc parent clk and clk rate. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64

[PATCH 2/3] arm64: dts: Using standard CCF interface to set vcodec clk

2018-12-27 Thread Yunfei Dong
Using standard CCF interface to set vdec/venc parent clk and clk rate. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64

[PATCH 1/3] media: dt-bindings: media: Fix MTK document for vcodec

2018-12-27 Thread Yunfei Dong
Fix MTK binding document for MT8173 dtsi changed in order to use standard CCF interface. MT8173 SoC from Mediatek. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan --- .../devicetree/bindings/media/mediatek-vcodec.txt | 13 + 1 file changed, 13 insertions(+) diff --git

[PATCH 3/3] media: mtk-vcodec: Using common interface to manage vdec/venc clock

2018-12-27 Thread Yunfei Dong
VDec: Using standard CCF interface to set parent clock and clock rate in dtsi and using common interface to open/close video decoder clock. VEnc: Using standard CCF interface to set parent clock/larb in dtsi and using common interface to open/close video encoder clock/larb. Signed-off-by: Yunfei