[RFCv2 PATCH 7/8] dvb: add MEDIA_IOC_DEVICE_INFO

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil Support the MEDIA_IOC_DEVICE_INFO ioctl for DVB entities. Signed-off-by: Hans Verkuil --- drivers/media/dvb-core/dmxdev.c | 24 +++- drivers/media/dvb-core/dvb_ca_en50221.c | 11 +++ drivers/media/dvb-core/dvb_net.c| 11 +++

[RFCv2 PATCH 5/8] v4l2-subdev: add MEDIA_IOC_DEVICE_INFO

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil Support the MEDIA_IOC_DEVICE_INFO ioctl for entities. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-subdev.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c index

[RFCv2 PATCH 8/8] DocBook/media: document the new media_device_info fields.

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil Document major, minor and entity_id, and that MEDIA_IOC_DEVICE_INFO can be called for other media devices as well, besides just the media controller. Signed-off-by: Hans Verkuil --- .../DocBook/media/v4l/media-ioc-device-info.xml| 35 ++ 1 file change

[RFCv2 PATCH 6/8] v4l2-ioctl: add MEDIA_IOC_DEVICE_INFO

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil Support the MEDIA_IOC_DEVICE_INFO ioctl for entities. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ioctl.c | 38 +++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers

[RFCv2 PATCH 4/8] media: add major/minor/entity_id to struct media_device_info

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil Device nodes associated with entities should support the MEDIA_IOC_DEVICE_INFO ioctl in order to let userspace find the media device node from an entity device node. To be able to do that the major and minor numbers of the media device node should be available in struct media_d

[RFCv2 PATCH 2/8] DocBook/media: document VIDIOC_SUBDEV_QUERYCAP

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil Add documentation for the new VIDIOC_SUBDEV_QUERYCAP ioctl. Signed-off-by: Hans Verkuil --- Documentation/DocBook/media/v4l/v4l2.xml | 1 + .../DocBook/media/v4l/vidioc-subdev-querycap.xml | 125 + 2 files changed, 126 insertions(+) create

[RFCv2 PATCH 3/8] videodev2.h: add V4L2_CAP_ENTITY to querycap

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil Add a capability to indicate that this device is a media entity. Signed-off-by: Hans Verkuil --- Documentation/DocBook/media/v4l/vidioc-querycap.xml | 6 ++ drivers/media/v4l2-core/v4l2-ioctl.c| 5 + include/uapi/linux/videodev2.h

[RFCv2 PATCH 1/8] v4l2-subdev: add VIDIOC_SUBDEV_QUERYCAP ioctl

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil While normal video/radio/vbi/swradio nodes have a proper QUERYCAP ioctl that apps can call to determine that it is indeed a V4L2 device, there is currently no equivalent for v4l-subdev nodes. Adding this ioctl will solve that, and it will allow utilities like v4l2-compliance to

[RFCv2 PATCH 0/8] Add VIDIOC_SUBDEV_QUERYCAP and use MEDIA_IOC_DEVICE_INFO

2015-05-05 Thread Hans Verkuil
From: Hans Verkuil This patch series adds the VIDIOC_SUBDEV_QUERYCAP ioctl for v4l-subdev devices as discussed during the ELC in San Jose and as discussed here: http://www.spinics.net/lists/linux-media/msg88009.html It also add support for MEDIA_IOC_DEVICE_INFO to any media entities so applicat

[PATCH] DocBook/media: fix querycap error code

2015-05-05 Thread Hans Verkuil
The most likely error you will get when calling VIDIOC_QUERYCAP for a device node that does not support it is ENOTTY, not EINVAL. Signed-off-by: Hans Verkuil --- Documentation/DocBook/media/v4l/vidioc-querycap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/

Re: Time for a v4l-utils 1.8.0 release

2015-05-05 Thread Hans Petter Selasky
On 05/06/15 04:07, Laurent Pinchart wrote: Hi Mauro, On Tuesday 05 May 2015 17:22:35 Mauro Carvalho Chehab wrote: Em Tue, 05 May 2015 21:08:49 +0200 Gregor Jasny escreveu: Hello, It's already more than half a year since the last v4l-utils release. Do you have any pending commits or objections

Re: [PATCH v3 1/1] V4L2: platform: Renesas R-Car JPEG codec driver

2015-05-05 Thread Mikhail Ulianov
On Mon, 04 May 2015 02:32:05 +0300 Laurent Pinchart wrote: > Hi Mikhail, > > Thank you for the patch. Please see below for a (partial) review. > > On Thursday 30 April 2015 00:53:29 Mikhail Ulyanov wrote: > > Here's the the driver for the Renesas R-Car JPEG processing unit > > driver. > > > >

cron job: media_tree daily build: ERRORS

2015-05-05 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: Wed May 6 04:00:16 CEST 2015 git branch: test git hash: 1555f3bf5cc172e7d23c2b8db10d656d15bec13e gcc versi

Re: Time for a v4l-utils 1.8.0 release

2015-05-05 Thread Laurent Pinchart
Hi Mauro, On Tuesday 05 May 2015 17:22:35 Mauro Carvalho Chehab wrote: > Em Tue, 05 May 2015 21:08:49 +0200 Gregor Jasny escreveu: > > Hello, > > > > It's already more than half a year since the last v4l-utils release. Do > > you have any pending commits or objections? If no one vetos I'd like to

Re: [RFC] How implement Secure Data Path ?

2015-05-05 Thread Laurent Pinchart
On Tuesday 05 May 2015 09:27:52 Christoph Hellwig wrote: > On Tue, May 05, 2015 at 05:39:57PM +0200, Benjamin Gaignard wrote: > > Since few months I'm looking for Linaro to how do Secure Data Path (SPD). > > I have tried and implemented multiple thinks but I always facing > > architecture issues so

Re: [PATCH v3 1/1] V4L2: platform: Renesas R-Car JPEG codec driver

2015-05-05 Thread Mikhail Ulianov
Hello Laurent, Thanks for your comments. On Mon, 04 May 2015 02:32:05 +0300 Laurent Pinchart wrote: > > +/* > > + * > > > > + * video ioctl operations > > + * > > =

[PATCH 2/4] e4000: remove dummy register write

2015-05-05 Thread Antti Palosaari
Chip is already probed, which means I2C bus is alive and working unless something strange happens during sleep. Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/tuners/e4000.c b/drivers/media/tuners/e4000.c index

[PATCH 1/4] e4000: disable sysfs device bind / unbind

2015-05-05 Thread Antti Palosaari
We are not allowed manually bind / unbind device from the driver currently. Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/tuners/e4000.c b/drivers/media/tuners/e4000.c index 510239f..59190cb 100644 --- a/drivers/

[PATCH 4/4] e4000: various small changes

2015-05-05 Thread Antti Palosaari
Rename device state from 's' to 'dev'. Move single include to driver private header. Change error handling type of each function to one I tend use nowadays. Define I2C client pointer for each function and use it. Do not clean tuner ops during driver remove - not needed. Rename some other variables.

[PATCH 3/4] e4000: cosmetic changes for PLL

2015-05-05 Thread Antti Palosaari
Add schematic drawing of used Fractional-N PLL. Rename and add some new PLL variables for better understanding. Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c | 44 +++ drivers/media/tuners/e4000_priv.h | 4 ++-- 2 files changed, 33 inse

[PATCH 21/21] rtl28xxu: load SDR module for fc2580 based devices

2015-05-05 Thread Antti Palosaari
Load rtl2832_sdr driver for devices having fc2580 tuner. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index 41f8808..d8866af 1006

[PATCH 08/21] af9035: fix device order in ID list

2015-05-05 Thread Antti Palosaari
Driver supports multiple chipset versions. Devices are ordered to ID table per used chipset type. "ITE 9303 Generic" device uses IT9303 chipset and was added mistakenly between IT9135 IDs. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c | 8 +--- 1 file changed, 5 in

[PATCH 18/21] fc2580: calculate filter control word dynamically

2015-05-05 Thread Antti Palosaari
Calculate low-pass filter control word dynamically from given radio channel bandwidth. Signed-off-by: Antti Palosaari --- drivers/media/tuners/fc2580.c | 8 drivers/media/tuners/fc2580_priv.h | 9 - 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/medi

[PATCH 06/21] fc2580: cleanups and variable renames

2015-05-05 Thread Antti Palosaari
Rename driver state from priv to dev. Remove legacy i2c-gate control. Use I2C client for proper dev_() logging. Signed-off-by: Antti Palosaari --- drivers/media/tuners/fc2580.c | 172 - drivers/media/tuners/fc2580_priv.h | 2 +- 2 files changed, 76 inse

[PATCH 07/21] fc2580: use regmap for register I2C access

2015-05-05 Thread Antti Palosaari
Replace home made register access routines with regmap. Signed-off-by: Antti Palosaari --- drivers/media/tuners/Kconfig | 1 + drivers/media/tuners/fc2580.c | 216 +++-- drivers/media/tuners/fc2580_priv.h | 4 +- 3 files changed, 66 insertions(+), 1

[PATCH 05/21] fc2580: improve set params logic

2015-05-05 Thread Antti Palosaari
Calculate PLL dividers slightly differently, most likely it is now correct. Move some register values to innitab. Use jiffies to poll filter lock. Fix logging. Signed-off-by: Antti Palosaari --- drivers/media/tuners/fc2580.c | 179 + drivers/media/tuners/

[PATCH 01/21] fc2580: implement I2C client bindings

2015-05-05 Thread Antti Palosaari
Add I2C client bindings to driver. Signed-off-by: Antti Palosaari --- drivers/media/tuners/fc2580.c | 101 + drivers/media/tuners/fc2580.h | 15 ++ drivers/media/tuners/fc2580_priv.h | 4 +- 3 files changed, 110 insertions(+), 10 deletions(-)

[PATCH 20/21] rtl2832_sdr: add support for fc2580 tuner

2015-05-05 Thread Antti Palosaari
Add initial support for fc2580 tuner based devices. Tuner is controlled via V4L2 subdevice API. Passes v4l2-compliance tests. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832_sdr.c | 110 -- drivers/media/dvb-frontends/rtl2832_sdr.h | 1 + 2 fi

[PATCH 12/21] tua9001: remove media attach

2015-05-05 Thread Antti Palosaari
We are using I2C client binding now, so remove old media attach. Signed-off-by: Antti Palosaari --- drivers/media/tuners/tua9001.c | 88 ++ drivers/media/tuners/tua9001.h | 20 -- 2 files changed, 4 insertions(+), 104 deletions(-) diff --git a/dri

[PATCH 10/21] af9035: bind tua9001 using I2C binding

2015-05-05 Thread Antti Palosaari
Change tua9001 driver from media binding to I2C client binding. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-

[PATCH 19/21] fc2580: implement V4L2 subdevice for SDR control

2015-05-05 Thread Antti Palosaari
Implement V4L2 subdevice for bandwidth and frequency controls of SDR usage. That driver now implements both DVB frontend and V4L2 subdevice. Driver itself is I2C driver. Lets see how it works. Signed-off-by: Antti Palosaari --- drivers/media/tuners/fc2580.c | 262 +++

[PATCH 09/21] tua9001: add I2C bindings

2015-05-05 Thread Antti Palosaari
Add I2C bindings. Signed-off-by: Antti Palosaari --- drivers/media/tuners/tua9001.c | 100 +++- drivers/media/tuners/tua9001.h | 13 + drivers/media/tuners/tua9001_priv.h | 4 +- 3 files changed, 114 insertions(+), 3 deletions(-) diff --git a/dri

[PATCH 17/21] rtl28xxu: set correct FC2580 tuner for RTL2832 demod

2015-05-05 Thread Antti Palosaari
rtl2832 demod driver has support for FC2580 tuner config, no need to abuse FC0012 settings anymore. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/dr

[PATCH 15/21] tua9001: use div_u64() for frequency calculation

2015-05-05 Thread Antti Palosaari
Use div_u64() to simplify and remove home made divides. Signed-off-by: Antti Palosaari --- drivers/media/tuners/tua9001.c | 9 + drivers/media/tuners/tua9001_priv.h | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/media/tuners/tua9001.c b/drivers/media/t

[PATCH 14/21] tua9001: use regmap for I2C register access

2015-05-05 Thread Antti Palosaari
Use regmap for I2C register access. Signed-off-by: Antti Palosaari --- drivers/media/tuners/Kconfig| 1 + drivers/media/tuners/tua9001.c | 41 +++-- drivers/media/tuners/tua9001_priv.h | 2 ++ 3 files changed, 15 insertions(+), 29 deletions(-) diff

[PATCH 16/21] rtl2832: add inittab for FC2580 tuner

2015-05-05 Thread Antti Palosaari
Add reg/val inittab for FC2580 tuner. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832.c | 4 drivers/media/dvb-frontends/rtl2832.h | 1 + drivers/media/dvb-frontends/rtl2832_priv.h | 24 3 files changed, 29 insertions(+) diff --gi

[PATCH 11/21] rtl28xxu: bind tua9001 using I2C binding

2015-05-05 Thread Antti Palosaari
Change tua9001 driver from media binding to I2C client binding. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb

[PATCH 13/21] tua9001: various minor changes

2015-05-05 Thread Antti Palosaari
Fix logging. Style issues. Rename things. Signed-off-by: Antti Palosaari --- drivers/media/tuners/Kconfig| 2 +- drivers/media/tuners/tua9001.c | 153 ++-- drivers/media/tuners/tua9001.h | 6 +- drivers/media/tuners/tua9001_priv.h | 16 ++--

[PATCH 03/21] af9035: bind fc2580 using I2C binding

2015-05-05 Thread Antti Palosaari
Change fc2580 driver from media binding to I2C client binding. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2

[PATCH 04/21] fc2580: remove obsolete media attach

2015-05-05 Thread Antti Palosaari
All users are using driver via I2C client binding so lets remove unneeded media binding. Signed-off-by: Antti Palosaari --- drivers/media/tuners/fc2580.c | 72 --- drivers/media/tuners/fc2580.h | 26 2 files changed, 98 deletions(-) diff

[PATCH 02/21] rtl28xxu: bind fc2580 using I2C binding

2015-05-05 Thread Antti Palosaari
Change fc2580 driver from media binding to I2C client binding. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 29 - 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/us

[PATCH 2/4] msi001: cleanups / renames

2015-05-05 Thread Antti Palosaari
Rename state from s to dev. Rename some other things. Fix indentations. Disable driver unbind via sysfs. Signed-off-by: Antti Palosaari indentation prevent unload Signed-off-by: Antti Palosaari --- drivers/media/tuners/msi001.c | 195 ++ 1 file changed,

[PATCH 4/4] msi2500: cleanups

2015-05-05 Thread Antti Palosaari
Rename state to dev. Correct some indentations. Remove FSF address. Fix some style issues reported by checkpatch.pl. Correct some style issues I liked. Signed-off-by: Antti Palosaari --- drivers/media/usb/msi2500/msi2500.c | 610 ++-- 1 file changed, 306 insertion

[PATCH 3/4] msi2500: revise synthesizer calculation

2015-05-05 Thread Antti Palosaari
Update synthesizer calculation to model I prefer nowadays. It is mostly just renaming some variables, but also minor functionality change how integer and fractional part are divided (using div_u64_rem()). Also, add 'schematic' of synthesizer following my current understanding. Signed-off-by: Antti

[PATCH 1/4] msi001: revise synthesizer calculation

2015-05-05 Thread Antti Palosaari
Update synthesizer calculation to model I prefer nowadays. It is mostly just renaming some variables, but also minor functionality change how integer and fractional part are divided (using div_u64_rem()). Also, add 'schematic' of synthesizer following my current understanding. Signed-off-by: Antti

Re: Time for a v4l-utils 1.8.0 release

2015-05-05 Thread Mauro Carvalho Chehab
Em Tue, 05 May 2015 21:08:49 +0200 Gregor Jasny escreveu: > Hello, > > It's already more than half a year since the last v4l-utils release. Do > you have any pending commits or objections? If no one vetos I'd like to > release this weekend. There is are a additions I'd like to add to v4l-utils:

Re: [PATCH 3/4] Wrap LFS64 functions only if __GLIBC__

2015-05-05 Thread Gregor Jasny
On 05/05/15 14:34, Mauro Carvalho Chehab wrote: > Em Sun, 25 Jan 2015 21:36:36 +0100 > Felix Janda escreveu: >> -#ifdef linux >> +#ifdef __GLIBC__ > > Hmm... linux was added here to avoid breaking on FreeBSD, on this > changeset: > > So, either we should get an ack from Hans Peter, or you should

Time for a v4l-utils 1.8.0 release

2015-05-05 Thread Gregor Jasny
Hello, It's already more than half a year since the last v4l-utils release. Do you have any pending commits or objections? If no one vetos I'd like to release this weekend. Thanks, Gregor -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord.

[PATCHv2 2/4] Test for ioctl() function signature

2015-05-05 Thread Felix Janda
On glibc, ioctl has the signature ioctl(int, unsigned long int, ...). On musl, libc and according to POSIX it is ioctl(int, int, ...). Add a configure test adapted from gnulib's ioctl.m4 to make the DL_PRELOAD libraries work for both signatures. Signed-off-by: Felix Janda --- v2: Fix declaration

[PATCHv2 3/4] Wrap LFS64 functions only if linux && __GLIBC__

2015-05-05 Thread Felix Janda
For musl libc, open64 is #define'd to open. Therefore we should not try to wrap both open and open64. Signed-off-by: Felix Janda --- v2: Test for linux as well Mauro Carvalho Chehab wrote: [..] > Hmm... linux was added here to avoid breaking on FreeBSD, on this > changeset: > > commit 9026d3cc2

[PATCHv2 1/4] Use off_t and off64_t instead of __off_t and __off64_t

2015-05-05 Thread Felix Janda
Since _LARGEFILE64_SOURCE is 1, these types coincide if defined. Signed-off-by: Felix Janda --- v2: rebased Mauro Carvalho Chehab wrote: Thanks for the review. > Em Sun, 25 Jan 2015 21:36:15 +0100 > Felix Janda escreveu: > > > Since _LARGEFILE64_SOURCE is 1, these types coincide if defined.

Re: [PATCH] v4l: of: Correct pclk-sample for BT656 bus

2015-05-05 Thread Sylwester Nawrocki
On 05/05/15 15:49, Nikhil Devshatwar wrote: > Current v4l2_of_parse_parallel_bus function attempts to parse the > DT properties for the parallel bus as well as BT656 bus. > If the pclk-sample property is defined for the BT656 bus, it is still > marked as a parallel bus. > Fix this by parsing the pc

[RFC] How implement Secure Data Path ?

2015-05-05 Thread Benjamin Gaignard
Hello, Since few months I'm looking for Linaro to how do Secure Data Path (SPD). I have tried and implemented multiple thinks but I always facing architecture issues so I would like to get your help to solve the problem. First what is Secure Data Path ? SDP is a set of hardware features to garant

Re: [PATCH] libgencec: Add userspace library for the generic CEC kernel interface

2015-05-05 Thread Emil Velikov
Hi Kamil, It seems that you've only incorporated the libgencec.pc suggestion. Did you change your mind about the others, found out something funny with them (if so can you let me know what) or simply forgot about them ? On 30 April 2015 at 11:25, Kamil Debski wrote: > Hi Emil, > > From: linux-me

Re: DVBv5 qos/stats driver implementation

2015-05-05 Thread Mauro Carvalho Chehab
Em Tue, 05 May 2015 15:26:07 +0100 Jemma Denson escreveu: > Mauro/Antti, > > Myself and Patrick are currently in the process of bringing an old out > of tree frontend driver into shape for inclusion, and one of the issues > raised by Mauro was the requirement for the new DVBv5 stats method. I'

[PATCH 0/9 v3] Helper to abstract vma handling in media layer

2015-05-05 Thread Jan Kara
Hello, I'm sending the third version of my patch series to abstract vma handling from the various media drivers. After this patch set drivers have to know much less details about vmas, their types, and locking. Also quite some code is removed from them. As a bonus drivers get automatically VM_

[PATCH 7/9] media: vb2: Convert vb2_dc_get_userptr() to use frame vector

2015-05-05 Thread Jan Kara
Convert vb2_dc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 21

[PATCH 8/9] media: vb2: Remove unused functions

2015-05-05 Thread Jan Kara
Conversion to the use of pinned pfns made some functions unused. Remove them. Also there's no need to lock mmap_sem in __buf_prepare() anymore. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-memops.c | 114 --

[PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-05-05 Thread Jan Kara
Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). This removes the knowledge about vmas and mmap_sem locking from exynos driver. Also it fixes a problem that the function has been mapping user provided address without holding mmap_sem. Signed-off-by: Jan Kara --- drivers/

[PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-05-05 Thread Jan Kara
Provide new function get_vaddr_frames(). This function maps virtual addresses from given start and fills given array with page frame numbers of the corresponding pages. If given start belongs to a normal vma, the function grabs reference to each of the pages to pin them in memory. If start belongs

[PATCH 1/9] [media] vb2: Push mmap_sem down to memops

2015-05-05 Thread Jan Kara
Currently vb2 core acquires mmap_sem just around call to __qbuf_userptr(). However since commit f035eb4e976ef5 (videobuf2: fix lockdep warning) it isn't necessary to acquire it so early as we no longer have to drop queue mutex before acquiring mmap_sem. So push acquisition of mmap_sem down into .ge

[PATCH 6/9] media: vb2: Convert vb2_vmalloc_get_userptr() to use frame vector

2015-05-05 Thread Jan Kara
Convert vb2_vmalloc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-vmalloc.c |

[PATCH 4/9] vb2: Provide helpers for mapping virtual addresses

2015-05-05 Thread Jan Kara
Provide simple helper functions to map virtual address range into an array of pfns / pages. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-memops.c | 58 ++ include/media/videobuf2-memops.h

[PATCH 5/9] media: vb2: Convert vb2_dma_sg_get_userptr() to use frame vector

2015-05-05 Thread Jan Kara
Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 97 +- 1 file changed, 15 insertions(+), 82 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v4l2-cor

[PATCH 3/9] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-05-05 Thread Jan Kara
Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns() instead of hand made mapping of virtual address to physical address. Also the function leaked page reference from get_user_pages() so fix that by properly release the reference when omap_vout_buffer_release() is called. Signed-off-by: Ja

Re: [RFC] How implement Secure Data Path ?

2015-05-05 Thread Christoph Hellwig
On Tue, May 05, 2015 at 05:39:57PM +0200, Benjamin Gaignard wrote: > Since few months I'm looking for Linaro to how do Secure Data Path (SPD). > I have tried and implemented multiple thinks but I always facing architecture > issues so I would like to get your help to solve the problem. > > First w

Re: [RFC] How implement Secure Data Path ?

2015-05-05 Thread One Thousand Gnomes
> First what is Secure Data Path ? SDP is a set of hardware features to garanty > that some memories regions could only be read and/or write by specific > hardware > IPs. You can imagine it as a kind of memory firewall which grant/revoke > accesses to memory per devices. Firewall configuration mus

[PATCH v4 4/6] si2157: support selection of IF interface

2015-05-05 Thread Olli Salonen
The chips supported by the si2157 driver have two IF outputs (either pins 12+13 or pins 9+11). Instead of hardcoding the output to be used add an option to choose which output shall be used. As this patch changes the default behaviour, the IF interface is specified in each driver currently using s

[PATCH v4 5/6] rtl28xxu: add I2C read without write

2015-05-05 Thread Olli Salonen
Add support for I2C read operation without a preceeding write. While here, change the error code to EOPNOTSUPP in case an unsupported I2C operation is attempted. Signed-off-by: Olli Salonen --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-)

[PATCH v4 6/6] rtl2832: add support for GoTView MasterHD 3 USB tuner

2015-05-05 Thread Olli Salonen
GoTView MasterHD 3 is a DVB-T2/C USB 2.0 tuner. It's based on the following components: - USB bridge: RTL2832P (contains also DVB-T demodulator) - Demodulator: Si2168-A30 - Tuner: Si2148-A20 The demodulator and the tuner will need firmwares. The Si2148 uses Si2158 firmware. Antti has the firmware

[PATCH v4 1/6] si2168: add support for gapped clock

2015-05-05 Thread Olli Salonen
Add a parameter in si2168_config to support gapped clock. This might be necessary on some devices with higher bitrates. Signed-off-by: Olli Salonen --- drivers/media/dvb-frontends/si2168.c | 3 +++ drivers/media/dvb-frontends/si2168.h | 3 +++ drivers/media/dvb-frontends/si2168_priv.h

[PATCH v4 2/6] dvbsky: use si2168 config option ts_clock_gapped

2015-05-05 Thread Olli Salonen
Change the dvbsky driver to support gapped clock instead of the current hack. Signed-off-by: Olli Salonen --- drivers/media/usb/dvb-usb-v2/dvbsky.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c

[PATCH v4 3/6] si2168: add I2C error handling

2015-05-05 Thread Olli Salonen
Return error from si2168_cmd_execute in case the demodulator returns an error. Signed-off-by: Olli Salonen --- drivers/media/dvb-frontends/si2168.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index 29a593

[PATCHv4 0/6] GoTView MasterHD 3 USB tuner

2015-05-05 Thread Olli Salonen
Fourth version of this patch series as there had been new si2157 devices that were added to the media_tree since the last submission. The si2157-patch in this series now takes care of those devices as well. Olli Salonen (6): si2168: add support for gapped clock dvbsky: use si2168 config opti

[PATCH 10/27] [media] wl128x: Allow compile test of GPIO consumers if !GPIOLIB

2015-05-05 Thread Geert Uytterhoeven
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer functionality only, can still be compiled if GPIOLIB is not enabled. Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate. Sign

[PATCH 4/4] dw2102: resync fifo when demod locks

2015-05-05 Thread Olli Salonen
If the streaming_ctrl is called to enable TS before demod has locked the TS will be empty. Copied the solution from the dvbsky driver for the TechnoTrend S2-4600 device: when the state changes from unlock to lock, call su3000_streaming_ctrl again. Signed-off-by: Olli Salonen --- drivers/media/us

[PATCH 1/4] dw2102: remove unnecessary printing of MAC address

2015-05-05 Thread Olli Salonen
While reading the MAC address for SU3000-based devices the system was printing excessive debug information in the logs: Output before the patch: [ 1515.780692] bc 00 00 00 00 00 [ 1515.781440] bc ea 00 00 00 00 [ 1515.782251] bc ea 2b 00 00 00 [ 1515.783094] bc ea 2b 46 00 00 [ 1515.783816] bc ea

[PATCH 2/4] dw2102: remove unnecessary newline from log printouts

2015-05-05 Thread Olli Salonen
The info and warn functions already add a newline to the end of the log printouts, so remove the extra newline from the printouts. Signed-off-by: Olli Salonen --- drivers/media/usb/dvb-usb/dw2102.c | 60 +++--- 1 file changed, 30 insertions(+), 30 deletions(-) di

[PATCH 3/4] dw2102: debugging improvements

2015-05-05 Thread Olli Salonen
Move some info printouts to be debugging printouts that are only shown if debugging for the module is enabled. The module already implemented deb_rc and deb_xfer, but not deb_info. Signed-off-by: Olli Salonen --- drivers/media/usb/dvb-usb/dw2102.c | 6 -- drivers/media/usb/dvb-usb/dw2102.h |

DVBv5 qos/stats driver implementation

2015-05-05 Thread Jemma Denson
Mauro/Antti, Myself and Patrick are currently in the process of bringing an old out of tree frontend driver into shape for inclusion, and one of the issues raised by Mauro was the requirement for the new DVBv5 stats method. I've noticed there seems to be two different ways of going around this

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-05-05 Thread Sumit Semwal
Hi Russell, everyone, First up, sincere apologies for being awol for sometime; had some personal / medical things to take care of, and then I thought I'd wait for the merge window to get over before beginning to discuss this again. On 11 February 2015 at 21:53, Russell King - ARM Linux wrote: >

[PATCH] v4l: of: Correct pclk-sample for BT656 bus

2015-05-05 Thread Nikhil Devshatwar
Current v4l2_of_parse_parallel_bus function attempts to parse the DT properties for the parallel bus as well as BT656 bus. If the pclk-sample property is defined for the BT656 bus, it is still marked as a parallel bus. Fix this by parsing the pclk after the bus_type is selected. Only when hsync or

[PATCH v2] v4l2-dv-timings: fix overflow in gtf timings calculation

2015-05-05 Thread Prashant Laddha
Please find version v2 for the overflow fix in gtf timing calculation. v2 incorporates comments from Hans on version 1 of this patch. Regards, Prashant Prashant Laddha (1): v4l2-dv-timings: fix overflow in gtf timings calculation drivers/media/v4l2-core/v4l2-dv-timings.c | 30

[PATCH v2] v4l2-dv-timings: fix overflow in gtf timings calculation

2015-05-05 Thread Prashant Laddha
The intermediate calculation in the expression for hblank can exceed 32 bit signed range. This overflow can lead to negative values for hblank. Typecasting intermediate variable to higher precision. Cc: Hans Verkuil Cc: Martin Bugge Signed-off-by: Prashant Laddha --- drivers/media/v4l2-core/v4

Re: [PATCH 1/4] Use off_t and off64_t instead of __off_t and __off64_t

2015-05-05 Thread Mauro Carvalho Chehab
Em Sun, 25 Jan 2015 21:36:15 +0100 Felix Janda escreveu: > Since _LARGEFILE64_SOURCE is 1, these types coincide if defined. The __off_t macro was also added by the FreeBSD patchset. Removing this will likely break for FreeBSD. So, provided that this is not causing any issues, better to keep it

Re: [PATCH 3/4] Wrap LFS64 functions only if __GLIBC__

2015-05-05 Thread Mauro Carvalho Chehab
Em Sun, 25 Jan 2015 21:36:36 +0100 Felix Janda escreveu: > The functions open64 and mmap64 are glibc specific. > > Signed-off-by: Felix Janda > --- > lib/libv4l1/v4l1compat.c | 4 ++-- > lib/libv4l2/v4l2convert.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/l

Re: [PATCH 2/4] Test for ioctl() function signature

2015-05-05 Thread Mauro Carvalho Chehab
Em Sun, 25 Jan 2015 21:36:25 +0100 Felix Janda escreveu: > On glibc, ioctl has the signature ioctl(int, unsigned long int, ...). > On musl, libc and according to POSIX it is ioctl(int, int, ...). > Add a configure test adapted from gnulib's ioctl.m4 to make the > DL_PRELOAD libraries work for bot

Re: [PATCH] [media] usb: as102: as10x_cmd_cfg: Remove unused function

2015-05-05 Thread Mauro Carvalho Chehab
Em Mon, 12 Jan 2015 00:05:10 +0100 Rickard Strandqvist escreveu: > Remove the function as10x_cmd_eLNA_change_mode() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. The fix here should add support for it, as the DVB core now sup

Re: [PATCH v4 00/17] media: blackfin: bfin_capture enhancements

2015-05-05 Thread Lad, Prabhakar
Hi Scott, On Tue, May 5, 2015 at 10:58 AM, Scott Jiang wrote: > 2015-04-24 18:04 GMT+08:00 Hans Verkuil : >> On 04/10/2015 12:42 PM, Scott Jiang wrote: >>> Hi Hans, >>> > > Hans, I tried to use v4l2-compliance but it failed to compile. Sorry > for telling you it have passed compilatio

Von Dr. Christopher Harrison (Bitte antworten)

2015-05-05 Thread Dr. Christopher Harrison
Lieber Freund, Wie geht es dir heute? Ich hoffe, in Ordnung, ich bin Dr. Christopher Harrison von NothWest London, England. Ich arbeite für Zweig Lloyds Bank London. Ich schreibe Ihnen aus meinem Büro, das aus einem großen immense Vorteil für uns beide sein wird. In meiner Abteilung, dass die

Re: [PATCH v4 00/17] media: blackfin: bfin_capture enhancements

2015-05-05 Thread Scott Jiang
2015-04-24 18:04 GMT+08:00 Hans Verkuil : > On 04/10/2015 12:42 PM, Scott Jiang wrote: >> Hi Hans, >> Hans, I tried to use v4l2-compliance but it failed to compile. Sorry for telling you it have passed compilation because I forgot to use blackfin toolchain. ./configure --wi

[GIT PULL for v4.1-rc3] media fixes

2015-05-05 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.1-3 For 3 driver fixes: - one fix for omap4, fixing a regression due to a subsystem API that got removed for 4.1 (commit efde234674d9); - one fix for one of the formats supported by