Re: [PATCH 4/4] media: imx-media-capture: add frame sizes/interval enumeration

2017-03-20 Thread Philippe De Muyter
Hi Russel, On Sun, Mar 19, 2017 at 10:49:08AM +, Russell King wrote: > Add support for enumerating frame sizes and frame intervals from the > first subdev via the V4L2 interfaces. > > Signed-off-by: Russell King > --- > drivers/staging/media/imx/imx-media-capture.c | 62 > +

Re: [PATCH 4/4] media: imx-media-capture: add frame sizes/interval enumeration

2017-03-20 Thread Russell King - ARM Linux
On Mon, Mar 20, 2017 at 09:55:12AM +0100, Philippe De Muyter wrote: > Hi Russel, > > On Sun, Mar 19, 2017 at 10:49:08AM +, Russell King wrote: > > Add support for enumerating frame sizes and frame intervals from the > > first subdev via the V4L2 interfaces. > > > > Signed-off-by: Russell King

[GIT PULL for v4l-utils] rc fixes

2017-03-20 Thread Sean Young
Hi Just musl compile fixes and a fix for streamzap keymap not loading. Thanks, Sean The following changes since commit 646bb9c368a8b65cdea6d934c9022067541d13a9: cec-follower: don't Feature Abort msgs from Unregistered (2017-02-28 14:14:31 +0100) are available in the git repository at: gi

Re: [PATCH 4/4] media: imx-media-capture: add frame sizes/interval enumeration

2017-03-20 Thread Philippe De Muyter
On Mon, Mar 20, 2017 at 09:05:25AM +, Russell King - ARM Linux wrote: > On Mon, Mar 20, 2017 at 09:55:12AM +0100, Philippe De Muyter wrote: > > Hi Russel, > > > > On Sun, Mar 19, 2017 at 10:49:08AM +, Russell King wrote: > > > Add support for enumerating frame sizes and frame intervals fro

[PATCH 3/9] stating/atomisp: fix -Wold-style-definition warning

2017-03-20 Thread Arnd Bergmann
ia_css_dequeue_param_buffers does not have an arguement type, causing a warning: drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c: In function 'ia_css_dequeue_param_buffers': drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c:3728:6: error: old-style function de

[PATCH 1/2] [media] vcodec: mediatek: add missing linux/slab.h include

2017-03-20 Thread Arnd Bergmann
With the newly added driver, I have run into randconfig failures like: drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c: In function 'mtk_jpeg_open': drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1017:8: error: implicit declaration of function 'kzalloc';did you mean 'kvzalloc'? [-Werror=implici

[PATCH 2/2] [media] vcodec: mediatek: mark pm functions as __maybe_unused

2017-03-20 Thread Arnd Bergmann
When CONFIG_PM is disabled, we get a couple of unused functions: drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:927:13: error: 'mtk_jpeg_clk_off' defined but not used [-Werror=unused-function] static void mtk_jpeg_clk_off(struct mtk_jpeg_dev *jpeg) ^~~~ drivers/media/pl

Re: [PATCH v2 03/14] [media] coda: simplify optional reset handling

2017-03-20 Thread Hans Verkuil
Hi Philipp, I'm a bit confused: I only see patches 3, 4 and 5 of 14 and no cover letter, and I don't think I ever saw a v1 of this patch series on linux-media. I assume this is a patch series covering multiple subsystems? This patch looks good and I'm happy to take it for 4.12, I just want to mak

Re: [PATCH] [media] platform: Order the Makefile alphabetically

2017-03-20 Thread Maxime Ripard
Hi Mauro, On Tue, Mar 07, 2017 at 02:39:28PM +0100, Maxime Ripard wrote: > The Makefile was a free for all without a clear order defined. Sort all the > options based on the Kconfig symbol. > > Signed-off-by: Maxime Ripard Any news on this one? Maxime -- Maxime Ripard, Free Electrons Embedded

Re: [PATCH v2 03/14] [media] coda: simplify optional reset handling

2017-03-20 Thread Philipp Zabel
On Mon, 2017-03-20 at 11:22 +0100, Hans Verkuil wrote: > Hi Philipp, > > I'm a bit confused: I only see patches 3, 4 and 5 of 14 and no cover letter, > and I don't think I ever saw a v1 of this patch series on linux-media. > I assume this is a patch series covering multiple subsystems? > > This p

Re: [PATCH 4/4] media: imx-media-capture: add frame sizes/interval enumeration

2017-03-20 Thread Russell King - ARM Linux
On Mon, Mar 20, 2017 at 10:23:30AM +0100, Philippe De Muyter wrote: > So existing gstreamer applications using /dev/video* to control framerate, > and even gain and exposure won't work anymore :( ? > > I had hoped to keep compatibility, with added robustness and functionality. > > I seems like I'

Re: DRM Atomic property for color-space conversion

2017-03-20 Thread Hans Verkuil
On 03/17/2017 03:09 PM, Ville Syrjälä wrote: > On Fri, Mar 17, 2017 at 10:33:15AM +, Brian Starkey wrote: >> For not-programmable hardware, would a second "DEGAMMA_FIXED" property >> make sense, which is an enum type exposing what curves are supported? >> (with analogous GAMMA_FIXED as well) >

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-20 Thread Mauro Carvalho Chehab
Em Sun, 19 Mar 2017 22:11:07 -0300 Mauro Carvalho Chehab escreveu: > Em Sun, 19 Mar 2017 10:04:28 -0700 > Michael Zoran escreveu: > > > A working DT that I tried this morning with the current firmware is > > posted here: > > http://lists.infradead.org/pipermail/linux-rpi-kernel/2017-March/0059

[PATCH v3 14/16] media: s5p-mfc: Use preallocated block allocator always for MFC v6+

2017-03-20 Thread Marek Szyprowski
It turned out that all versions of MFC v6+ hardware doesn't have a strict requirement for ALL buffers to be allocated on higher addresses than the firmware base like it was documented for MFC v5. This requirement is true only for the device and per-context buffers. All video data buffers can be all

[PATCH v3 15/16] media: s5p-mfc: Rename BANK1/2 to BANK_L/R to better match documentation

2017-03-20 Thread Marek Szyprowski
Documentation for MFC hardware still uses 'left' and 'right' names for the memory channel/banks, so replace BANK1/2 defines with more appropriate BANK_L/R names. Suggested-by: Shuah Khan Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc.c| 54 ---

[PATCH v3 11/16] media: s5p-mfc: Split variant DMA memory configuration into separate functions

2017-03-20 Thread Marek Szyprowski
Move code for DMA memory configuration with IOMMU into separate function to make it easier to compare what is being done in each case. Signed-off-by: Marek Szyprowski Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Acked-by: Andrzej Hajda Tested-by: Smitha T Murthy -

[PATCH v3 06/16] media: s5p-mfc: Move setting DMA max segment size to DMA configure function

2017-03-20 Thread Marek Szyprowski
Setting DMA max segment size to 32 bit mask is a part of DMA memory configuration, so move those calls to s5p_mfc_configure_dma_memory() function. Signed-off-by: Marek Szyprowski Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Acked-by: Andrzej Hajda Tested-by: Smitha

[PATCH v3 16/16] ARM: dts: exynos: Remove MFC reserved buffers

2017-03-20 Thread Marek Szyprowski
During my research I found that some of the requirements for the memory buffers for MFC v6+ devices were blindly copied from the previous (v5) version and simply turned out to be excessive. The relaxed requirements are applied by the recent patches to the MFC driver and the driver is now fully func

[PATCH v3 02/16] media: s5p-mfc: Use generic of_device_get_match_data helper

2017-03-20 Thread Marek Szyprowski
Replace custom code with generic helper to retrieve driver data. Signed-off-by: Marek Szyprowski Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Acked-by: Andrzej Hajda Tested-by: Smitha T Murthy Reviewed-by: Smitha T Murthy --- drivers/media/platform/s5p-mfc/s5p_m

[PATCH v3 12/16] media: s5p-mfc: Add support for probe-time preallocated block based allocator

2017-03-20 Thread Marek Szyprowski
Current MFC driver depends on the fact that when IOMMU is available, the DMA-mapping framework and its IOMMU glue will use first-fit allocator. This was true for ARM architecture, but its not for ARM64 arch. However, in case of MFC v6+ hardware and latest firmware, it turned out that there is no st

[PATCH] staging: radio-bcm2048: Fix checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

2017-03-20 Thread unknown
Signed-off-by: Eddie Youseph --- drivers/staging/media/bcm2048/radio-bcm2048.c | 44 +-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c index d605c41..7d33bce 10

[PATCH v3 07/16] media: s5p-mfc: Put firmware to private buffer structure

2017-03-20 Thread Marek Szyprowski
Use s5p_mfc_priv_buf structure for keeping the firmware image. This will help handling of firmware buffer allocation in the next patches. Signed-off-by: Marek Szyprowski Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Acked-by: Andrzej Hajda Tested-by: Smitha T Murthy

[PATCH v3 09/16] media: s5p-mfc: Allocate firmware with internal private buffer alloc function

2017-03-20 Thread Marek Szyprowski
Once firmware buffer has been converted to use s5p_mfc_priv_buf structure, it is possible to allocate it with existing s5p_mfc_alloc_priv_buf() function. This change will help to reduce code variants in the next patches. Signed-off-by: Marek Szyprowski Reviewed-by: Javier Martinez Canillas Acked

[PATCH v3 08/16] media: s5p-mfc: Move firmware allocation to DMA configure function

2017-03-20 Thread Marek Szyprowski
To complete DMA memory configuration for MFC device, allocation of the firmware buffer is needed, because some parameters are dependant on its base address. Till now, this has been handled in the s5p_mfc_alloc_firmware() function. This patch moves that logic to s5p_mfc_configure_dma_memory() to kee

[PATCH v3 10/16] media: s5p-mfc: Reduce firmware buffer size for MFC v6+ variants

2017-03-20 Thread Marek Szyprowski
Firmware for MFC v6+ variants is not larger than 400 KiB, so there is no need to allocate a full 1 MiB buffer for it. Reduce it to 512 KiB to keep proper alignment of allocated buffer. Signed-off-by: Marek Szyprowski Reviewed-by: Javier Martinez Canillas Acked-by: Andrzej Hajda Tested-by: Smith

[PATCH v3 04/16] media: s5p-mfc: Replace bank1/bank2 entries with an array

2017-03-20 Thread Marek Szyprowski
Internal MFC driver device structure contains two entries for keeping addresses of the DMA memory banks. Replace them with the dma_base[] array and use defines for accessing particular banks. This will help to simplify code in the next patches. Signed-off-by: Marek Szyprowski Reviewed-by: Javier

[PATCH v3 05/16] media: s5p-mfc: Simplify alloc/release private buffer functions

2017-03-20 Thread Marek Szyprowski
Change parameters for s5p_mfc_alloc_priv_buf() and s5p_mfc_release_priv_buf() functions. Instead of DMA device pointer and a base, provide common MFC device structure and memory bank context identifier. Signed-off-by: Marek Szyprowski Reviewed-by: Javier Martinez Canillas Tested-by: Javier Marti

[PATCH v3 13/16] media: s5p-mfc: Remove special configuration of IOMMU domain

2017-03-20 Thread Marek Szyprowski
The main reason for using special configuration of IOMMU domain was the problem with MFC firmware, which failed to operate properly when placed at 0 DMA address. Instead of adding custom code for configuring each variant of IOMMU domain and architecture specific glue code, simply use what arch code

[PATCH v3 00/16] Exynos MFC v6+ - remove the need for the reserved memory

2017-03-20 Thread Marek Szyprowski
Dear All, This patchset is a result of my work on enabling full support for MFC device (multimedia codec) on Exynos 5433 on ARM64 architecture. Initially I thought that to let it working on ARM64 architecture with IOMMU, I would need to solve the issue related to the fact that s5p-mfc driver was d

[PATCH v3 01/16] media: s5p-mfc: Remove unused structures and dead code

2017-03-20 Thread Marek Szyprowski
Remove unused structures, definitions and functions that are no longer called from the driver code. Signed-off-by: Marek Szyprowski Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Acked-by: Andrzej Hajda Tested-by: Smitha T Murthy Reviewed-by: Smitha T Murthy --- d

[PATCH v3 03/16] media: s5p-mfc: Replace mem_dev_* entries with an array

2017-03-20 Thread Marek Szyprowski
Internal MFC driver device structure contains two pointers to devices used for DMA memory allocation: mem_dev_l and mem_dev_r. Replace them with the mem_dev[] array and use defines for accessing particular banks. This will help to simplify code in the next patches. Signed-off-by: Marek Szyprowski

[PATCH 1/4] staging: atomisp: remove else statement after return

2017-03-20 Thread Daeseok Youn
It doesn't need to have else statement after return. Signed-off-by: Daeseok Youn --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c b/drivers/staging/medi

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-20 Thread Michael Zoran
On Mon, 2017-03-20 at 07:58 -0300, Mauro Carvalho Chehab wrote: > Em Sun, 19 Mar 2017 22:11:07 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Sun, 19 Mar 2017 10:04:28 -0700 > > Michael Zoran escreveu: > > > > > A working DT that I tried this morning with the current firmware > > > is > > > p

[PATCH 3/4] staging: atomisp: remove useless condition in if-statements

2017-03-20 Thread Daeseok Youn
The css_pipe_id was checked with 'CSS_PIPE_ID_COPY' in previous if- statement. In this case, if the css_pipe_id equals to 'CSS_PIPE_ID_COPY', it could not enter the next if-statement. But the "next" if-statement has the condition to check whether the css_pipe_id equals to 'CSS_PIPE_ID_COPY' or not.

Re: [PATCH 3/4] staging: atomisp: remove useless condition in if-statements

2017-03-20 Thread Dan Carpenter
On Mon, Mar 20, 2017 at 08:00:06PM +0900, Daeseok Youn wrote: > The css_pipe_id was checked with 'CSS_PIPE_ID_COPY' in previous if- > statement. In this case, if the css_pipe_id equals to 'CSS_PIPE_ID_COPY', > it could not enter the next if-statement. But the "next" if-statement > has the condition

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-20 Thread Hans Verkuil
On 03/17/2017 12:55 PM, Sakari Ailus wrote: > Hi Russell, > > On 03/17/17 13:42, Russell King - ARM Linux wrote: >> On Tue, Mar 14, 2017 at 08:55:36AM +0100, Hans Verkuil wrote: >>> We're all very driver-development-driven, and userspace gets very little >>> attention in general. So before just th

Re: [PATCH 11/13] [media] dvb-frontends/stv0367: add Digital Devices compatibility

2017-03-20 Thread Daniel Scheller
Am Tue, 7 Mar 2017 19:57:25 +0100 schrieb Daniel Scheller : > - add a third *_attach function which will make use of a third > frontend_ops struct which announces both -C and -T support (the same > as with DD's own driver stv0367dd). This is necessary to support both > delivery systems on one FE

[PATCH 2/4] staging: atomisp: simplify if statement in atomisp_get_sensor_fps()

2017-03-20 Thread Daeseok Youn
If v4l2_subdev_call() gets the global frame interval values, it returned 0 and it could be checked whether numerator is zero or not. If the numerator is not zero, the fps could be calculated in this function. If not, it just returns 0. Signed-off-by: Daeseok Youn --- .../media/atomisp/pci/atomi

[PATCH 4/4] staging: atomisp: remove redudant condition in if-statement

2017-03-20 Thread Daeseok Youn
The V4L2_FIELD_ANY is zero, so the (!field) is same meaning with (field == V4L2_FIELD_ANY) in if-statement. Signed-off-by: Daeseok Youn --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/atomisp/p

Re: [PATCH v5 38/39] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-03-20 Thread Philipp Zabel
On Sun, 2017-03-19 at 12:08 -0700, Steve Longerbeam wrote: > > On 03/19/2017 08:22 AM, Russell King - ARM Linux wrote: > > On Thu, Mar 09, 2017 at 08:53:18PM -0800, Steve Longerbeam wrote: > >> From: Philipp Zabel > >> > >> The csi_try_crop call in set_fmt should compare the cropping rectangle >

Re: [PATCH] staging: radio-bcm2048: Fix checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

2017-03-20 Thread Dan Carpenter
The subject is too long. On Mon, Mar 20, 2017 at 10:02:33PM +1100, unknown wrote: > Signed-off-by: Eddie Youseph You need to have a changelog. regards, dan carpenter

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-20 Thread Stefan Wahren
Hi Mauro, Am 20.03.2017 um 11:58 schrieb Mauro Carvalho Chehab: Em Sun, 19 Mar 2017 22:11:07 -0300 Mauro Carvalho Chehab escreveu: Em Sun, 19 Mar 2017 10:04:28 -0700 Michael Zoran escreveu: A working DT that I tried this morning with the current firmware is posted here: http://lists.infra

Re: [PATCH] staging: radio-bcm2048: Fix checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

2017-03-20 Thread Dan Carpenter
Also fix your From header. regards, dan carpenter

Re: [PATCH 2/4] staging: atomisp: simplify if statement in atomisp_get_sensor_fps()

2017-03-20 Thread walter harms
Am 20.03.2017 11:59, schrieb Daeseok Youn: > If v4l2_subdev_call() gets the global frame interval values, > it returned 0 and it could be checked whether numerator is zero or not. > > If the numerator is not zero, the fps could be calculated in this function. > If not, it just returns 0. > > Si

Re: mainline build: 208 builds: 0 failed, 208 passed, 422 warnings (v4.11-rc2-164-gdefc7d752265)

2017-03-20 Thread Will Deacon
On Wed, Mar 15, 2017 at 09:02:06PM +0100, Arnd Bergmann wrote: > On Wed, Mar 15, 2017 at 6:53 PM, kernelci.org bot wrote: > > > > mainline build: 208 builds: 0 failed, 208 passed, 422 warnings > > (v4.11-rc2-164-gdefc7d752265) > > The last build failure in mainline is gone now, though I don't kn

Re: [PATCH v5 38/39] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-03-20 Thread Russell King - ARM Linux
On Mon, Mar 20, 2017 at 12:55:26PM +0100, Philipp Zabel wrote: > The above paragraph suggests we skip any rectangles that are not > supported. In our case that would be 3. and 4., since the CSI can't > compose into a larger frame. I hadn't realised that the crop selection > currently happens on the

[PATCH 2/9] staging/atomisp: fix empty-body warning

2017-03-20 Thread Arnd Bergmann
Defining a debug function to nothing causes a warning with an empty block after if()/else(): drivers/staging/media/atomisp/i2c/ov2680.c: In function 'ov2680_s_stream': drivers/staging/media/atomisp/i2c/ov2680.c:1208:55: error: suggest braces around empty body in an 'else' statement [-Werror=empty

[PATCH 1/9] staging/atomisp: include linux/io.h where needed

2017-03-20 Thread Arnd Bergmann
The plat_clock implementation fails ot build in some configurations: platform/clock/vlv2_plat_clock.c: In function 'vlv2_plat_set_clock_freq': platform/clock/vlv2_plat_clock.c:88:2: error: implicit declaration of function 'writel';did you mean 'wrmsrl'? [-Werror=implicit-function-declaration] pla

[PATCH 4/9] staging/atomisp: remove sh_css_lace_stat code

2017-03-20 Thread Arnd Bergmann
I ran into a build warning on my randconfig build box: drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c: In function 'ia_css_lace_statistics_free': drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c:2845:64: error: parameter 'me' set but not used [-Werror=unused

[PATCH 7/9] staging/atomisp: add ACPI dependency

2017-03-20 Thread Arnd Bergmann
Without ACPI, some of the code fails to build: media/atomisp/platform/intel-mid/atomisp_gmin_platform.c: In function 'atomisp_register_i2c_module': media/atomisp/platform/intel-mid/atomisp_gmin_platform.c:174:7: error: dereferencing pointer to incomplete type 'struct acpi_device' We could work

[PATCH 5/9] staging/atomisp: add VIDEO_V4L2_SUBDEV_API dependency

2017-03-20 Thread Arnd Bergmann
The driver fails to build if this is disabled, so we need an explicit Kconfig dependency: drivers/staging/media/atomisp/pci/atomisp2/./atomisp_cmd.c:6085:48: error: 'struct v4l2_subdev_fh' has no member named 'pad' Fixes: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2") Signed-

[PATCH 8/9] staging/atomisp: add MEDIA_CONTROLLER dependency globally

2017-03-20 Thread Arnd Bergmann
One i2c driver already gained a dependency, but the others are equally broken: drivers/staging/media/atomisp/i2c/ap1302.c: In function 'ap1302_remove': drivers/staging/media/atomisp/i2c/ap1302.c:1143:31: error: 'struct v4l2_subdev' has no member named 'entity' drivers/staging/media/atomisp/i2c/mt

[PATCH 9/9] staging/atomisp: add EFI dependency

2017-03-20 Thread Arnd Bergmann
Without CONFIG_EFI, the driver fails to call efivar_entry_get: drivers/staging/built-in.o: In function `gmin_get_config_var': (.text+0x1e3b): undefined reference to `efivar_entry_get' Fixes: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2") Signed-off-by: Arnd Bergmann --- driv

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Hans Verkuil
On 03/19/2017 01:14 PM, Russell King - ARM Linux wrote: > On Sat, Mar 18, 2017 at 12:58:27PM -0700, Steve Longerbeam wrote: >> On 03/18/2017 12:22 PM, Russell King - ARM Linux wrote: >>> 0:00:01.955927879 20954 0x15ffe90 INFOv4l2 >>> gstv4l2object.c:3811:gst_v4l2_object_get_ca

[PATCH 6/9] staging/atomisp: add PCI dependency

2017-03-20 Thread Arnd Bergmann
Without CONFIG_PCI, config space reads never return any data, leading to undefined behavior that gcc warns about: platform/intel-mid/intel_mid_pcihelpers.c: In function 'intel_mid_msgbus_read32_raw': platform/intel-mid/intel_mid_pcihelpers.c:66:9: error: 'data' is used uninitialized in this func

Re: [PATCH 2/4] staging: atomisp: simplify if statement in atomisp_get_sensor_fps()

2017-03-20 Thread DaeSeok Youn
2017-03-20 21:04 GMT+09:00 walter harms : > > > Am 20.03.2017 11:59, schrieb Daeseok Youn: >> If v4l2_subdev_call() gets the global frame interval values, >> it returned 0 and it could be checked whether numerator is zero or not. >> >> If the numerator is not zero, the fps could be calculated in th

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Hans Verkuil
On 03/19/2017 06:54 PM, Steve Longerbeam wrote: > > > On 03/19/2017 03:38 AM, Russell King - ARM Linux wrote: >> On Sat, Mar 18, 2017 at 12:58:27PM -0700, Steve Longerbeam wrote: >>> Right, imx-media-capture.c (the "standard" v4l2 user interface module) >>> is not implementing VIDIOC_ENUM_FRAMESI

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Philipp Zabel
On Sat, 2017-03-18 at 12:58 -0700, Steve Longerbeam wrote: > > On 03/18/2017 12:22 PM, Russell King - ARM Linux wrote: > > Hi Steve, > > > > I've just been trying to get gstreamer to capture and h264 encode > > video from my camera at various frame rates, and what I've discovered > > does not look

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-20 Thread Hans Verkuil
On 03/17/2017 03:37 PM, Russell King - ARM Linux wrote: > On Fri, Mar 17, 2017 at 02:51:10PM +0100, Philipp Zabel wrote: >> On Fri, 2017-03-17 at 10:24 -0300, Mauro Carvalho Chehab wrote: >> [...] >>> The big question, waiting for an answer on the last 8 years is >>> who would do that? Such person

Re: [PATCH 2/4] staging: atomisp: simplify if statement in atomisp_get_sensor_fps()

2017-03-20 Thread walter harms
Am 20.03.2017 13:51, schrieb DaeSeok Youn: > 2017-03-20 21:04 GMT+09:00 walter harms : >> >> >> Am 20.03.2017 11:59, schrieb Daeseok Youn: >>> If v4l2_subdev_call() gets the global frame interval values, >>> it returned 0 and it could be checked whether numerator is zero or not. >>> >>> If the nu

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Philipp Zabel
On Sun, 2017-03-19 at 12:14 +, Russell King - ARM Linux wrote: > On Sat, Mar 18, 2017 at 12:58:27PM -0700, Steve Longerbeam wrote: > > On 03/18/2017 12:22 PM, Russell King - ARM Linux wrote: > > >0:00:01.955927879 20954 0x15ffe90 INFOv4l2 > > >gstv4l2object.c:3811:gst_v4l2

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-20 Thread Hans Verkuil
On 03/14/2017 11:21 AM, Mauro Carvalho Chehab wrote: > Em Tue, 14 Mar 2017 08:55:36 +0100 > Hans Verkuil escreveu: > >> On 03/14/2017 04:45 AM, Mauro Carvalho Chehab wrote: >>> Hi Sakari, >>> >>> I started preparing a long argument about it, but gave up in favor of a >>> simpler one. >>> >>> Em M

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Russell King - ARM Linux
On Mon, Mar 20, 2017 at 02:01:58PM +0100, Hans Verkuil wrote: > On 03/19/2017 06:54 PM, Steve Longerbeam wrote: > > > > > > On 03/19/2017 03:38 AM, Russell King - ARM Linux wrote: > >> What did you do with: > >> > >> ioctl(3, VIDIOC_REQBUFS, {count=0, type=0 /* V4L2_BUF_TYPE_??? */, > >> memory=

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Hans Verkuil
On 03/20/2017 02:29 PM, Russell King - ARM Linux wrote: > On Mon, Mar 20, 2017 at 02:01:58PM +0100, Hans Verkuil wrote: >> On 03/19/2017 06:54 PM, Steve Longerbeam wrote: >>> >>> >>> On 03/19/2017 03:38 AM, Russell King - ARM Linux wrote: What did you do with: ioctl(3, VIDIOC_REQBUFS

Re: [bug report] staging/atomisp: Add support for the Intel IPU v2

2017-03-20 Thread Alan Cox
>    674   >    675  /* To avoid owerflows when calling the efivar API */ >    676  if (*out_len > ULONG_MAX) > > This is impossible.  Was UINT_MAX intended? I am really not sure. The only case I can imagine is 32bit EFI on a 64bit system, b

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Russell King - ARM Linux
On Mon, Mar 20, 2017 at 02:57:03PM +0100, Hans Verkuil wrote: > On 03/20/2017 02:29 PM, Russell King - ARM Linux wrote: > > It's what I have - remember, not everyone is happy to constantly replace > > their distro packages with random new stuff. > > This is a compliance test, which is continuously

Re: [PATCH v10 2/2] media: i2c: Add support for OV5647 sensor.

2017-03-20 Thread Vladimir Zapolskiy
Hi Ramiro, On 03/06/2017 01:16 PM, Ramiro Oliveira wrote: > The OV5647 sensor from Omnivision supports up to 2592x1944 @ 15 fps, RAW 8 > and RAW 10 output formats, and MIPI CSI-2 interface. > > The driver adds support for 640x480 RAW 8. > > Signed-off-by: Ramiro Oliveira All updates are fine,

Re: [PATCH v5 38/39] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-03-20 Thread Philipp Zabel
On Mon, 2017-03-20 at 12:08 +, Russell King - ARM Linux wrote: > On Mon, Mar 20, 2017 at 12:55:26PM +0100, Philipp Zabel wrote: > > The above paragraph suggests we skip any rectangles that are not > > supported. In our case that would be 3. and 4., since the CSI can't > > compose into a larger

Re: [PATCH v5 38/39] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-03-20 Thread Russell King - ARM Linux
On Mon, Mar 20, 2017 at 03:00:51PM +0100, Philipp Zabel wrote: > On Mon, 2017-03-20 at 12:08 +, Russell King - ARM Linux wrote: > > The same document says: > > > > Scaling support is optional. When supported by a subdev, the crop > > rectangle on the subdev's sink pad is scaled to the size

Re: [PATCH v10 1/2] Documentation: DT: Add OV5647 bindings

2017-03-20 Thread Vladimir Zapolskiy
Hi Ramiro, On 03/06/2017 01:16 PM, Ramiro Oliveira wrote: > Create device tree bindings documentation. > > Signed-off-by: Ramiro Oliveira The device tree binding description looks perfect from my perspective. Reviewed-by: Vladimir Zapolskiy -- With best wishes, Vladimir

[PATCH 01/24] atomisp: remove the iefd2 kernel

2017-03-20 Thread Alan Cox
While this is included and the headers pulled in nothing actually uses this functionality in the driver, so remove it. Signed-off-by: Alan Cox --- .../staging/media/atomisp/pci/atomisp2/Makefile|3 .../ia_css_isp_params.c|1 .../ia_css_isp_states.h

[PATCH 03/24] atomisp: remove the unused debug wrapping from the mmgr layer

2017-03-20 Thread Alan Cox
We don't need this layer of indirection and the debugging information is not used. With this removed we can then go on to try and remove the abstraction layer entirely. Signed-off-by: Alan Cox --- .../memory_access/memory_access.h | 80 +++- .../pci/atomisp2/c

[PATCH 02/24] atomisp: remove aa kernel wrappers

2017-03-20 Thread Alan Cox
The aa kernel is used but it consists of nothing more than a set of wrappers for a memset and an assignment. Replace these at the calling points with the memset and assignment. Keep the structures for now - those should disappear as the next layer up gets unwrapped. Signed-off-by: Alan Cox ---

[PATCH 04/24] atomisp: remove another layer of allocator indirection

2017-03-20 Thread Alan Cox
Our driver only ever uses one set of routines for the allocators used by the CSS layer to manage memory and the memory management on the ISP. We can thus remove the function vectors and simply call the intended routines directly. These routines in turn are simply wrappers around another layer of

Re: [PATCH v3 3/6] documentation: media: Add documentation for new RGB and YUV bus formats

2017-03-20 Thread Hans Verkuil
On 03/07/2017 05:42 PM, Neil Armstrong wrote: > Add documentation for added Bus Formats to describe RGB and YUS formats used > as input to the Synopsys DesignWare HDMI TX Controller. > > Signed-off-by: Neil Armstrong > --- > Documentation/media/uapi/v4l/subdev-formats.rst | 4992 > +

Re: [PATCHv2 1/4] video: add hotplug detect notifier support

2017-03-20 Thread Russell King - ARM Linux
On Mon, Jan 02, 2017 at 03:19:04PM +0100, Hans Verkuil wrote: > From: Hans Verkuil > > Add support for video hotplug detect and EDID/ELD notifiers, which is used > to convey information from video drivers to their CEC and audio counterparts. > > Based on an earlier version from Russell King: >

Re: [PATCHv2 1/4] video: add hotplug detect notifier support

2017-03-20 Thread Russell King - ARM Linux
On Mon, Mar 20, 2017 at 02:26:16PM +, Russell King - ARM Linux wrote: > On Mon, Jan 02, 2017 at 03:19:04PM +0100, Hans Verkuil wrote: > > From: Hans Verkuil > > > > Add support for video hotplug detect and EDID/ELD notifiers, which is used > > to convey information from video drivers to their

[PATCH 19/24] staging/atomisp: add PCI dependency

2017-03-20 Thread Alan Cox
From: Arnd Bergmann Without CONFIG_PCI, config space reads never return any data, leading to undefined behavior that gcc warns about: platform/intel-mid/intel_mid_pcihelpers.c: In function 'intel_mid_msgbus_read32_raw': platform/intel-mid/intel_mid_pcihelpers.c:66:9: error: 'data' is used unin

[PATCH 15/24] staging/atomisp: fix empty-body warning

2017-03-20 Thread Alan Cox
From: Arnd Bergmann Defining a debug function to nothing causes a warning with an empty block after if()/else(): drivers/staging/media/atomisp/i2c/ov2680.c: In function 'ov2680_s_stream': drivers/staging/media/atomisp/i2c/ov2680.c:1208:55: error: suggest braces around empty body in an 'else' st

[PATCH 11/24] Staging: atomisp: fix an uninitialized variable bug

2017-03-20 Thread Alan Cox
From: Dan Carpenter There are some error paths in atomisp_css_frame_allocate() which don't initialize "res" so it could lead us to try release random memory. Fixes: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2") Signed-off-by: Dan Carpenter Signed-off-by: Alan Cox --- .../

[PATCH 10/24] Staging: atomisp: fix locking in alloc_user_pages()

2017-03-20 Thread Alan Cox
From: Dan Carpenter We call this function with the lock held and should also return with the lock held as well. This one error path is not-consistent because we should return without the lock held. Signed-off-by: Dan Carpenter Signed-off-by: Alan Cox --- .../media/atomisp/pci/atomisp2/hmm/hm

[PATCH 18/24] staging/atomisp: add VIDEO_V4L2_SUBDEV_API dependency

2017-03-20 Thread Alan Cox
From: Arnd Bergmann The driver fails to build if this is disabled, so we need an explicit Kconfig dependency: drivers/staging/media/atomisp/pci/atomisp2/./atomisp_cmd.c:6085:48: error: 'struct v4l2_subdev_fh' has no member named 'pad' Fixes: a49d25364dfb ("staging/atomisp: Add support for the

[PATCH 20/24] staging/atomisp: add ACPI dependency

2017-03-20 Thread Alan Cox
From: Arnd Bergmann Without ACPI, some of the code fails to build: media/atomisp/platform/intel-mid/atomisp_gmin_platform.c: In function 'atomisp_register_i2c_module': media/atomisp/platform/intel-mid/atomisp_gmin_platform.c:174:7: error: dereferencing pointer to incomplete type 'struct acpi_d

[PATCH 17/24] staging/atomisp: remove sh_css_lace_stat code

2017-03-20 Thread Alan Cox
From: Arnd Bergmann I ran into a build warning on my randconfig build box: drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c: In function 'ia_css_lace_statistics_free': drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c:2845:64: error: parameter 'me' set but no

[PATCH 09/24] atomisp: remove another pair of 2400/2401 differences

2017-03-20 Thread Alan Cox
The first of these checks the PCI identifier in order to decide what to do so needs no ifdef. The other is simply a variation on what is dumped for debug - so favour dumping the most. Signed-off-by Alan Cox --- .../media/atomisp/pci/atomisp2/atomisp_cmd.c |7 --- .../atomisp/pci/

[PATCH 14/24] staging/atomisp: include linux/io.h where needed

2017-03-20 Thread Alan Cox
From: Arnd Bergmann The plat_clock implementation fails ot build in some configurations: platform/clock/vlv2_plat_clock.c: In function 'vlv2_plat_set_clock_freq': platform/clock/vlv2_plat_clock.c:88:2: error: implicit declaration of function 'writel';did you mean 'wrmsrl'? [-Werror=implicit-fun

Re: [PATCHv2 1/4] video: add hotplug detect notifier support

2017-03-20 Thread Hans Verkuil
On 03/20/2017 03:27 PM, Russell King - ARM Linux wrote: On Mon, Mar 20, 2017 at 02:26:16PM +, Russell King - ARM Linux wrote: On Mon, Jan 02, 2017 at 03:19:04PM +0100, Hans Verkuil wrote: From: Hans Verkuil Add support for video hotplug detect and EDID/ELD notifiers, which is used to conv

[PATCH 13/24] staging: media: atomisp: add missing dependencies in Kconfig

2017-03-20 Thread Alan Cox
From: Jérémy Lefaure Two dependencies were missing to build atomisp drivers: _ MEDIA_CONTROLLER: to use the entity field of v4l2_subdev structure. Since every atomisp driver needs MEDIA_CONTROLLER has a dependency, let's add it to INTEL_ATOMISP _ EFI: to use efivar_entry_get: drivers/built-in.o

[PATCH 16/24] stating/atomisp: fix -Wold-style-definition warning

2017-03-20 Thread Alan Cox
From: Arnd Bergmann ia_css_dequeue_param_buffers does not have an arguement type, causing a warning: drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c: In function 'ia_css_dequeue_param_buffers': drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c:3728:6: error:

[PATCH 21/24] staging: atomisp: remove else statement after return

2017-03-20 Thread Alan Cox
From: Daeseok Youn It doesn't need to have else statement after return. Signed-off-by: Daeseok Youn Signed-off-by: Alan Cox --- .../media/atomisp/pci/atomisp2/atomisp_cmd.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/ato

[PATCH 23/24] atomisp: remove a sysfs error message that can be used to log spam

2017-03-20 Thread Alan Cox
Instead of logging this just report ERANGE as an error, which will give something close to the right user space report. The others of these were already removed by Dan Carpenter's patch. Signed-off-by: Alan Cox --- .../media/atomisp/pci/atomisp2/atomisp_drvfs.c |4 +--- 1 file changed,

[PATCH 05/24] atomisp: ia_css_bh_hmem_encode is a no-op so remove it

2017-03-20 Thread Alan Cox
This is a do nothing function so we can replace it with nothing and eliminate it entirely. Signed-off-by: Alan Cox --- .../ia_css_isp_params.c|6 -- .../ia_css_isp_params.c|6 -- .../ia_css_isp_params.c

[PATCH 22/24] staging: atomisp: remove redudant condition in if-statement

2017-03-20 Thread Alan Cox
From: Daeseok Youn The V4L2_FIELD_ANY is zero, so the (!field) is same meaning with (field == V4L2_FIELD_ANY) in if-statement. Signed-off-by: Daeseok Youn Signed-off-by: Alan Cox --- .../media/atomisp/pci/atomisp2/atomisp_cmd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH 24/24] staging: atomisp: simplify if statement in atomisp_get_sensor_fps()

2017-03-20 Thread Alan Cox
From: Daeseok Youn If v4l2_subdev_call() gets the global frame interval values, it returned 0 and it could be checked whether numerator is zero or not. If the numerator is not zero, the fps could be calculated in this function. If not, it just returns 0. Signed-off-by: Daeseok Youn Signed-off-

[PATCH 07/24] ov5693: remove unused function

2017-03-20 Thread Alan Cox
It's commented out in the tree with a note saying to remove it. So let's remove it. Signed-off-by: Alan Cox --- drivers/staging/media/atomisp/i2c/ov5693/ov5693.c | 23 - 1 file changed, 23 deletions(-) diff --git a/drivers/staging/media/atomisp/i2c/ov5693/ov5693.c b/driv

[PATCH 06/24] atomisp: kill another define

2017-03-20 Thread Alan Cox
We don't need an ifdef for the sake of 8-12 bytes. This undoes the ifdef added by fde469701c7efabebf885e785edf367bfb1a8f3f. Instead turn it into a single const string array at a fixed location thereby saving even more memory. Signed-off-by: Alan Cox --- .../staging/media/atomisp/pci/atomisp2/h

[PATCH 12/24] staging: media: atomisp: select REGMAP_I2C needed by ap1302.c

2017-03-20 Thread Alan Cox
From: Jérémy Lefaure REGMAP_I2C should be enabled to build the driver ap1302 because it uses regmap functions. Signed-off-by: Jérémy Lefaure Signed-off-by: Alan Cox --- drivers/staging/media/atomisp/i2c/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/atomi

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-20 Thread Mauro Carvalho Chehab
Em Mon, 20 Mar 2017 04:08:21 -0700 Michael Zoran escreveu: > On Mon, 2017-03-20 at 07:58 -0300, Mauro Carvalho Chehab wrote: > > Em Sun, 19 Mar 2017 22:11:07 -0300 > > Mauro Carvalho Chehab escreveu: > > > > > Em Sun, 19 Mar 2017 10:04:28 -0700 > > > Michael Zoran escreveu: > > > > > > >

[PATCH 08/24] atomisp/imx: Fix locking bug on error path

2017-03-20 Thread Alan Cox
This was reported by Dan Carpenter. When we error with an IMX 227 we don't release the lock and the sensor would then hang. Signed-off-by: Alan Cox --- drivers/staging/media/atomisp/i2c/imx/imx.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/ato

Re: [PATCH 3/9] stating/atomisp: fix -Wold-style-definition warning

2017-03-20 Thread Stephen Hemminger
On Mon, 20 Mar 2017 10:32:19 +0100 Arnd Bergmann wrote: > -void ia_css_dequeue_param_buffers(/*unsigned int pipe_num*/) > +void ia_css_dequeue_param_buffers(/*unsigned int pipe_num*/ void) > { Why keep the comment?

  1   2   >