cron job: media_tree daily build: OK

2016-04-27 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 Apr 28 04:00:21 CEST 2016 git branch: test git hash: 45c175c4ae9695d6d2f30a45ab7f3866cfac184b gcc

Re: [PATCH v2 01/13] dt-bindings: Add Renesas R-Car FCP DT bindings

2016-04-27 Thread Rob Herring
On Tue, Apr 26, 2016 at 12:36:26AM +0300, Laurent Pinchart wrote: > The FCP is a companion module of video processing modules in the Renesas > R-Car Gen3 SoCs. It provides data compression and decompression, data > caching, and conversion of AXI transactions in order to reduce the > memory

Re: [PATCH] tw686x: use a formula instead of two tables for div

2016-04-27 Thread Mauro Carvalho Chehab
Em Wed, 27 Apr 2016 09:00:49 -0300 Mauro Carvalho Chehab escreveu: > Hmm > > Em Wed, 27 Apr 2016 08:01:19 -0300 > Mauro Carvalho Chehab escreveu: > > > Instead of using two tables to estimate the temporal decimation > > factor, use a

Re: [PATCH 4/4] [meida] media-device: dynamically allocate struct media_devnode

2016-04-27 Thread Shuah Khan
On 03/24/2016 05:37 AM, Mauro Carvalho Chehab wrote: > Em Thu, 24 Mar 2016 10:24:44 +0200 > Laurent Pinchart escreveu: > >> On Wednesday 23 Mar 2016 16:27:46 Mauro Carvalho Chehab wrote: >>> struct media_devnode is currently embedded at struct media_device. >>>

Re: [PATCH] media: fix media_ioctl use-after-free when driver unbinds

2016-04-27 Thread Shuah Khan
On 04/27/2016 10:43 AM, Lars-Peter Clausen wrote: > Looks mostly good, a few comments. > > On 04/27/2016 05:08 AM, Shuah Khan wrote: > [...] >> @@ -428,7 +428,7 @@ static long media_device_ioctl(struct file *filp, >> unsigned int cmd, >> unsigned long arg) >> { >>

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Pavel Machek
Hi! > It's part of the v4l-utils git repo: > > https://git.linuxtv.org/v4l-utils.git/ ... > > > Anyway, does anyone know where to get the media-ctl tool? > > > > Looks like it is part of v4l-utils package. At least in git: > > https://git.linuxtv.org/v4l-utils.git/tree/utils/media-ctl > > > >

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Pavel Machek
Hi! > >>Try with: > >> > >>media-ctl -r > >>media-ctl -l '"et8ek8 3-003e":0 -> "video-bus-switch":1 [1]' > >>media-ctl -l '"video-bus-switch":0 -> "OMAP3 ISP CCP2":0 [1]' > >>media-ctl -l '"OMAP3 ISP CCP2":1 -> "OMAP3 ISP CCDC":0 [1]' > >>media-ctl -l '"OMAP3 ISP CCDC":2 -> "OMAP3 ISP preview":0

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Pavel Machek
Hi! > On Wed, Apr 27, 2016 at 09:57:51AM +0300, Ivaylo Dimitrov wrote: > > >>https://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n900-camera-ivo > > > > > >Ok, going to diff with my tree to see what I have missed to send in the > > >patchset > > > > Now, that's getting weird.

[PATCH] af9035: correct eeprom offsets

2016-04-27 Thread Antti Palosaari
Used memory mapped eeprom offsets were off-by 8 bytes. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.h

Re: mceusb xhci issue?

2016-04-27 Thread Sean Young
On Mon, Apr 25, 2016 at 09:16:51PM -0600, Wade Berrier wrote: > On Apr 25 18:15, Sean Young wrote: > > On Sun, Apr 24, 2016 at 10:06:33PM -0600, Wade Berrier wrote: > > > Hello, > > > > > > I have a mceusb compatible transceiver that only seems to work with > > > certain computers. I'm testing

Re: dvb-s2 card "TeVii S472" (cx23885)

2016-04-27 Thread Hendrik Oenings
Hi together, I tried to recompile with the newest media_tree, so I just copied your modifications to the new media_tree. (I also refetched the media_build.) It wasn't very helpful, but I've seen that there is a kernel error message (which was there before too, but I hadn't seen it because I

Re: [RFC PATCH v2 1/2] [media] tvp5150: Add input connectors DT bindings

2016-04-27 Thread Javier Martinez Canillas
Hello Laurent, Thanks a lot for your feedback. On 04/27/2016 10:29 AM, Laurent Pinchart wrote: > Hi Javier, > > Thank you for the patch. > > On Tuesday 12 Apr 2016 18:42:52 Javier Martinez Canillas wrote: >> The tvp5150 and tvp5151 decoders support different video input source >> connections

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Pavel Machek
Hi! > > On Wed, Apr 27, 2016 at 09:57:51AM +0300, Ivaylo Dimitrov wrote: > > > > > https://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n900-camera-ivo > > > > > > > > Ok, going to diff with my tree to see what I have missed to send in > > > > the patchset > > > > > > Now,

[GIT PULL] two patches: pipeline validation error code

2016-04-27 Thread Helen Koike
Hi Mauro, Please pull the following patches correcting the returned error codes and respective docs in the pipeline validation. Regards, Helen The following changes since commit 45c175c4ae9695d6d2f30a45ab7f3866cfac184b: [media] tw686x: avoid going past array (2016-04-26 06:38:53 -0300)

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Ивайло Димитров
Hi, On Wed Apr 27 19:42:56 2016 Sebastian Reichel wrote: > Hi, > > On Wed, Apr 27, 2016 at 09:57:51AM +0300, Ivaylo Dimitrov wrote: > > > > https://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n900-camera-ivo > > > > > > Ok, going to diff with my tree to see

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Sebastian Reichel
Hi, On Wed, Apr 27, 2016 at 06:45:29PM +0200, Pavel Machek wrote: > > I don't have pre-production N900s. The phone I use for development > > is HW revision 2101 with Finish keyboard layout. Apart from that > > I have my productive phone, which is rev 2204 with German layout. > > How do you check

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Pavel Machek
Hi! > I don't have pre-production N900s. The phone I use for development > is HW revision 2101 with Finish keyboard layout. Apart from that > I have my productive phone, which is rev 2204 with German layout. How do you check hw revision? Thanks,

Re: [PATCH] media: fix media_ioctl use-after-free when driver unbinds

2016-04-27 Thread Lars-Peter Clausen
Looks mostly good, a few comments. On 04/27/2016 05:08 AM, Shuah Khan wrote: [...] > @@ -428,7 +428,7 @@ static long media_device_ioctl(struct file *filp, > unsigned int cmd, > unsigned long arg) > { > struct media_devnode *devnode = media_devnode_data(filp);

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Sebastian Reichel
Hi, On Wed, Apr 27, 2016 at 09:57:51AM +0300, Ivaylo Dimitrov wrote: > >>https://git.kernel.org/cgit/linux/kernel/git/sre/linux-n900.git/log/?h=n900-camera-ivo > > > >Ok, going to diff with my tree to see what I have missed to send in the > >patchset > > Now, that's getting weird. [...] > I

Re: [PATCH v3] [media] vimc: Virtual Media Controller core, capture and sensor

2016-04-27 Thread Helen Fornazier
Hi, On Wed, Apr 6, 2016 at 5:20 PM, Helen Mae Koike Fornazier wrote: > From: Helen Fornazier > > First version of the Virtual Media Controller. > Add a simple version of the core of the driver, the capture and > sensor nodes in the

Re: [RFC PATCH v2 1/2] [media] tvp5150: Add input connectors DT bindings

2016-04-27 Thread Laurent Pinchart
Hi Javier, Thank you for the patch. On Tuesday 12 Apr 2016 18:42:52 Javier Martinez Canillas wrote: > The tvp5150 and tvp5151 decoders support different video input source > connections to their AIP1A and AIP1B pins. Either two Composite or a > S-Video input signals are supported. > > The

Re: [PATCH v2 08/13] v4l: vsp1: Make vsp1_entity_get_pad_compose() more generic

2016-04-27 Thread Laurent Pinchart
Hi Sergei, On Tuesday 26 Apr 2016 21:09:10 Sergei Shtylyov wrote: > On 04/26/2016 12:36 AM, Laurent Pinchart wrote: > > Turn the helper into a function that can retrieve crop and compose > > selection rectangles. > > > > Signed-off-by: Laurent Pinchart > >

[PATCH v3] tw686x: use a formula instead of two tables for div

2016-04-27 Thread Mauro Carvalho Chehab
Instead of using two tables to estimate the temporal decimation factor, use a formula. This allows to get the closest fps, with sounds better than the current tables. Compile-tested only. Signed-off-by: Mauro Carvalho Chehab [media] tw686x: cleanup the fps estimation

[PATCH v2] [media] tw686x: cleanup the fps estimation code

2016-04-27 Thread Mauro Carvalho Chehab
There are some issues with the old code: 1) it uses two static tables; 2) some values for 50Hz standards are wrong; 3) it doesn't store the real framerate. This patch fixes the above issues. Compile-tested only. Signed-off-by: Mauro Carvalho Chehab

Re: Kernel docs: muddying the waters a bit

2016-04-27 Thread Grant Likely
On Tue, Apr 12, 2016 at 4:46 PM, Jonathan Corbet wrote: > On Fri, 8 Apr 2016 17:12:27 +0200 > Markus Heiser wrote: > >> motivated by this MT, I implemented a toolchain to migrate the kernel’s >> DocBook XML documentation to reST markup. >> >> It

Re: [PATCH] media: fix media_ioctl use-after-free when driver unbinds

2016-04-27 Thread Shuah Khan
Hi Mauro, On 04/27/2016 03:55 AM, Mauro Carvalho Chehab wrote: > Hi Shuah, > > Good work! I have a few notes below. > > Em Tue, 26 Apr 2016 21:08:32 -0600 > Shuah Khan escreveu: > >> When driver unbind is run while media_ioctl is in progress, media_ioctl() >> fails

Re: [PATCH RESEND 1/2] media: vb2-dma-contig: add helper for setting dma max seg size

2016-04-27 Thread Hans Verkuil
On 04/27/2016 03:14 PM, Marek Szyprowski wrote: > Hello, > > > On 2016-04-27 14:58, Hans Verkuil wrote: >> On 04/27/2016 02:23 PM, Marek Szyprowski wrote: >>> Hello, >>> >>> >>> On 2016-04-27 14:10, Hans Verkuil wrote: On 04/27/2016 02:00 PM, Marek Szyprowski wrote: > Add a helper

Re: [PATCH RESEND 1/2] media: vb2-dma-contig: add helper for setting dma max seg size

2016-04-27 Thread Marek Szyprowski
Hello, On 2016-04-27 14:58, Hans Verkuil wrote: On 04/27/2016 02:23 PM, Marek Szyprowski wrote: Hello, On 2016-04-27 14:10, Hans Verkuil wrote: On 04/27/2016 02:00 PM, Marek Szyprowski wrote: Add a helper function for device drivers to set DMA's max_seg_size. Setting it to largest

Re: [PATCH RESEND 1/2] media: vb2-dma-contig: add helper for setting dma max seg size

2016-04-27 Thread Hans Verkuil
On 04/27/2016 02:23 PM, Marek Szyprowski wrote: > Hello, > > > On 2016-04-27 14:10, Hans Verkuil wrote: >> On 04/27/2016 02:00 PM, Marek Szyprowski wrote: >>> Add a helper function for device drivers to set DMA's max_seg_size. >>> Setting it to largest possible value lets DMA-mapping API always

Re: [PATCH RESEND 1/2] media: vb2-dma-contig: add helper for setting dma max seg size

2016-04-27 Thread Marek Szyprowski
Hello, On 2016-04-27 14:10, Hans Verkuil wrote: On 04/27/2016 02:00 PM, Marek Szyprowski wrote: Add a helper function for device drivers to set DMA's max_seg_size. Setting it to largest possible value lets DMA-mapping API always create contiguous mappings in DMA address space. This is

Re: [PATCH RESEND 1/2] media: vb2-dma-contig: add helper for setting dma max seg size

2016-04-27 Thread Hans Verkuil
On 04/27/2016 02:00 PM, Marek Szyprowski wrote: > Add a helper function for device drivers to set DMA's max_seg_size. > Setting it to largest possible value lets DMA-mapping API always create > contiguous mappings in DMA address space. This is essential for all > devices, which use dma-contig

Re: [PATCH RESEND 2/2] media: set proper max seg size for devices on Exynos SoCs

2016-04-27 Thread Hans Verkuil
On 04/27/2016 02:00 PM, Marek Szyprowski wrote: > All multimedia devices found on Exynos SoCs support only contiguous > buffers, so set DMA max segment size to DMA_BIT_MASK(32) to let memory > allocator to correctly create contiguous memory mappings. > > Signed-off-by: Marek Szyprowski

[PATCH RESEND 2/2] media: set proper max seg size for devices on Exynos SoCs

2016-04-27 Thread Marek Szyprowski
All multimedia devices found on Exynos SoCs support only contiguous buffers, so set DMA max segment size to DMA_BIT_MASK(32) to let memory allocator to correctly create contiguous memory mappings. Signed-off-by: Marek Szyprowski --- This patch was posted earlier as a

[PATCH RESEND 1/2] media: vb2-dma-contig: add helper for setting dma max seg size

2016-04-27 Thread Marek Szyprowski
Add a helper function for device drivers to set DMA's max_seg_size. Setting it to largest possible value lets DMA-mapping API always create contiguous mappings in DMA address space. This is essential for all devices, which use dma-contig videobuf2 memory allocator and shared buffers.

Re: [PATCH] tw686x: use a formula instead of two tables for div

2016-04-27 Thread Mauro Carvalho Chehab
Hmm Em Wed, 27 Apr 2016 08:01:19 -0300 Mauro Carvalho Chehab escreveu: > Instead of using two tables to estimate the temporal decimation > factor, use a formula. This allows to get the closest fps, with > sounds better than the current tables. > > Compile-tested

Re: [PATCH 2/2] [media] ir-rx51: Fix build after multiarch changes broke it

2016-04-27 Thread Pavel Machek
Hi! > > Can you guys please test this still works? I've only been able > to test that it compiles/loads/unloads as my n900 in in a rack. > I guess Pali (To:) is the right person to test this? My n900 is in my pocket, but I've never used this functionality before (and would have to set up the

[PATCH] tw686x: use a formula instead of two tables for div

2016-04-27 Thread Mauro Carvalho Chehab
Instead of using two tables to estimate the temporal decimation factor, use a formula. This allows to get the closest fps, with sounds better than the current tables. Compile-tested only. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/pci/tw686x/tw686x-video.c

Re: [patch] [media] tw686x: off by one bugs in tw686x_fields_map()

2016-04-27 Thread Mauro Carvalho Chehab
Em Wed, 27 Apr 2016 07:31:59 -0300 Mauro Carvalho Chehab escreveu: > Hi Dan, > > Em Wed, 27 Apr 2016 11:09:28 +0300 > Dan Carpenter escreveu: > > > The > ARRAY_SIZE() should be >= ARRAY_SIZE(). > > I actually did this fix when I produced

Re: [patch] [media] tw686x: off by one bugs in tw686x_fields_map()

2016-04-27 Thread Dan Carpenter
On Wed, Apr 27, 2016 at 07:31:59AM -0300, Mauro Carvalho Chehab wrote: > I don't like magic numbers, but, in this very specific case, setting > frames per second (fps) var to 25 or 30 makes much more sense. Fine fine. I buy that rationale. regards, dan carpenter -- To unsubscribe from this

Re: [patch] [media] tw686x: off by one bugs in tw686x_fields_map()

2016-04-27 Thread Mauro Carvalho Chehab
Hi Dan, Em Wed, 27 Apr 2016 11:09:28 +0300 Dan Carpenter escreveu: > The > ARRAY_SIZE() should be >= ARRAY_SIZE(). I actually did this fix when I produced the patch, just I forgot to fold it when merging. Anyway, this was fixed upstream by this patch:

Re: [PATCH] media: fix media_ioctl use-after-free when driver unbinds

2016-04-27 Thread Mauro Carvalho Chehab
Hi Shuah, Good work! I have a few notes below. Em Tue, 26 Apr 2016 21:08:32 -0600 Shuah Khan escreveu: > When driver unbind is run while media_ioctl is in progress, media_ioctl() > fails with use-after-free. This first use-after-free is followed by more >

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Pavel Machek
Hi! > After taking a nap, a question came to my mind - what is that device you're > using? As some early board versions use VAUX3 for cameras as well. I got used N900 from a friend. It had czech keyboard, originally, so I believe it should be regular version, not early one... Best regards,

[patch] [media] tw686x: off by one bugs in tw686x_fields_map()

2016-04-27 Thread Dan Carpenter
The > ARRAY_SIZE() should be >= ARRAY_SIZE(). Also this is a slightly unrelated cleanup but I replaced the magic numbers 30 and 25 with ARRAY_SIZE() - 1. Fixes: 363d79f1d5bd ('[media] tw686x: Don't go past array') Signed-off-by: Dan Carpenter diff --git

[PATCH] media: tuner: mt2063: use lib gcd

2016-04-27 Thread zengzhaoxiu
From: Zhaoxiu Zeng This patch removes the local MT2063_gcd function, uses lib gcd instead Signed-off-by: Zhaoxiu Zeng --- drivers/media/tuners/mt2063.c | 30 +- 1 file changed, 5 insertions(+), 25 deletions(-) diff

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Ivaylo Dimitrov
Hi, On 27.04.2016 08:05, Ivaylo Dimitrov wrote: Hi, On 27.04.2016 06:08, Sebastian Reichel wrote: Hi, On Mon, Apr 25, 2016 at 12:08:00AM +0300, Ivaylo Dimitrov wrote: Those patch series make cameras on Nokia N900 partially working. Some more patches are needed, but I've already sent them