[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/bo

[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 change

[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 Signe

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

2019-01-03 Thread Rob Herring
On Fri, Dec 28, 2018 at 02:33:03PM +0800, Yunfei Dong wrote: > Fix MTK binding document for MT8173 dtsi changed in order > to use standard CCF interface. > MT8173 SoC from Mediatek. A better subject would be "add 'assigned-clocks' to vcodec examples". > > Signed-off-by: Yunfei Dong > Signed-off

Re: [PATCH 1/1] iova: Allow compiling the library without IOMMU support

2019-01-03 Thread Aaron Sierra
- Original Message - > From: "Sakari Ailus" > Sent: Thursday, January 3, 2019 2:11:27 PM Hi Laurent and Sakari, I don't have much else to offer here, but wanted to second Sakari's use case below. > Hi Laurent, > > On Thu, Jan 03, 2019 at 12:52:00AM +0200, Laurent Pinchart wrote: >> Hi

Re: [PATCH 02/12] media: i2c: mt9m001: dt: add binding for mt9m001

2019-01-03 Thread Rob Herring
On Sun, Dec 23, 2018 at 02:12:44AM +0900, Akinobu Mita wrote: > Add device tree binding documentation for the MT9M001 CMOS image sensor. > > Cc: Rob Herring > Cc: Guennadi Liakhovetski > Cc: Sakari Ailus > Cc: Mauro Carvalho Chehab > Signed-off-by: Akinobu Mita > --- > .../devicetree/binding

Re: [PATCH 1/1] iova: Allow compiling the library without IOMMU support

2019-01-03 Thread Sakari Ailus
Hi Laurent, On Thu, Jan 03, 2019 at 12:52:00AM +0200, Laurent Pinchart wrote: > Hi Sakari, > > Thank you for the patch. > > On Wednesday, 2 January 2019 23:16:57 EET Sakari Ailus wrote: > > Drivers such as the Intel IPU3 ImgU driver use the IOVA library to manage > > the device's own virtual add

[RFC PATCH 3/5] v4l2-ctl: use a dedicated function to print the control class name

2019-01-03 Thread Antonio Ospite
All the details about the controls are printed in the dedicated function print_qctrl(), use a new dedicated function named print_class_name() to print the control class name as well, this is for symmetry but it is also in preparation for a change which aims to abstract how the controls are printed.

[RFC PATCH 5/5] v4l2-ctl: add an option to list controls in a machine-readable format

2019-01-03 Thread Antonio Ospite
Add a new option --list-ctrls-values to list the values of controls in a format which can be passed again to --set-ctrl. This can be useful to save and restore device settings: $ v4l2-ctl --list-ctrls-values >settings.txt 2>/dev/null $ v4l2-ctl --set-ctrl "$(cat settings.txt)" The new option

[RFC PATCH 2/5] v4l2-ctl: list once when both OptListCtrls and OptListCtrlsMenus are there

2019-01-03 Thread Antonio Ospite
When both --list-ctrls and --list-ctrls-menus are passed, controls are listed twice which is accurate but can be confusing. Treat --list-ctrls-menus as an option modifier when also --list-ctrls is passed, in order to have the controls listed only once. Signed-off-by: Antonio Ospite --- utils/v4

[RFC PATCH 4/5] v4l2-ctl: abstract the mechanism used to print the list of controls

2019-01-03 Thread Antonio Ospite
Sometimes it may be useful to list the controls using a different output format than the current one used by --list-ctrls, for instance a new printing format could output a string which can be later fed to --set-ctrl. Add an abstraction mechanism to make it possible to add new output formats for c

[RFC PATCH 0/5] v4l2-ctl: list controls values in a machine-readable format

2019-01-03 Thread Antonio Ospite
Hi, here is an experiment about listing controls values with v4l2-ctl in a way that makes it more easy to reload them, I would use something like that for https://git.ao2.it/v4l2-persistent-settings.git/ Patches 1 and 2 are just warm-up patches to get me familiar again with the v4l2-ctrl codebase

[RFC PATCH 1/5] v4l2-ctl: list controls with menus when OptAll is specified

2019-01-03 Thread Antonio Ospite
When calling "v4l2-ctl --all" the user may expect the most comprehensive output, so also print the menus when listing controls. Signed-off-by: Antonio Ospite --- utils/v4l2-ctl/v4l2-ctl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/v4l2-ctl/v4l2-ctl.cpp b/utils/v4

Re: [PATCH v5] media: vicodec: add support for CROP and COMPOSE selection

2019-01-03 Thread Hans Verkuil
On 01/03/2019 04:15 PM, Dafna Hirschfeld wrote: > On Wed, Jan 2, 2019 at 12:22 PM Hans Verkuil wrote: >>> > if (frm->components_num >= 3) { >>> > - u32 chroma_h = frm->height / frm->height_div; >>> > - u32 chroma_w = frm->width / frm->width_div; >>>

Re: [PATCH v5] media: vicodec: add support for CROP and COMPOSE selection

2019-01-03 Thread Dafna Hirschfeld
On Wed, Jan 2, 2019 at 12:22 PM Hans Verkuil wrote: > > On 12/30/2018 02:48 PM, Dafna Hirschfeld wrote: > > > > > > On Sun, Dec 30, 2018 at 2:22 PM Hans Verkuil > > wrote: > > > > On 12/29/2018 04:20 PM, Dafna Hirschfeld wrote: > > > Add support for the selectio

Re: [PATCH 2/4] media: mt9m111: make VIDIOC_SUBDEV_G_FMT ioctl work with V4L2_SUBDEV_FORMAT_TRY

2019-01-03 Thread Marco Felsch
On 19-01-01 02:07, Akinobu Mita wrote: > 2018年12月31日(月) 19:54 Marco Felsch : > > > > On 18-12-30 02:07, Akinobu Mita wrote: > > > The VIDIOC_SUBDEV_G_FMT ioctl for this driver doesn't recognize > > > V4L2_SUBDEV_FORMAT_TRY and always works as if V4L2_SUBDEV_FORMAT_ACTIVE > > > is specified. > > > >

Re: [PATCH v3.16 2/2] v4l: event: Add subscription to list before calling "add" operation

2019-01-03 Thread Yi Qingliang
Ok, thanks a lot. On Thu, Jan 3, 2019 at 6:15 PM Hans Verkuil wrote: > > On 01/03/2019 01:58 AM, Yi Qingliang wrote: > > hello, I sent a email about 'can't wake problem' 4 days ago. > > > > Is this problem related with mine? > > No, it's unrelated. > > I'll take a look at vb2_poll next week. > >

Re: [PATCH v3.16 2/2] v4l: event: Add subscription to list before calling "add" operation

2019-01-03 Thread Hans Verkuil
On 01/03/2019 01:58 AM, Yi Qingliang wrote: > hello, I sent a email about 'can't wake problem' 4 days ago. > > Is this problem related with mine? No, it's unrelated. I'll take a look at vb2_poll next week. Regards, Hans > >> epoll and vb2_poll: can't wake_up > >> Sun, Dec 30, 2018,