Re: [PATCH 02/12] [media] dvb-pll: Add support for THOMSON DTT7546X tuner.

2015-07-30 Thread Michael Ira Krufky
On Thu, Jul 30, 2015 at 7:14 AM, Michael Ira Krufky mkru...@linuxtv.org wrote: On Thu, Jul 30, 2015 at 6:08 AM, Joe Perches j...@perches.com wrote: On Thu, 2015-07-30 at 10:47 +0100, Peter Griffin wrote: Hi Mauro / Joe, On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015

Re: [PATCH 02/12] [media] dvb-pll: Add support for THOMSON DTT7546X tuner.

2015-07-30 Thread Peter Griffin
Hi Michael, On Thu, 30 Jul 2015, Michael Ira Krufky wrote: On Thu, Jul 30, 2015 at 7:14 AM, Michael Ira Krufky mkru...@linuxtv.org wrote: On Thu, Jul 30, 2015 at 6:08 AM, Joe Perches j...@perches.com wrote: On Thu, 2015-07-30 at 10:47 +0100, Peter Griffin wrote: Hi Mauro / Joe, On

Re: [PATCH 02/12] [media] dvb-pll: Add support for THOMSON DTT7546X tuner.

2015-07-30 Thread Peter Griffin
Hi Michael, On Thu, 30 Jul 2015, Michael Ira Krufky wrote: On Thu, Jul 30, 2015 at 7:14 AM, Michael Ira Krufky mkru...@linuxtv.org wrote: On Thu, Jul 30, 2015 at 6:08 AM, Joe Perches j...@perches.com wrote: On Thu, 2015-07-30 at 10:47 +0100, Peter Griffin wrote: Hi Mauro / Joe, On

Re: [PATCH] uvcvideo: Disable hardware timestamps by default

2015-07-30 Thread Paul Fertser
Hello Laurent, I was experimenting with a web-camera integrated in my laptop and was extremely confused by non-monotonic timestamps coming from the uvc driver. In fact, the very first timestamp was bigger then the second every time I tried. This patch helped. More details: 1. I'm testing with

Re: [RFC PATCH] lib: scatterlist: add sg splitting function

2015-07-30 Thread Russell King - ARM Linux
On Thu, Jul 30, 2015 at 09:02:15PM +0200, Robert Jarzmik wrote: Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each one filling a part of it. A concrete example comes

Re: [RFC PATCH] lib: scatterlist: add sg splitting function

2015-07-30 Thread Robert Jarzmik
Russell King - ARM Linux li...@arm.linux.org.uk writes: On Thu, Jul 30, 2015 at 09:02:15PM +0200, Robert Jarzmik wrote: Hmm. What happens if... n = dma_map_sg(dev, sg, nents, dir); where n nents (which can happen if you have an IOMMU and it coalesces the entries)? That's something

[PATCHv3 01/13] v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR

2015-07-30 Thread Antti Palosaari
SDR receiver has ADC (Analog-to-Digital Converter) and SDR transmitter has DAC (Digital-to-Analog Converter). Originally I though it could be good idea to have own type for receiver and transmitter, but now I feel one common type for SDR is enough. So lets rename it. Cc: Hans Verkuil

[PATCHv3 09/13] hackrf: switch to single function which configures everything

2015-07-30 Thread Antti Palosaari
Implement single funtion, hackrf_set_params(), which handles all needed settings. Controls and other IOCTLs are just wrappers to that function. That way we can get easily better control what we could do on different device states - sleeping, receiving, transmitting. Signed-off-by: Antti Palosaari

[PATCHv3 03/13] DocBook: document tuner RF gain control

2015-07-30 Thread Antti Palosaari
Add brief description for tuner RF gain control. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- Documentation/DocBook/media/v4l/compat.xml | 4 Documentation/DocBook/media/v4l/controls.xml | 14 ++ Documentation/DocBook/media/v4l/v4l2.xml

[PATCHv3 10/13] hackrf: add support for transmitter

2015-07-30 Thread Antti Palosaari
HackRF SDR device has both receiver and transmitter. There is limitation that receiver and transmitter cannot be used at the same time (half-duplex operation). That patch implements transmitter support to existing receiver only driver. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti

[PATCHv3 12/13] DocBook: fix S_FREQUENCY = G_FREQUENCY

2015-07-30 Thread Antti Palosaari
It is VIDIOC_G_FREQUENCY which does not use type to identify tuner, not VIDIOC_S_FREQUENCY. VIDIOC_S_FREQUENCY uses both tuner and type fields. One of these V4L API weirdness... Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi ---

[PATCHv3 13/13] DocBook: add tuner types SDR and RF for G_TUNER / S_TUNER

2015-07-30 Thread Antti Palosaari
Add V4L2_TUNER_SDR and V4L2_TUNER_RF to supported tuner types to table. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- Documentation/DocBook/media/v4l/vidioc-g-tuner.xml | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCHv3 04/13] v4l2: add support for SDR transmitter

2015-07-30 Thread Antti Palosaari
New IOCTL ops: vidioc_enum_fmt_sdr_out vidioc_g_fmt_sdr_out vidioc_s_fmt_sdr_out vidioc_try_fmt_sdr_out New vb2 buffertype: V4L2_BUF_TYPE_SDR_OUTPUT New v4l2 capability: V4L2_CAP_SDR_OUTPUT Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com ---

[PATCHv3 05/13] DocBook: document SDR transmitter

2015-07-30 Thread Antti Palosaari
Add documentation for V4L SDR transmitter (output) devices. Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/compat.xml | 4 +++ Documentation/DocBook/media/v4l/dev-sdr.xml| 30 +++---

[PATCHv3 06/13] v4l: add type field to v4l2_modulator struct

2015-07-30 Thread Antti Palosaari
Add type field to that struct like it counterpart v4l2_tuner already has. We need type field to distinguish different tuner types from each others for transmitter too. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/v4l2-core/v4l2-ioctl.c | 18

[PATCHv3 11/13] hackrf: do not set human readable name for formats

2015-07-30 Thread Antti Palosaari
Format names are set by core nowadays. Remove name from driver. Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/usb/hackrf/hackrf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/usb/hackrf/hackrf.c

[PATCHv3 07/13] DocBook: add modulator type field

2015-07-30 Thread Antti Palosaari
Add new modulator type field to documentation. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- Documentation/DocBook/media/v4l/vidioc-g-modulator.xml | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCHv3 08/13] hackrf: add control for RF amplifier

2015-07-30 Thread Antti Palosaari
There is Avago MGA-81563 amplifier just right after antenna connector. It could be turned on/off and its gain is around 12dB. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/hackrf/hackrf.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff

[PATCHv3 02/13] v4l2: add RF gain control

2015-07-30 Thread Antti Palosaari
Add new RF tuner gain control named RF Gain. That is aimed for first amplifier chip right after antenna connector. There is existing LNA Gain control, which is quite same, but it is aimed for cases amplifier is integrated to tuner chip. Some designs have both, as almost all recent tuner silicons

[PATCHv3 00/13] SDR transmitter API

2015-07-30 Thread Antti Palosaari
v3: * some documentation addons * added type field to v4l2 modulator struct * hackrf: fix querycap capabilities * hackrf: remove another v4l2_device struct * hackrf: fix / moved RX/TX busy check to start streaming * hackrf: some other minor changes Those fixes were the ones Hans pointed out,

cron job: media_tree daily build: OK

2015-07-30 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: Fri Jul 31 04:00:17 CEST 2015 git branch: test git hash: 4dc102b2f53d63207fa12a6ad49c7b6448bc3301 gcc

Re: [PATCH 1/2] media: atmel-isi: setup the ISI_CFG2 register directly

2015-07-30 Thread Josh Wu
Hi, list Ping..., any feedback for this series? Best Regards, Josh Wu On 6/17/2015 6:39 PM, Josh Wu wrote: In the function configure_geometry(), we will setup the ISI CFG2 according to the sensor output format. It make no sense to just read back the CFG2 register and just set part of it. So

Re: [PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Dmitry Torokhov
On Thu, Jul 30, 2015 at 09:35:17AM -0700, Dmitry Torokhov wrote: Hi Javier, On Thu, Jul 30, 2015 at 06:18:25PM +0200, Javier Martinez Canillas wrote: Hello, Short version: This series add the missing MODULE_DEVICE_TABLE() for OF and I2C tables to export that information so

[PATCH 24/27] [media] smiapp: Export OF module alias information

2015-07-30 Thread Javier Martinez Canillas
The I2C core always reports the MODALIAS uevent as i2c:client name regardless if the driver was matched using the I2C id_table or the of_match_table. So technically there's no need for a driver to export the OF table since currently it's not used. In fact, the I2C device ID table is mandatory for

[PATCH v2 01/11] [media] stv0367: Refine i2c error trace to include i2c address

2015-07-30 Thread Peter Griffin
When using stv0367 demodulator with STi STB platforms, we can have easily have four or more stv0367 demods running in the system at one time. As typically the b2120 reference design ships with a b2004a daughter board, which can accept two dvb NIM cards, and each b2100A NIM has 2x stv0367 demods

Re: [PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Javier Martinez Canillas
Hello Dmitry, Thanks a lot for your feedback. On 07/30/2015 06:37 PM, Dmitry Torokhov wrote: On Thu, Jul 30, 2015 at 09:35:17AM -0700, Dmitry Torokhov wrote: Hi Javier, On Thu, Jul 30, 2015 at 06:18:25PM +0200, Javier Martinez Canillas wrote: Hello, Short version: This series add the

[PATCH v2 03/11] dvb-pll: Convert struct dvb_pll_desc uses to const.

2015-07-30 Thread Peter Griffin
From: Joe Perches j...@perches.com Convert the struct dvb_pll_desc uses to const and change the entries fixed array size from 12 to [] It saves a couple KB overall and remove ~5KB of data. $ size drivers/media/dvb-frontends/dvb-pll.o* textdata bss dec hex filename 8520

[PATCH v2 00/11] Add c8sectpfe LinuxDVB demux driver

2015-07-30 Thread Peter Griffin
Hi Maruro and linux-media folks, This patchset adds support for a LinuxDVB demux driver for the ST STB stih407 family SoC's. Mauro - it is what I spoke to you about when we met at ELC-E in Dusseldorf last year. One big advantage of having a upstream demux driver for ST SoC's is that it will be

[PATCH v2 02/11] [media] stv0367: Add support for 16Mhz reference clock

2015-07-30 Thread Peter Griffin
The B2100A dvb NIM card from ST has 2x stv0367 demodulators and 2x TDA18212 silicon tuners, with a 16Mhz crystal. To get this working properly with the upstream driver we need to add support for the 16Mhz reference clock. Signed-off-by: Peter Griffin peter.grif...@linaro.org ---

[PATCH 27/27] i2c: (RFC, don't apply) report OF style modalias when probing using DT

2015-07-30 Thread Javier Martinez Canillas
An I2C driver that supports both OF and legacy platforms, will have both a OF and I2C ID table. This means that when built as a module, the aliases will be filled from both tables but currently always an alias of the form i2c:deviceId is reported, e.g: $ cat

[PATCH v2 08/11] [media] c8sectpfe: Add support for various ST NIM cards.

2015-07-30 Thread Peter Griffin
This patch adds support for the following 2 NIM cards: - 1) B2100A (2x stv0367 demods 2x NXP tda18212 tuners) 2) STV0903-6110NIM (stv0903 demod + 6110 tuner, lnb24) A NIM card is a cold plugable expansion card which usually features a demodulator / tuner combination. Signed-off-by: Peter

[PATCH v2 11/11] MAINTAINERS: Add c8sectpfe driver directory to STi section

2015-07-30 Thread Peter Griffin
Add the new c8sectpfe demux driver to the STi section of the MAINTAINERS file. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index a226416..a9f2f37 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH v2 07/11] [media] c8sectpfe: Add LDVB helper functions.

2015-07-30 Thread Peter Griffin
These functions are used by the core code for creating the LDVB devices and adapter. Addtionally some older SoC's (and potentially newer ones) have different frontend HW which would allow those devices to be easily supported in the future by keeping the code specific to the IP separate from the

[PATCH v2 05/11] ARM: DT: STi: STiH407: Add c8sectpfe LinuxDVB DT node.

2015-07-30 Thread Peter Griffin
This patch adds in the required DT node for the c8sectpfe Linux DVB demux driver which allows the tsin channels to be used on an upstream kernel. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/boot/dts/stihxxx-b2120.dtsi | 38 1 file

[PATCH v2 10/11] [media] c8sectpfe: Add Kconfig and Makefile for the driver.

2015-07-30 Thread Peter Griffin
This patch adds the Kconfig and Makefile for the c8sectpfe driver so it will be built. It also selects additional demodulator and tuners which are required by the supported NIM cards. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/media/platform/Kconfig| 4

[PATCH v2 06/11] [media] c8sectpfe: STiH407/10 Linux DVB demux support

2015-07-30 Thread Peter Griffin
This patch adds support for the c8sectpfe input HW found on STiH407/410 SoC's. It currently supports the TS input block, memdma engine and hw PID filtering blocks of the C8SECTPFE subsystem. The driver creates one LinuxDVB adapter, and a demux/dvr/frontend set of devices for each tsin channel

[PATCH v2 04/11] [media] c8sectpfe: Add DT bindings documentation for c8sectpfe driver.

2015-07-30 Thread Peter Griffin
This patch adds the DT bindings documentation for the c8sectpfe LinuxDVB demux driver whose IP is in the STiH407 family silicon SoC's. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- .../bindings/media/stih407-c8sectpfe.txt | 89 ++

[PATCH v2 09/11] [media] c8sectpfe: Add c8sectpfe debugfs support.

2015-07-30 Thread Peter Griffin
Some basic debugfs support to dump the IP registers. Further statistics could easily be added in the future for example for each enabled tsin channel we could expose number of corrupt packets received etc. Signed-off-by: Peter Griffin peter.grif...@linaro.org ---

[PATCH 11/27] [media] staging: media: lirc: Export I2C module alias information

2015-07-30 Thread Javier Martinez Canillas
The I2C core always reports the MODALIAS uevent as i2c:client name regardless if the driver was matched using the I2C id_table or the of_match_table. So the driver needs to export the I2C table and this be built into the module or udev won't have the necessary information to auto load the correct

Re: [PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Dmitry Torokhov
Hi Javier, On Thu, Jul 30, 2015 at 06:18:25PM +0200, Javier Martinez Canillas wrote: Hello, Short version: This series add the missing MODULE_DEVICE_TABLE() for OF and I2C tables to export that information so modules have the correct aliases built-in and autoloading works correctly.

[PATCH 04/27] [media] Export I2C module alias information in missing drivers

2015-07-30 Thread Javier Martinez Canillas
The I2C core always reports the MODALIAS uevent as i2c:client name regardless if the driver was matched using the I2C id_table or the of_match_table. So the driver needs to export the I2C table and this be built into the module or udev won't have the necessary information to auto load the correct

[PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Javier Martinez Canillas
Hello, Short version: This series add the missing MODULE_DEVICE_TABLE() for OF and I2C tables to export that information so modules have the correct aliases built-in and autoloading works correctly. Longer version: Currently it's mandatory for I2C drivers to have an I2C device ID table

[RFC PATCH] lib: scatterlist: add sg splitting function

2015-07-30 Thread Robert Jarzmik
Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each one filling a part of it. A concrete example comes with the media V4L2 API, where the scatter list is allocated from

Re: [PATCH 02/12] [media] dvb-pll: Add support for THOMSON DTT7546X tuner.

2015-07-30 Thread Peter Griffin
Hi Mauro / Joe, On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015 18:17:37 -0700 Joe Perches j...@perches.com escreveu: On Wed, 2015-06-24 at 16:11 +0100, Peter Griffin wrote: This is used in conjunction with the STV0367 demodulator on the STV0367-NIM-V1.0 NIM

Re: [PATCH 02/12] [media] dvb-pll: Add support for THOMSON DTT7546X tuner.

2015-07-30 Thread Joe Perches
On Thu, 2015-07-30 at 10:47 +0100, Peter Griffin wrote: Hi Mauro / Joe, On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015 18:17:37 -0700 Joe Perches j...@perches.com escreveu: On Wed, 2015-06-24 at 16:11 +0100, Peter Griffin wrote: This is used in

Re: [PATCH 11/12] [media] tsin: c8sectpfe: Add Kconfig and Makefile for the driver.

2015-07-30 Thread Peter Griffin
Hi Mauro, Thanks for reviewing. Sending my reply again, as it looks like I dropped the CC list on my first reply, and my second reply bounced on the mailing lists :-( On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015 16:11:09 +0100 Peter Griffin peter.grif...@linaro.org

Re: [PATCH 09/12] [media] tsin: c8sectpfe: Add support for various ST NIM cards.

2015-07-30 Thread Peter Griffin
Hi Mauro, On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015 16:11:07 +0100 Peter Griffin peter.grif...@linaro.org escreveu: This patch adds support for the following 3 NIM cards: - 1) STV0367-NIM (stv0367 demod with Thompson PLL) 2) B2100A (2x stv0367 demods 2x NXP

Re: [PATCH 02/12] [media] dvb-pll: Add support for THOMSON DTT7546X tuner.

2015-07-30 Thread Peter Griffin
Hi Mauro, On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015 16:11:00 +0100 Peter Griffin peter.grif...@linaro.org escreveu: This is used in conjunction with the STV0367 demodulator on the STV0367-NIM-V1.0 NIM card which can be used with the STi STB SoC's. This

Re: [PATCH 07/12] [media] tsin: c8sectpfe: STiH407/10 Linux DVB demux support

2015-07-30 Thread Peter Griffin
Hi Mauro, Thanks for reviewing. On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015 16:11:05 +0100 Peter Griffin peter.grif...@linaro.org escreveu: This patch adds support for the c8sectpfe input HW found on STiH407/410 SoC's. It currently supports the TS input

Re: [PATCH 02/12] [media] dvb-pll: Add support for THOMSON DTT7546X tuner.

2015-07-30 Thread Michael Ira Krufky
On Thu, Jul 30, 2015 at 6:08 AM, Joe Perches j...@perches.com wrote: On Thu, 2015-07-30 at 10:47 +0100, Peter Griffin wrote: Hi Mauro / Joe, On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015 18:17:37 -0700 Joe Perches j...@perches.com escreveu: On Wed, 2015-06-24

Re: [PATCH 02/12] [media] dvb-pll: Add support for THOMSON DTT7546X tuner.

2015-07-30 Thread Michael Ira Krufky
On Thu, Jul 30, 2015 at 7:14 AM, Michael Ira Krufky mkru...@linuxtv.org wrote: On Thu, Jul 30, 2015 at 6:08 AM, Joe Perches j...@perches.com wrote: On Thu, 2015-07-30 at 10:47 +0100, Peter Griffin wrote: Hi Mauro / Joe, On Wed, 22 Jul 2015, Mauro Carvalho Chehab wrote: Em Wed, 24 Jun 2015