Re: [RFC PATCH] fixp-arith: replace sin/cos table by a better precision one

2014-12-17 Thread Prashant Laddha (prladdha)
Thanks for the patch, Mauro. Just a correction below. +/* cos(x) = sin(x + pi radians) */ + This should pi / 2. Correcting for the same below. +#define fixp_cos32_rad(rad, twopi)\ + fixp_sin32_rad(rad + twopi/2, twopi) fixp_sin32_rad(rad + twopi/4, twopi) + I think this

[GIT PULL FOR v3.20] Smiapp OF support

2014-12-17 Thread Sakari Ailus
Hi Mauro, Besides a few cleanups, this set adds OF support for the smiapp driver. Please pull. The following changes since commit e272d95f8c0544cff55c485a10828b063c8e417c: [media] rcar_vin: Fix interrupt enable in progressive (2014-12-12 10:29:40 -0200) are available in the git repository

[GIT PULL FOR v3.20] Smiapp driver improvements and cleanups

2014-12-17 Thread Sakari Ailus
Hi Mauro, This pull request contains smiapp driver cleanups and improvements in form of more generic quirk functionality and corrected error handling. It depends on my earlier pull request [GIT PULL FOR v3.20] Smiapp OF support. Please pull. The following changes since commit

Re: [RFC v01] Driver for Toshiba TC358743 CSI-2 to HDMI bridge

2014-12-17 Thread Hans Verkuil
Hi Mats, Some review comments... On 12/15/14 19:21, matra...@cisco.com wrote: From: Mats Randgaard matra...@cisco.com The driver is tested on our hardware and all the implemented features works as expected. Missing features: - CEC support - HDCP repeater support - IR support

[RFC PATCHv2] fixp-arith: replace sin/cos table by a better precision one

2014-12-17 Thread Mauro Carvalho Chehab
The cos table used at fixp-arith.h has only 8 bits of precision. That causes problems if it is reused on other drivers. As some media drivers require a higher precision sin/cos implementation, replace the current implementation by one that will provide 32 bits precision. The values generated by

Re: [PATCH] [media] s5p-jpeg: Adding Exynos7 Jpeg variant support

2014-12-17 Thread Jacek Anaszewski
Hi Tony, Thanks for the patches. Please process them with scripts/checkpatch.pl as you will be submitting the next version - they contain many coding style related issues. My remaining comments below. On 12/17/2014 08:27 AM, Tony K Nadackal wrote: Fimp_jpeg used in Exynos7 is a revised

[PATCH v2 01/13] pinctrl: sun6i: Add some missing functions

2014-12-17 Thread Hans de Goede
While working on pinctrl for the A31s, I noticed that function 4 of PA15 - PA18 was missing, add these. Signed-off-by: Hans de Goede hdego...@redhat.com --- Changes in v2: -Drop the changes to the muxing of i2c3 this was based on A31s Datasheet v1.40.pdf, but all other A31 related info puts them

[PATCH v2 00/13] sun6i: Add A31s and ir support

2014-12-17 Thread Hans de Goede
Hi All, Here is v2 of my patch series to add sun6i A31s and ir support. Changes in v2: -pinctrl: sun6i: Add some missing functions, fix i2c3 muxing: -Drop the changes to the muxing of i2c3 this was based on A31s Datasheet v1.40.pdf, but all other A31 related info puts them

[PATCH v2 03/13] ARM: sunxi: Add allwinner,sun6i-a31s to mach-sunxi

2014-12-17 Thread Hans de Goede
So far the A31s is 100% compatible with the A31, still lets do the same as what we've done for the A13 / A10s and give it its own compatible string, in case we need to differentiate later. Signed-off-by: Hans de Goede hdego...@redhat.com --- Documentation/arm/sunxi/README | 1 -

[PATCH v2 06/13] clk: sunxi: Make the mod0 clk driver also a platform driver

2014-12-17 Thread Hans de Goede
With the prcm in sun6i (and some later SoCs) some mod0 clocks are instantiated through the mfd framework, and as such do not work with of_clk_declare, since they do not have registers assigned to them yet at of_clk_declare init time. Silence the error on not finding registers in the

[PATCH v2 10/13] ARM: dts: sun6i: Add pinmux settings for the ir pins

2014-12-17 Thread Hans de Goede
Add pinmux settings for the ir receive pin of the A31. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 85c6365..9e9504c

[PATCH v2 08/13] ARM: dts: sun6i: Add ir_clk node

2014-12-17 Thread Hans de Goede
Add an ir_clk sub-node to the prcm node. Signed-off-by: Hans de Goede hdego...@redhat.com --- Changes in v2: -Use allwinner,sun4i-a10-mod0-clk as compatible, rather then a prcm specific compatible --- arch/arm/boot/dts/sun6i-a31.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2 13/13] ARM: dts: sun6i: Add dts file for CSQ CS908 board

2014-12-17 Thread Hans de Goede
The CSQ CS908 is an A31s based top-set box, with 1G RAM, 8G NAND, rtl8188etv usb wifi, 2 USB A receptacles (1 connected through the OTG controller), ethernet, 3.5 mm jack with a/v out and hdmi out. Note it has no sdcard slot and therefore can only be fel booted. Signed-off-by: Hans de Goede

[PATCH v2 12/13] ARM: dts: sun6i: Add sun6i-a31s.dtsi

2014-12-17 Thread Hans de Goede
Add a dtsi file for A31s based boards. Since the A31s is the same die as the A31 in a different package, this dtsi simply includes sun6i-a31.dtsi and then overrides the pinctrl compatible to reflect the different package, everything else is identical. Signed-off-by: Hans de Goede

[PATCH v2 11/13] ARM: dts: sun6i: Enable ir receiver on the Mele M9

2014-12-17 Thread Hans de Goede
The Mele M9 has an ir receiver, enable it. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31-m9.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31-m9.dts b/arch/arm/boot/dts/sun6i-a31-m9.dts index 3ab544f..fccf709 100644 ---

[PATCH v2 05/13] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i

2014-12-17 Thread Hans de Goede
Add support for the larger fifo found on sun5i and sun6i, having a separate compatible for the ir found on sun5i sun6i also is useful if we ever want to add ir transmit support, because the sun5i sun6i version do not have transmit support. Note this commits also adds checking for the

[PATCH v2 09/13] ARM: dts: sun6i: Add ir node

2014-12-17 Thread Hans de Goede
Add a node for the ir receiver found on the A31. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 1c1d255..85c6365 100644

[PATCH v2 07/13] mfd: sun6i-prcm: Add support for the ir-clk

2014-12-17 Thread Hans de Goede
Add support for the ir-clk which is part of the sun6i SoC prcm module. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/mfd/sun6i-prcm.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c index 2f2e9f0..1911731

[PATCH v2 02/13] pinctrl: sun6i: Add A31s pinctrl support

2014-12-17 Thread Hans de Goede
The A31s is a stripped down version of the A31, as such it is missing some pins and some functions on some pins. The new pinctrl-sun6i-a31s.c this commit adds is a copy of pinctrl-sun6i-a31s.c with the missing pins and functions removed. Note there is no a31s specific version of

[PATCH v2 04/13] rc: sunxi-cir: Add support for an optional reset controller

2014-12-17 Thread Hans de Goede
On sun6i the cir block is attached to the reset controller, add support for de-asserting the reset if a reset controller is specified in dt. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Mauro Carvalho Chehab mche...@osg.samsung.com Acked-by: Maxime Ripard

RegMap recursive locking I2C mux adapter

2014-12-17 Thread Antti Palosaari
Hello! After I converted some drivers to RegMap, I ran following lockdep warning about recursive locking and possible deadlock. That is because tuner driver access I2C bus through demod driver and both drivers are using RegMap. It does not happen if tuner driver does not use RegMap API, but

randconfig build error with next-20141217, in drivers/media/v4l2-core/tuner-core.c

2014-12-17 Thread Jim Davis
Building with the attached random configuration file, drivers/built-in.o: In function `set_type': tuner-core.c:(.text+0x3718c1): undefined reference to `microtune_attach' tuner-core.c:(.text+0x3718e3): undefined reference to `tda829x_attach' tuner-core.c:(.text+0x3719c6): undefined reference to

Re: [PATCH] solo6x10: just pass frame motion flag from hardware, drop additional handling as complicated and unstable

2014-12-17 Thread Andrey Utkin
Hans, is this commit anywhere in any git repository at the moment? -- Bluecherry developer. -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC PATCHv2] fixp-arith: replace sin/cos table by a better precision one

2014-12-17 Thread Mauro Carvalho Chehab
Em Wed, 17 Dec 2014 19:11:33 + Prashant Laddha (prladdha) prlad...@cisco.com escreveu: Hi Mauro, I was able to test your patch with vivid sdr tone generation. It calls sin/cos functions with radians as argument. I find that the sine wave generated using fixp_sin32_rad() show

Prof 7301 issues

2014-12-17 Thread Chris Lee
The Prof 7301 still seems to be having issues sometimes. Its not every time, but it does happen fairly regularly. Dec 17 18:28:16 DVB kernel: [160369.173179] [ cut here ] Dec 17 18:28:16 DVB kernel: [160369.173181] Kernel BUG at a04204fb [verbose debug info

[PATCH v4 0/5] media: ov2640: add device tree support

2014-12-17 Thread Josh Wu
This patch series add device tree support for ov2640. And also add the document for the devicetree properties. v3-v4: 1. refined the dt document. 2. Add Laurent's acked-by. v2-v3: 1. fix the gpiod_xxx api usage as we use reset pin as ACTIVE_LOW. 2. update the devicetree binding document.

[PATCH v4 1/5] media: soc-camera: use icd-control instead of icd-pdev for reset()

2014-12-17 Thread Josh Wu
icd-control is the sub device dev, i.e. i2c device. icd-pdev is the soc camera device's device. To be consitent with power() function, we will call reset() with icd-control as well. Signed-off-by: Josh Wu josh...@atmel.com --- v3-v4: none v2-v3: 1. check whether icd-control is NULL or not.

[PATCH v4 2/5] media: ov2640: add async probe function

2014-12-17 Thread Josh Wu
To support async probe for ov2640, we need remove the code to get 'mclk' in ov2640_probe() function. oterwise, if soc_camera host is not probed in the moment, then we will fail to get 'mclk' and quit the ov2640_probe() function. So in this patch, we move such 'mclk' getting code to

[PATCH v4 3/5] media: ov2640: add primary dt support

2014-12-17 Thread Josh Wu
Add device tree support for ov2640. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- v3 - v4: 1.modify the code comment. 2. Add Laurent's acked by. v2 - v3: 1. fix gpiod usage. 2. refine the

[PATCH v4 4/5] media: ov2640: add a master clock for sensor

2014-12-17 Thread Josh Wu
The master clock (xvclk) is mandatory. It's a common clock framework clock. It can make sensor output a pixel clock to the camera interface. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- v3 - v4: 1. Add

[PATCH v4 5/5] media: ov2640: dt: add the device tree binding document

2014-12-17 Thread Josh Wu
Add the document for ov2640 dt. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu josh...@atmel.com --- v3 - v4: 1. remove aggsigned-clocks as it's general. 2. refine the explation. v2 - v3: 1. fix incorrect description. 2. Add assigned-clocks assigned-clock-rates. 3. resetb pin

Re: [linux-sunxi] [PATCH v2 04/13] rc: sunxi-cir: Add support for an optional reset controller

2014-12-17 Thread Chen-Yu Tsai
Hi, On Thu, Dec 18, 2014 at 1:18 AM, Hans de Goede hdego...@redhat.com wrote: On sun6i the cir block is attached to the reset controller, add support for de-asserting the reset if a reset controller is specified in dt. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Mauro Carvalho

[PATCH] media: rc: Replace timeval with ktime_t in imon.c

2014-12-17 Thread Chunyan Zhang
This patch changes the 32-bit time type (timeval) to the 64-bit one (ktime_t), since 32-bit time types will break in the year 2038. I use ktime_t instead of all uses of timeval in imon.c This patch also changes do_gettimeofday() to ktime_get() accordingly, since ktime_get returns a ktime_t, but

cron job: media_tree daily build: ERRORS

2014-12-17 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Thu Dec 18 04:00:17 CET 2014 git branch: test git hash: 427ae153c65ad7a08288d86baf99000569627d03 gcc

Re: [PATCH] media: rc: Replace timeval with ktime_t in imon.c

2014-12-17 Thread Arnd Bergmann
On Thursday 18 December 2014 11:37:13 Chunyan Zhang wrote: This patch changes the 32-bit time type (timeval) to the 64-bit one (ktime_t), since 32-bit time types will break in the year 2038. I use ktime_t instead of all uses of timeval in imon.c This patch also changes do_gettimeofday() to

Re: [PATCH] solo6x10: just pass frame motion flag from hardware, drop additional handling as complicated and unstable

2014-12-17 Thread Hans Verkuil
On 12/17/2014 09:54 PM, Andrey Utkin wrote: Hans, is this commit anywhere in any git repository at the moment? The pull request will go out to Mauro tomorrow. Regards, Hans -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to