[REVIEW PATCH 47/86] msi3101: add default FMT and ADC frequency

2014-02-09 Thread Antti Palosaari
Default ADC to smallest/worst possible configuration on probe. Also enhance some FMT debug logs. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[REVIEW PATCH 49/86] DocBook: document RF tuner gain controls

2014-02-09 Thread Antti Palosaari
Add documentation for LNA, mixer and IF gain controls. These controls are RF tuner specific. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com --- Documentation/DocBook/media/v4l/controls.xml | 91

[REVIEW PATCH 40/86] e4000: add manual gain controls

2014-02-09 Thread Antti Palosaari
Add gain control for LNA, Mixer and IF. Expose controls via DVB frontend .set_config callback. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/e4000.c | 68 +++ drivers/media/tuners/e4000.h | 6

[REVIEW PATCH 41/86] rtl2832_sdr: expose E4000 gain controls to user space

2014-02-09 Thread Antti Palosaari
Provide E4000 gain controls to userspace via V4L2 API. LNA, Mixer and IF gain controls are offered, each one both manual and automode. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/Makefile | 1 + drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 115

[REVIEW PATCH 43/86] rtl2832_sdr: expose R820 gain controls to user space

2014-02-09 Thread Antti Palosaari
Provide R820 gain controls to userspace via V4L2 API. LNA, Mixer and IF gain controls are offered, each one both manual and automode. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 41 1 file changed, 41 insertions(+)

[REVIEW PATCH 45/86] msi3101: fix device caps to advertise SDR receiver

2014-02-09 Thread Antti Palosaari
Advertise device as a SDR receiver, not video. After that libv4l accepts opening device. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c

[REVIEW PATCH 09/86] rtl28xxu: constify demod config structs

2014-02-09 Thread Antti Palosaari
Optimize a little bit from data to text. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c

[REVIEW PATCH 12/86] rtl2832_sdr: pixel format for SDR

2014-02-09 Thread Antti Palosaari
These are used for converting / streaming I/Q data from SDR. * unsigned 8-bit Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c

[REVIEW PATCH 10/86] rtl2832: remove unused if_dvbt config parameter

2014-02-09 Thread Antti Palosaari
All used tuners has get_if_frequency() callback and that parameter is not needed and will not needed as all upcoming tuner drivers should implement get_if_frequency(). Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 6 --

[REVIEW PATCH 39/86] e4000: convert DVB tuner to I2C driver model

2014-02-09 Thread Antti Palosaari
Driver conversion from proprietary DVB tuner model to more general I2C driver model. Cc: Jean Delvare kh...@linux-fr.org Cc: Mauro Carvalho Chehab m.che...@samsung.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/e4000.c| 115

[REVIEW PATCH 48/86] msi3101: sleep USB ADC and tuner when streaming is stopped

2014-02-09 Thread Antti Palosaari
Put USB IF / ADC and RF tuner to sleep when device is not streaming. It uses around 115 mA power from USB when active, which drops to 32 mA on idle after that patch. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 10 -- 1 file changed, 8

[REVIEW PATCH 08/86] rtl2832_sdr: initial support for FC0013 tuner

2014-02-09 Thread Antti Palosaari
Use tuner via internal DVB API. It is about same tuner than FC0012 and uses just same settings. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[REVIEW PATCH 35/86] msi3101: clamp ADC and RF to valid range

2014-02-09 Thread Antti Palosaari
Clamp both sampling frequency and RF frequency to valid range to meet V4L2 API spec. It is caller responsibility to check valid ranges using VIDIOC_ENUM_FREQ_BANDS IOCTL. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 15 --- 1 file

[REVIEW PATCH 38/86] msi3101: use standard V4L gain controls

2014-02-09 Thread Antti Palosaari
Use LNA, Mixer and IF gain controls offered by V4L API. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 433 1 file changed, 56 insertions(+), 377 deletions(-) diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c

[REVIEW PATCH 44/86] e4000: fix PLL calc to allow higher frequencies

2014-02-09 Thread Antti Palosaari
There was 32-bit overflow on VCO frequency calculation which blocks tuning to 1073 - 1104 MHz. Use 64 bit number in order to avoid VCO frequency overflow. After that fix device in question tunes to following range: 60 - 1104 MHz 1250 - 2207 MHz Signed-off-by: Antti Palosaari cr...@iki.fi ---

[REVIEW PATCH 42/86] r820t: add manual gain controls

2014-02-09 Thread Antti Palosaari
Add gain control for LNA, Mixer and IF. Expose controls via DVB frontend .set_config callback. Cc: Mauro Carvalho Chehab m.che...@samsung.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/r820t.c | 38 ++ drivers/media/tuners/r820t.h |

[REVIEW PATCH 02/86] rtl28xxu: attach SDR extension module

2014-02-09 Thread Antti Palosaari
With that extension module it supports SDR. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/Makefile | 1 + drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 8 2 files changed, 9 insertions(+) diff --git a/drivers/media/usb/dvb-usb-v2/Makefile

[REVIEW PATCH 03/86] rtl2832_sdr: use config struct from rtl2832 module

2014-02-09 Thread Antti Palosaari
There is absolutely no need to define own configuration struct as same params are used demod main module. So use existing config. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 5 + drivers/staging/media/rtl2832u_sdr/Makefile | 1 +

[REVIEW PATCH 46/86] rtl2832_sdr: fix device caps to advertise SDR receiver

2014-02-09 Thread Antti Palosaari
Advertise device as a SDR receiver, not video. After that libv4l accepts opening device. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[REVIEW PATCH 59/86] MAINTAINERS: add msi001 driver

2014-02-09 Thread Antti Palosaari
Mirics MSi001 silicon tuner driver. Currently in staging as SDR API is not ready. Signed-off-by: Antti Palosaari cr...@iki.fi --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b2cf5cf..15ebabb 100644 --- a/MAINTAINERS +++

[REVIEW PATCH 20/86] rtl2832_sdr: increase USB buffers

2014-02-09 Thread Antti Palosaari
Increase USB xfer buffers heavily in order handle wider data stream. Stream is quite heavy, over 50Mbit/sec, when sampling rates are increased up to 3.2Msps. With remote controller interrupts disabled and huge USB buffers it seems to perform even 3.2Msps rather well. Signed-off-by: Antti

[REVIEW PATCH 23/86] msi3101: add u8 sample format

2014-02-09 Thread Antti Palosaari
Add unsigned 8-bit sample format. Format is got directly from hardware, but it is converted from signed to unsigned. It is worst known sampling resolution hardware offer. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 67

[REVIEW PATCH 27/86] rtl2832_sdr: calculate bandwidth if not set by user

2014-02-09 Thread Antti Palosaari
Calculate bandwidth from sampling rate if it is not set by user. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c

[REVIEW PATCH 33/86] msi3101: remove FMT buffer type checks

2014-02-09 Thread Antti Palosaari
Remove unneeded buffer type checks from FMT IOTCL handlers. Checks are already done by V4L core. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c

[REVIEW PATCH 19/86] rtl28xxu: add module parameter to disable IR

2014-02-09 Thread Antti Palosaari
Disable IR interrupts in order to avoid SDR sample loss. IR interrupts causes some extra load for device and it seems be one reason to loss samples when sampling rate is high. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 7 +++ 1 file changed, 7

[REVIEW PATCH 17/86] msi3101: move format 336 conversion to libv4lconvert

2014-02-09 Thread Antti Palosaari
Move format 384 conversion to libv4lconvert as a fourcc DS12. It is 12-bit sample pairs packed to 3 bytes. msi3101: move format 336 conversion 336 to libv4l Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 66 +++-- 1 file

[REVIEW PATCH 26/86] rtl2832_sdr: return NULL on rtl2832_sdr_attach failure

2014-02-09 Thread Antti Palosaari
dvb_attach() expects NULL on attach failure. Do some style changes also while we are here. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 50 1 file changed, 25 insertions(+), 25 deletions(-) diff --git

[REVIEW PATCH 31/86] rtl2832_sdr: switch FM to DAB mode

2014-02-09 Thread Antti Palosaari
It seems to perform a little bit better on weak signals when mode is DAB. It looks like weak signals are faded out by squelch(?) in FM mode as voice was silenced under one sec when tuned to weak FM station. Signed-off-by: Antti Palosaari cr...@iki.fi ---

[REVIEW PATCH 18/86] msi3101: move format 252 conversion to libv4lconvert

2014-02-09 Thread Antti Palosaari
Move format 252 conversion to libv4lconvert as a fourcc DS14. It is 14-bit sample pairs packed to 4 bytes. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 65 +++-- 1 file changed, 24 insertions(+), 41 deletions(-) diff --git

[REVIEW PATCH 16/86] msi3101: move format 384 conversion to libv4lconvert

2014-02-09 Thread Antti Palosaari
Move format 384 conversion to libv4lconvert as a fourcc M384. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 163 ++-- 1 file changed, 57 insertions(+), 106 deletions(-) diff --git

[REVIEW PATCH 32/86] msi3101: calculate tuner filters

2014-02-09 Thread Antti Palosaari
Calculate tuner filters from sampling rate and use it if not defined manually. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git

[REVIEW PATCH 30/86] rtl2832_sdr: remove FMT buffer type checks

2014-02-09 Thread Antti Palosaari
Remove unneeded buffer type checks from FMT IOTCL handlers. Checks are already done by V4L core. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 9 - 1 file changed, 9 deletions(-) diff --git

[REVIEW PATCH 29/86] rtl2832_sdr: improve ADC device programming logic

2014-02-09 Thread Antti Palosaari
Refactor and implement properly RTL2832 programming logic. Implement some things more correctly. Restore some critical registers to POR default state, making it possible to use it as a DVB-T device without resetting or replugging. Signed-off-by: Antti Palosaari cr...@iki.fi ---

[REVIEW PATCH 28/86] rtl2832_sdr: clamp ADC frequency to valid range always

2014-02-09 Thread Antti Palosaari
V4L2 tuner API says incorrect value should be round to nearest legal value. Implement it for ADC frequency setting. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 24 1 file changed, 20 insertions(+), 4 deletions(-)

[REVIEW PATCH 25/86] msi3101: tons of small changes

2014-02-09 Thread Antti Palosaari
* remove unneeded controls * rename things * remove unneeded callbacks * use likely/unlikely on hot paths * use 1Hz resolution for tuner RF frequency Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 214 +++- 1 file changed, 55

[REVIEW PATCH 21/86] rtl2832_sdr: convert to SDR API

2014-02-09 Thread Antti Palosaari
It was abusing video device API. Use SDR API instead. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 387 +-- 1 file changed, 223 insertions(+), 164 deletions(-) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c

[REVIEW PATCH 34/86] msi3101: improve ADC config stream format selection

2014-02-09 Thread Antti Palosaari
Improve ADC config stream format selection. No functional changes. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 37 + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git

[REVIEW PATCH 36/86] msi3101: disable all but u8 and u16le formats

2014-02-09 Thread Antti Palosaari
As for now, better to support only two general stream formats. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c

[REVIEW PATCH 24/86] msi3101: add u16 LE sample format

2014-02-09 Thread Antti Palosaari
Add unsigned 16-bit little endian sample format. That stream format is scaled from hardware 14-bit signed value. That is best known sampling resolution that MSi2500 ADC provides. It is not guaranteed to be little endian, but host endian which is usually little endian - room for improvement.

[REVIEW PATCH 22/86] msi3101: convert to SDR API

2014-02-09 Thread Antti Palosaari
Convert to SDR API. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 218 ++-- 1 file changed, 142 insertions(+), 76 deletions(-) diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c

[REVIEW PATCH 37/86] v4l: add RF tuner gain controls

2014-02-09 Thread Antti Palosaari
Modern silicon RF tuners used nowadays has many controllable gain stages on signal path. Usually, but not always, there is at least 3 gain stages. Also on some cases there could be multiple gain stages within the ones specified here. However, I think that having these three controllable gain

[REVIEW PATCH 14/86] msi3101: add signed 8-bit pixel format for SDR

2014-02-09 Thread Antti Palosaari
It is 8-bit unsigned data, byte after byte. Used for streaming SDR I/Q data from ADC. V4L2_PIX_FMT_SDR_S8, v4l fourcc DS08. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[REVIEW PATCH 15/86] msi3101: implement FMT IOCTLs

2014-02-09 Thread Antti Palosaari
VIDIOC_ENUM_FMT, VIDIOC_G_FMT, VIDIOC_S_FMT and VIDIOC_TRY_FMT. Implement 8-bit signed stream (type '504' samples per USB packet) using FMT. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 165 +--- 1 file changed, 123

[REVIEW PATCH 07/86] rtl2832_sdr: initial support for FC0012 tuner

2014-02-09 Thread Antti Palosaari
Use tuner via internal DVB API. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c

[REVIEW PATCH 05/86] rtl2832_sdr: use get_if_frequency()

2014-02-09 Thread Antti Palosaari
Get IF from tuner and use it. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 60 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c

[REVIEW PATCH 11/86] rtl2832: style changes and minor cleanup

2014-02-09 Thread Antti Palosaari
Most of those were reported by checkpatch.pl... debug module parameter is not used anywhere so remove it. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 26 +++- drivers/media/dvb-frontends/rtl2832.h | 2 +-

[REVIEW PATCH 06/86] rtl2832_sdr: implement sampling rate

2014-02-09 Thread Antti Palosaari
Now it is possible to set desired sampling rate via v4l2 controls. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git

[REVIEW PATCH 04/86] rtl2832_sdr: initial support for R820T tuner

2014-02-09 Thread Antti Palosaari
Use tuner via internal DVB API. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 84 +++- 1 file changed, 53 insertions(+), 31 deletions(-) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c

[REVIEW PATCH 00/86] SDR tree

2014-02-09 Thread Antti Palosaari
That is everything I have on my SDR queue. There is drivers for Mirics MSi3101 and Realtek RTL2832U based devices. These drivers are still on staging and I am not going to move those out of staging very soon as I want get some experiments first. That set is available via Git:

[REVIEW PATCH 01/86] rtl2832_sdr: Realtek RTL2832 SDR driver module

2014-02-09 Thread Antti Palosaari
Implement SDR driver for Realtek RTL2832U chip as a DVB extension module. SDR module is attached by DVB USB RTL28XXU driver as a DVB SEC (satellite equipment controller) module. Abusing unused SEC here has no harm as that is DVB-T only frontend. SDR functionality is provided by RTL2832 DVB-T

[REVIEW PATCH 13/86] rtl2832_sdr: implement FMT IOCTLs

2014-02-09 Thread Antti Palosaari
VIDIOC_ENUM_FMT, VIDIOC_G_FMT, VIDIOC_S_FMT and VIDIOC_TRY_FMT. Return stream according to FMT. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 125 ++- 1 file changed, 75 insertions(+), 50 deletions(-) diff --git

[REVIEW PATCH 53/86] xc2028: silence compiler warnings

2014-02-09 Thread Antti Palosaari
There is now new tuner types which are not handled on that switch-case. Print error if unknown tuner type is meet. drivers/media/tuners/tuner-xc2028.c: In function ‘generic_set_freq’: drivers/media/tuners/tuner-xc2028.c:1037:2: warning: enumeration value ‘V4L2_TUNER_ADC’ not handled in switch

[REVIEW PATCH 56/86] rtl2832_sdr: implement tuner bandwidth control

2014-02-09 Thread Antti Palosaari
Implement control that user could adjust tuner filters manually, if he wish. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 71 1 file changed, 37 insertions(+), 34 deletions(-) diff --git

[REVIEW PATCH 51/86] DocBook: V4L: add V4L2_SDR_FMT_CU16LE - 'CU16'

2014-02-09 Thread Antti Palosaari
Document V4L2_SDR_FMT_CU16LE format. It is complex unsigned 16-bit little endian IQ sample. Used by software defined radio devices. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com ---

[REVIEW PATCH 50/86] DocBook: V4L: add V4L2_SDR_FMT_CU8 - 'CU08'

2014-02-09 Thread Antti Palosaari
Document V4L2_SDR_FMT_CU8 SDR format. It is complex unsigned 8-bit IQ sample. Used by software defined radio devices. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com --- .../DocBook/media/v4l/pixfmt-sdr-cu08.xml

Re: [PATCH] af9035: Move it913x single devices to af9035

2014-02-09 Thread Malcolm Priestley
On Sat, 2014-02-08 at 16:11 +, Malcolm Priestley wrote: The generic v1 and v2 devices have been all tested. IDs tested USB_PID_ITETECH_IT9135 v1 v2 USB_PID_ITETECH_IT9135_9005 v1 USB_PID_ITETECH_IT9135_9006 v2 Current Issues There is no signal on USB_PID_ITETECH_IT9135 v2 No

[REVIEW PATCH 58/86] msi3101: use msi001 tuner driver

2014-02-09 Thread Antti Palosaari
Remove MSi001 RF tuner related code as MSi001 functionality is moved to own driver. Implement SPI master adapter. Attach MSi001 driver via SPI / V4L subdev framework. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/Kconfig | 3 +-

[REVIEW PATCH 52/86] DocBook: media: document V4L2_CTRL_CLASS_RF_TUNER

2014-02-09 Thread Antti Palosaari
It is class for RF tuner specific controls, like gain controls, filters, signal strength. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff

[REVIEW PATCH 60/86] MAINTAINERS: add msi3101 driver

2014-02-09 Thread Antti Palosaari
Mirics MSi2500 (MSi3101) SDR ADC + USB interface driver. Currently in staging as SDR API is not ready. Signed-off-by: Antti Palosaari cr...@iki.fi --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 15ebabb..f03772a 100644 ---

[REVIEW PATCH 57/86] msi001: Mirics MSi001 silicon tuner driver

2014-02-09 Thread Antti Palosaari
That RF tuner driver is bound via SPI bus model and it implements V4L subdev API. I split it out from MSi3101 SDR driver. MSi3101 = MSi2500 + MSi001. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/Kconfig | 4 + drivers/staging/media/msi3101/Makefile | 1 +

[REVIEW PATCH 54/86] v4l: add RF tuner channel bandwidth control

2014-02-09 Thread Antti Palosaari
Modern silicon RF tuners has one or more adjustable filters on signal path, in order to filter noise from desired radio channel. Add channel bandwidth control to tell the driver which is radio channel width we want receive. Filters could be then adjusted by the driver or hardware, using RF

[REVIEW PATCH 63/86] e4000: implement controls via v4l2 control framework

2014-02-09 Thread Antti Palosaari
Implement gain and bandwidth controls using v4l2 control framework. Pointer to control handler is provided by exported symbol. Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/e4000.c |

[REVIEW PATCH 69/86] v4l: uapi: add SDR formats CU8 and CU16LE

2014-02-09 Thread Antti Palosaari
V4L2_SDR_FMT_CU8 — Complex unsigned 8-bit IQ sample V4L2_SDR_FMT_CU16LE — Complex unsigned 16-bit little endian IQ sample Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- include/uapi/linux/videodev2.h | 4 1 file changed, 4 insertions(+) diff --git

[REVIEW PATCH 72/86] v4l: add enum_freq_bands support to tuner sub-device

2014-02-09 Thread Antti Palosaari
Add VIDIOC_ENUM_FREQ_BANDS, enumerate supported frequency bands, IOCTL support for sub-device tuners too. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- include/media/v4l2-subdev.h | 1 + 1 file changed, 1 insertion(+) diff --git

[REVIEW PATCH 75/86] r820t/rtl2832u_sdr: implement gains using v4l2 controls

2014-02-09 Thread Antti Palosaari
Implement gain controls using v4l2 control framework. Pointer to control handler is provided by exported symbol. Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/r820t.c |

[REVIEW PATCH 83/86] rtl28xxu: use muxed RTL2832 I2C adapters for E4000 and RTL2832_SDR

2014-02-09 Thread Antti Palosaari
RTL2832 driver provides muxed I2C adapters for tuner bus I2C gate control. Pass those adapters to rtl2832_sdr and e4000 modules in order to get rid of proprietary DVB .i2c_gate_ctrl() callback use. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 12

Re: [PATCH RFC 0/2] drivers/base: simplify simple DT-based components

2014-02-09 Thread Jean-Francois Moine
On Fri, 7 Feb 2014 20:23:51 + Russell King - ARM Linux li...@arm.linux.org.uk wrote: Here's my changes to the TDA998x driver to add support for the component helper. The TDA998x driver retains support for the old way so that drivers can be transitioned. For any one DRM card the

[REVIEW PATCH 62/86] rtl28xxu: attach SDR module later

2014-02-09 Thread Antti Palosaari
SDR module was attached between demod and tuner. Change it happen after tuner attached. We are going to implement V4L controls for tuner drivers and those controls are loaded during SDR attach. Due to that (tuner controls), tuner driver must be loaded before SDR module. Also as we are here, limit

[REVIEW PATCH 82/86] rtl2832: implement delayed I2C gate close

2014-02-09 Thread Antti Palosaari
Delay possible I2C gate close a little bit in order to see if there is next message coming to tuner in a sequence. Also, export private muxed I2C adapter. That is aimed only for SDR extension module as SDR belongs to same RTL2832 physical I2C bus (it is physically property of RTL2832, whilst it

[REVIEW PATCH 79/86] rtl2832: provide muxed I2C adapter

2014-02-09 Thread Antti Palosaari
RTL2832 provides gated / repeater I2C adapter for tuner. Implement it as a muxed I2C adapter. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/Kconfig| 2 +- drivers/media/dvb-frontends/rtl2832.c | 26 ++

[REVIEW PATCH 80/86] rtl2832: add muxed I2C adapter for demod itself

2014-02-09 Thread Antti Palosaari
There was a deadlock between master I2C adapter and muxed I2C adapter. Implement two I2C muxed I2C adapters and leave master alone, just only for offering I2C adapter for these mux adapters. Reported-by: Luis Alves lja...@gmail.com Reported-by: Benjamin Larsson benja...@southpole.se

[REVIEW PATCH 71/86] rtl2832_sdr: use formats defined in V4L2 API

2014-02-09 Thread Antti Palosaari
Switch new formats V4L2_SDR_FMT_CU8 and V4L2_SDR_FMT_CU16LE as those are now defined in API. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git

[REVIEW PATCH 84/86] e4000: get rid of DVB i2c_gate_ctrl()

2014-02-09 Thread Antti Palosaari
Gate control is now implemented by rtl2832 I2C adapter so we do not need proprietary DVB i2c_gate_ctrl() anymore. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/e4000.c | 106 +-- 1 file changed, 21 insertions(+), 85 deletions(-)

[REVIEW PATCH 66/86] rtl28xxu: fix switch-case style issue

2014-02-09 Thread Antti Palosaari
Use break, not return, for every case. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index

[REVIEW PATCH 64/86] rtl2832_sdr: use E4000 tuner controls via V4L framework

2014-02-09 Thread Antti Palosaari
Use V4L2 control framework for E4000 tuner as it provides controls that way now. Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 92 +--- 1

[REVIEW PATCH 78/86] DocBook: media: document PLL lock control

2014-02-09 Thread Antti Palosaari
Document PLL lock V4L2 control. It is read only RF tuner control which is used to inform if tuner is receiving frequency or not. Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi ---

[REVIEW PATCH 85/86] rtl2832_sdr: do not init tuner when only freq is changed

2014-02-09 Thread Antti Palosaari
Initializing whole tuner every time when frequency is changed is wrong and unnecessary. Init tuner only when streaming is started. Change other parameters runtime. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 25 +++- 1

[REVIEW PATCH 76/86] v4l: add control for RF tuner PLL lock flag

2014-02-09 Thread Antti Palosaari
Add volatile boolean control to indicate if tuner frequency synthesizer is locked to requested frequency. That means tuner is able to receive given frequency. Control is named as PLL lock, since frequency synthesizers are based of phase-locked-loop. Maybe more general name could be wise still?

[REVIEW PATCH 77/86] e4000: implement PLL lock v4l control

2014-02-09 Thread Antti Palosaari
Implement PLL lock control to get PLL lock flag status from tuner synthesizer. Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/e4000.c | 53 ++-

[REVIEW PATCH 65/86] e4000: remove .set_config() which was for controls

2014-02-09 Thread Antti Palosaari
That custom DVB callback is not needed anymore for setting gain controls as those are now implemented using V4L2 control framework. That change was proposed by Mauro. Cc: Mauro Carvalho Chehab m.che...@samsung.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/e4000.c | 68

[REVIEW PATCH 70/86] msi3101: use formats defined in V4L2 API

2014-02-09 Thread Antti Palosaari
Switch new formats V4L2_SDR_FMT_CU8 and V4L2_SDR_FMT_CU16LE as those are now defined in API. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[REVIEW PATCH 67/86] v4l: reorganize RF tuner control ID numbers

2014-02-09 Thread Antti Palosaari
It appears that controls are ordered by ID number. Change order of controls by reorganizing assigned IDs now as we can. It is not reasonable possible after the API is released. Leave some spare space between IDs too for future extensions. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti

[REVIEW PATCH 74/86] msi3101: provide RF tuner bands from sub-device

2014-02-09 Thread Antti Palosaari
Let the msi001 tuner driver report its frequency bands. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 48 + 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c

[REVIEW PATCH 68/86] DocBook: document RF tuner bandwidth controls

2014-02-09 Thread Antti Palosaari
Add documentation for RF tuner bandwidth controls. These controls are used to set filters on tuner signal path. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- Documentation/DocBook/media/v4l/controls.xml | 19 +++ 1 file changed, 19

[REVIEW PATCH 73/86] msi001: implement .enum_freq_bands()

2014-02-09 Thread Antti Palosaari
Implement .enum_freq_bands() in order to provide VIDIOC_ENUM_FREQ_BANDS IOCTL from sub-device. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/staging/media/msi3101/msi001.c | 18 ++ 1 file changed, 18 insertions(+) diff --git

[REVIEW PATCH 86/86] e4000: convert to Regmap API

2014-02-09 Thread Antti Palosaari
That comes possible after driver was converted to kernel I2C model (I2C binding proper I2C client with no gate control hack). All nasty low level I2C routines are now covered by regmap. Also some variable renaming and minor functionality changes. Cc: Mauro Carvalho Chehab m.che...@samsung.com

[REVIEW PATCH 81/86] rtl2832: Fix deadlock on i2c mux select function.

2014-02-09 Thread Antti Palosaari
From: Luis Alves lja...@gmail.com Signed-off-by: Luis Alves lja...@gmail.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c

[REVIEW PATCH 61/86] MAINTAINERS: add rtl2832_sdr driver

2014-02-09 Thread Antti Palosaari
Realtek RTL2832 SDR driver. Currently in staging as SDR API is not ready. Signed-off-by: Antti Palosaari cr...@iki.fi --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f03772a..0ed943a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

Re: [PATCH RFC 0/2] drivers/base: simplify simple DT-based components

2014-02-09 Thread Russell King - ARM Linux
On Sun, Feb 09, 2014 at 10:22:19AM +0100, Jean-Francois Moine wrote: On Fri, 7 Feb 2014 20:23:51 + Russell King - ARM Linux li...@arm.linux.org.uk wrote: Here's my changes to the TDA998x driver to add support for the component helper. The TDA998x driver retains support for the old way

Re: Support for Empia 2980 video/audio capture chip set

2014-02-09 Thread pepijn de vos
Hey, I signed up to this list because I found this thread in the archives when googling for a driver for my Dazzle. Unfortunately I can't reply to an email I did not get. Like Keith Lawson I'm a developer with no kernel experience, although I have some experience with C and libusb. I'd be

Re: [PATCH] af9035: Move it913x single devices to af9035

2014-02-09 Thread Antti Palosaari
Moi Malcolm! On 09.02.2014 10:59, Malcolm Priestley wrote: On Sat, 2014-02-08 at 16:11 +, Malcolm Priestley wrote: The generic v1 and v2 devices have been all tested. IDs tested USB_PID_ITETECH_IT9135 v1 v2 USB_PID_ITETECH_IT9135_9005 v1 USB_PID_ITETECH_IT9135_9006 v2 Current Issues

[PATCH 1/2] af9035: add default 0x9135 slave I2C address

2014-02-09 Thread Malcolm Priestley
On some devices the vendor has not set EEPROM_2ND_DEMOD_ADDR. Checks tmp is not zero after call to get EEPROM_2ND_DEMOD_ADDR and sets the default slave address of 0x3a on 0x9135 devices. Signed-off-by: Malcolm Priestley tvbox...@gmail.com --- drivers/media/usb/dvb-usb-v2/af9035.c | 8

[PATCH 2/2] af9035: Add remaining it913x dual ids to af9035.

2014-02-09 Thread Malcolm Priestley
As follow on to patch af9035: Move it913x single devices to af9035 and patch 1. SNR is reported as db/10 values. All dual ids are added to af9035 and it913x driver disabled. it913x/it913x-fe removal patches to follow. Signed-off-by: Malcolm Priestley tvbox...@gmail.com ---

[PATCH] [media] v4l: omap4iss: Remove VIDEO_OMAP4_DEBUG

2014-02-09 Thread Paul Bolle
Commit d632dfefd36f ([media] v4l: omap4iss: Add support for OMAP4 camera interface - Build system) added a Kconfig entry for VIDEO_OMAP4_DEBUG. But nothing uses that symbol. This entry was apparently copied from a similar entry for OMAP 3 Camera debug messages. But a corresponding Makefile line

[PATCH] [media] si4713: Remove select SI4713

2014-02-09 Thread Paul Bolle
Commits 7391232e1215 ([media] si4713: Reorganized drivers/media/radio directory) and b874b39fcd2f ([media] si4713: Added the USB driver for Si4713) both added a select SI4713. But there's no Kconfig symbol SI4713, so these selects are nops. It's not clear why they were added but it's safe to

Re: [PATCH] [media] si4713: Remove select SI4713

2014-02-09 Thread Hans Verkuil
On 02/09/2014 03:56 PM, Paul Bolle wrote: Commits 7391232e1215 ([media] si4713: Reorganized drivers/media/radio directory) and b874b39fcd2f ([media] si4713: Added the USB driver for Si4713) both added a select SI4713. But there's no Kconfig symbol SI4713, so these selects are nops. It's not

Re: [PATCH] [media] si4713: Remove select SI4713

2014-02-09 Thread Paul Bolle
Hans, On Sun, 2014-02-09 at 16:18 +0100, Hans Verkuil wrote: USB_SI4713 and PLATFORM_SI4713 both depend on I2C_SI4713. So the select should be I2C_SI4713. Are you sure? I've actually scanned si4713.c before submitting this patch and I couldn't find anything in it that these other two modules

RFH: Trying to implement support PCTV Quatro Stick 522e

2014-02-09 Thread Heiko Voigt
Hi, I just purchased a PCTV QuatroStick 522e (2013:025e). Since it is the successor of the 520e I believed that there would probably be Linux support for it, it seems not. But I do not want to give up so easily and since there is support for the previous models I would like to have a go at

[PATCH] saa7134: Add support for SnaZio TvPVR PRO

2014-02-09 Thread POJAR GEORGE
From: POJAR GEORGE geoubu...@gmail.com Signed-off-by: POJAR GEORGE geoubu...@gmail.com --- Documentation/video4linux/CARDLIST.saa7134 | 1 + drivers/media/pci/saa7134/saa7134-cards.c | 51 ++- drivers/media/pci/saa7134/saa7134-input.c | 62 +

Re: RFH: Trying to implement support PCTV Quatro Stick 522e

2014-02-09 Thread Antti Palosaari
Moikka Heiko, On 09.02.2014 17:33, Heiko Voigt wrote: Hi, I just purchased a PCTV QuatroStick 522e (2013:025e). Since it is the successor of the 520e I believed that there would probably be Linux support for it, it seems not. ah, first 292e and now that... But I do not want to give up so

  1   2   >