Re: kernel patch 2018-05-28 media: gspca_zc3xx: Implement proper autogain and exposure control for OV7648

2018-06-27 Thread Ondrej Zary
c3a22ccd66604b8b528221a9d8e1b3fb4e39 > 0ac8:3500 is an UVC camera. This patch does not affect UVC cameras in any way. -- Ondrej Zary

[PATCH 3/3 v2] gspca_zc3xx: Enable short exposure times for OV7648

2018-05-25 Thread Ondrej Zary
round. (This bug came from the Windows driver.) Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/zc3xx.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/gspca/zc3xx.c b/drivers/media/usb/gspca/zc3xx.c index c72f2d9167d9..cf21991e3d99 100644

[PATCH 2/3 v2] gspca_zc3xx: Fix power line frequency settings for OV7648

2018-05-25 Thread Ondrej Zary
Power line frequency settings for OV7648 sensor contain autogain and exposure commands, affecting unrelated controls. Remove them. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/zc3xx.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/usb/gspca/zc3xx.c b/drivers

[PATCH 1/3] gspca_zc3xx: Implement proper autogain and exposure control for OV7648

2018-05-25 Thread Ondrej Zary
The ZS0211 internal autogain causes pumping and flickering with OV7648 sensor on 0ac8:307b webcam. Implement OV7648 autogain and exposure control and use that instead. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/zc3xx.c | 42 + 1 file changed

[PATCH 1/3] gspca_zc3xx: Implement proper autogain and exposure control for OV7648

2018-05-24 Thread Ondrej Zary
The ZS0211 internal autogain causes pumping and flickering with OV7648 sensor on 0ac8:307b webcam. Implement OV7648 autogain and exposure control and use that instead. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/zc3xx.c | 42 + 1 file changed

[PATCH 2/3] gspca_zc3xx: Fix power line frequency settings for OV7648

2018-05-24 Thread Ondrej Zary
Power line frequency settings for OV7648 sensor contain autogain and exposure commands, affecting unrelated controls. Remove them. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/zc3xx.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/media

[PATCH 3/3] gspca_zc3xx: Fix exposure with power line frequency for OV7648

2018-05-24 Thread Ondrej Zary
. Fix it. (This bug came from the Windows driver.) Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/zc3xx.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/gspca/zc3xx.c b/drivers/media/usb/gspca/zc3xx.c index 9a78420e8ad8..299ea70bfb67 1

[PATCH 3/3 v2] bttv: Improve TEA575x support

2015-01-16 Thread Ondrej Zary
Improve g_tuner and add s_hw_freq_seek and enum_freq_bands support for cards with TEA575x radio. This allows signal/stereo detection and HW seek to work on these cards. Signed-off-by: Ondrej Zary --- drivers/media/pci/bt8xx/bttv-driver.c | 31 +++ 1 file changed

[PATCH 1/3] bttv: Convert to generic TEA575x interface

2015-01-15 Thread Ondrej Zary
lated here using GPIOs. But the code manipulating these signals in bttv seems to be broken - it never asserts the IOR signal. If anyone has this HW, please test if I got that right. Signed-off-by: Ondrej Zary --- drivers/media/pci/bt8xx/Kconfig |3 + drivers/media/pci/bt8xx/bttv-ca

[PATCH 2/3] tea575x: split and export functions

2015-01-15 Thread Ondrej Zary
Split ioctl interface from enum_freq_bands, g_tuner and s_hw_freq_seek functions and export them to be used in other drivers like bttv. Signed-off-by: Ondrej Zary --- drivers/media/radio/tea575x.c | 41 - include/media/tea575x.h |5 + 2

[PATCH 3/3] bttv: Improve TEA575x support

2015-01-15 Thread Ondrej Zary
Improve g_tuner and add s_hw_freq_seek and enum_freq_bands support for cards with TEA575x radio. This allows signal/stereo detection and HW seek to work on these cards. Signed-off-by: Ondrej Zary --- drivers/media/pci/bt8xx/bttv-driver.c | 31 +++ 1 file changed

[PATCH] bttv: Convert to generic TEA575x interface

2015-01-13 Thread Ondrej Zary
lated here using GPIOs. But the code manipulating these signals in bttv seems to be broken - it never asserts the IOR signal. If anyone has this HW, please test if I got that right. Signed-off-by: Ondrej Zary --- drivers/media/pci/bt8xx/Kconfig |3 + drivers/media/pci/bt8xx/bttv-ca

Re: Video resolution limited to 32x32 pixels in Skype with Syntek 1135 webcam

2015-01-02 Thread Ondrej Zary
s max for the camera). > > Is there any way to debug the driver (gspca_stk1135) and v4l to find > out the root cause of the issue? The driver supports variable resolution from 32x32 to 1280x1024 in 2 pixel steps. The problem is that some programs are crap and cannot handle that. -- Ond

CMYG support in V4L2

2014-12-29 Thread Ondrej Zary
t, move the conversion to libv4lconvert and remove all controls not provided by hardware? -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 0/3] Deprecate drivers

2014-12-21 Thread Ondrej Zary
On Friday 12 December 2014 15:32:35 Hans Verkuil wrote: > On 12/12/2014 03:29 PM, Ondrej Zary wrote: > > On Wednesday 10 December 2014, Hans Verkuil wrote: > >> On 12/02/14 23:42, Ondrej Zary wrote: > >>> On Tuesday 02 December 2014 16:40:30 Hans Verkuil wrote: >

Re: [PATCH 0/3] Deprecate drivers

2014-12-12 Thread Ondrej Zary
On Wednesday 10 December 2014, Hans Verkuil wrote: > On 12/02/14 23:42, Ondrej Zary wrote: > > On Tuesday 02 December 2014 16:40:30 Hans Verkuil wrote: > >> This patch series deprecates the vino/saa7191 video driver (ancient SGI > >> Indy computer), the parallel port

Re: [PATCH 0/3] Deprecate drivers

2014-12-02 Thread Ondrej Zary
kCam Pro parallel and some unknown parallel port webcam. Will you accept patches? :) > So move these drivers to staging for 3.19 and plan on removing them in > 3.20. > > Regards, > > Hans -- Ondrej Zary -- To unsubscribe from this list: send the line "un

[PATCH] bttv: Convert to generic TEA575x interface

2013-11-22 Thread Ondrej Zary
s. But the code manipulating these signals in bttv seems to be broken - it never asserts the IOR signal. If anyone has this HW, please test if I got that right. Signed-off-by: Ondrej Zary --- drivers/media/pci/bt8xx/Kconfig |1 + drivers/media/pci/bt8xx/bttv-cards

[PATCH] [RESEND] gspca-stk1135: Add delay after configuring clock

2013-11-11 Thread Ondrej Zary
Add a small delay at the end of configure_clock() to allow sensor to initialize. This is needed by Asus VX2S laptop webcam to detect sensor type properly (the already-supported MT9M112). Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/stk1135.c |3 +++ 1 file changed, 3 insertions

[PATCH] gspca-stk1135: Add delay after configuring clock

2013-11-02 Thread Ondrej Zary
Add a small delay at the end of configure_clock() to allow sensor to initialize. This is needed by Asus VX2S laptop webcam to detect sensor type properly (the already-supported MT9M112). Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/stk1135.c |3 +++ 1 file changed, 3 insertions

[PATCH 2/3] gspca: Support variable resolution

2013-08-30 Thread Ondrej Zary
Add variable resolution support to gspca by allowing subdrivers to specify try_fmt and enum_framesizes functions. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/gspca.c | 20 ++-- drivers/media/usb/gspca/gspca.h |6 ++ 2 files changed, 20 insertions(+), 6

[PATCH 1/3] gspca: store current mode instead of individual parameters

2013-08-30 Thread Ondrej Zary
Store complete current mode (struct v4l2_pix_format) in struct gspca_dev instead of separate pixfmt, width and height parameters. This is a preparation for variable resolution support. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/conex.c |3 +- drivers/media/usb

[PATCH 3/3] gspca-stk1135: Add variable resolution support

2013-08-30 Thread Ondrej Zary
Add variable resolution support to Syntek STK1135 subdriver. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/stk1135.c | 68 ++-- 1 files changed, 34 insertions(+), 34 deletions(-) diff --git a/drivers/media/usb/gspca/stk1135.c b/drivers/media/usb

[PATCH v3] introduce gspca-stk1135: Syntek STK1135 driver

2013-08-20 Thread Ondrej Zary
s too - when the camera is flipped around, the image is flipped automatically. Signed-off-by: Ondrej Zary diff --git a/drivers/media/usb/gspca/Kconfig b/drivers/media/usb/gspca/Kconfig index 6345f93..4f0c6d5 100644 --- a/drivers/media/usb/gspca/Kconfig +++ b/drivers/media/usb/gspca/Kconfig @@ -

[PATCH v2] introduce gspca-stk1135: Syntek STK1135 driver

2013-08-11 Thread Ondrej Zary
s too - when the camera is flipped around, the image is flipped automatically. Signed-off-by: Ondrej Zary diff --git a/drivers/media/usb/gspca/Kconfig b/drivers/media/usb/gspca/Kconfig index 6345f93..4f0c6d5 100644 --- a/drivers/media/usb/gspca/Kconfig +++ b/drivers/media/usb/gspca/Kconfig @@ -

Re: [RFC PATCH] introduce gspca-stk1135: Syntek STK1135 driver

2013-08-11 Thread Ondrej Zary
On Sunday 11 August 2013 11:26:18 Hans de Goede wrote: > Hi, > > On 08/11/2013 12:10 AM, Ondrej Zary wrote: > > Hello, > > this is a new gspca driver for Syntek STK1135 webcams. The code is > > completely new, but register values are based on Syntekdriver (stk11xx)

[RFC PATCH] introduce gspca-stk1135: Syntek STK1135 driver

2013-08-10 Thread Ondrej Zary
s too - when the camera is flipped around, the image is flipped automatically. Signed-off-by: Ondrej Zary diff --git a/drivers/media/usb/gspca/Kconfig b/drivers/media/usb/gspca/Kconfig index 6345f93..4f0c6d5 100644 --- a/drivers/media/usb/gspca/Kconfig +++ b/drivers/media/usb/gspca/Kconfig @@ -

Re: Syntek webcams and out-of-tree driver

2013-08-07 Thread Ondrej Zary
On Tuesday 06 August 2013 08:10:38 Hans de Goede wrote: > Hi, > > On 08/05/2013 11:19 PM, Ondrej Zary wrote: > > Hello, > > the in-kernel stkwebcam driver (by Jaime Velasco Juan and Nicolas VIVIEN) > > supports only two webcam types (USB IDs 0x174f:0xa311 and 0x05e1:

Re: Syntek webcams and out-of-tree driver

2013-08-06 Thread Ondrej Zary
On Tuesday 06 August 2013, Hans de Goede wrote: > Hi, > > On 08/05/2013 11:19 PM, Ondrej Zary wrote: > > Hello, > > the in-kernel stkwebcam driver (by Jaime Velasco Juan and Nicolas VIVIEN) > > supports only two webcam types (USB IDs 0x174f:0xa311 and 0x05e1:0x0501

Syntek webcams and out-of-tree driver

2013-08-05 Thread Ondrej Zary
v = &dev->v4l2_dev; dev->vdev->fops = &v4l_stk11xx_fops; dev->vdev->release = video_device_release; dev->vdev->minor = -1; @@ -1533,6 +1541,7 @@ int v4l_stk11xx_unregister_video_device( video_set_drvdata(dev->vdev, NULL); video_unregi

[PATCH 2/2] tea575x: Move from sound to media

2013-07-28 Thread Ondrej Zary
Move tea575x from sound/i2c/other to drivers/media/radio Includes Kconfig changes by Hans Verkuil. Signed-off-by: Hans Verkuil Signed-off-by: Ondrej Zary --- drivers/media/radio/Kconfig | 12 +- drivers/media/radio/Makefile|1 + drivers/media/radio/tea575x.c | 584

[PATCH 1/2] tea575x: Move header from sound to media

2013-07-28 Thread Ondrej Zary
Move include/sound/tea575x-tuner.h to include/media/tea575x.h and update files that include it. Signed-off-by: Ondrej Zary --- drivers/media/radio/radio-maxiradio.c |2 +- drivers/media/radio/radio-sf16fmr2.c |2 +- drivers/media/radio/radio-shark.c |2 +- include/media

[PATCH 0/2] tea575x: Move from sound to media

2013-07-28 Thread Ondrej Zary
Hello, TEA575x is neither a sound device nor an i2c device. Let's finally move it from sound/i2c/other to drivers/media/radio. Tested with snd-es1968, snd-fm801 and radio-sf16fmr2. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" i

[PATCH 1/2] radio-aztech: Convert to generic lm7000 implementation

2013-07-19 Thread Ondrej Zary
.region_size = 2, + .region_size = 8, .card = "Aztech Radio", .ops = &aztech_ops, .has_stereo = true, -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 2/2] radio-aztech: Implement signal strength detection and fix stereo detection

2013-07-19 Thread Ondrej Zary
Current stereo detection code is wrong - it reads TUNED bit instead of STEREO bit. Fix that and implement signal strength detection too. Also remove useless s_stereo functionn. Signed-off-by: Ondrej Zary --- drivers/media/radio/radio-aztech.c | 13 - 1 files changed, 4 insertions

[PATCH 2/2] radio-sf16fmi: Set frequency during init

2013-06-14 Thread Ondrej Zary
Set freqency during initialization to fix v4l2-compliance error. This also fixes VIDIOC_G_FREQUENCY always returning zero (broken by me during LM7000 conversion). Signed-off-by: Ondrej Zary --- drivers/media/radio/radio-sf16fmi.c | 25 + 1 files changed, 17 insertions

[PATCH 0/2] radio-sf16fmi: Fix remaining v4l2-compliance problems

2013-06-14 Thread Ondrej Zary
These patches fix two remaining v4l2-compliance problems of radio-sf16fmi driver after control framework conversion: http://www.mail-archive.com/linux-media%40vger.kernel.org/msg62772.html Tested with SF16-FMI card. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubs

[PATCH 1/2] radio-sf16fmi: Add module name to bus_info

2013-06-14 Thread Ondrej Zary
Fix v4l2-compliance in VIDIOC_QUERYCAP by changing "ISA" to "ISA:radio-sf16fmi". Signed-off-by: Ondrej Zary --- drivers/media/radio/radio-sf16fmi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/radio/radio-sf16fmi.c b/drive

[RFC PATCH 0/2] tea575x: Move from sound to media

2013-06-13 Thread Ondrej Zary
Hello, TEA575x is neither a sound device nor an i2c device. Let's finally move it from sound/i2c/other to drivers/media/radio. Tested with snd-es1968, snd-fm801 and radio-sf16fmr2. I guess the Kconfig dependencies are not correct. -- Ondrej Zary -- To unsubscribe from this list: send the

[RFC PATCH 1/2] tea575x: Move header from sound to media

2013-06-13 Thread Ondrej Zary
Move include/sound/tea575x-tuner.h to include/media/tea575x.h and update files that include it. Signed-off-by: Ondrej Zary --- drivers/media/radio/radio-maxiradio.c |2 +- drivers/media/radio/radio-sf16fmr2.c |2 +- drivers/media/radio/radio-shark.c |2 +- include/media

[RFC PATCH 2/2] tea575x: Move from sound to media

2013-06-13 Thread Ondrej Zary
Move tea575x from sound/i2c/other to drivers/media/radio Signed-off-by: Ondrej Zary --- drivers/media/radio/Kconfig |5 + drivers/media/radio/Makefile|1 + drivers/media/radio/tea575x.c | 577 +++ sound/i2c/other/Makefile|2

[PATCH 3/3] bttv: Convert to generic TEA575x interface

2013-05-14 Thread Ondrej Zary
Remove tea575x-specific code from bttv and use the common driver instead. Signed-off-by: Ondrej Zary --- drivers/media/pci/bt8xx/bttv-cards.c | 317 - drivers/media/pci/bt8xx/bttv-driver.c |6 +- drivers/media/pci/bt8xx/bttvp.h | 14 +- sound/pci

[PATCH 1/3] tea575x-tuner: move HW init to a separate function

2013-05-14 Thread Ondrej Zary
Move HW initialization to separate function to allow using the code without the v4l parts. This is needed for use in the bttv driver. Signed-off-by: Ondrej Zary --- include/sound/tea575x-tuner.h |1 + sound/i2c/other/tea575x-tuner.c | 19 +-- 2 files changed, 14

[RFC PATCH 0/3] bttv: convert to generic TEA575x interface

2013-05-14 Thread Ondrej Zary
coder) and are emulated here using GPIOs. But the code manipulating these signals in bttv seems to be broken - it never asserts the IOR signal. If anyone has this HW, please test if I got that right. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media&qu

[PATCH 2/3] bttv: stop abusing mbox_we for sw_status

2013-05-14 Thread Ondrej Zary
Kodicom 4400R and Geovision GV-800 code in bttv driver abuses mbox_we (int) in struct bttv as char *. Remove this hack and add a proper sw_status array to struct bttv instead. This is a a preparation to remove mbox_we. Signed-off-by: Ondrej Zary --- drivers/media/pci/bt8xx/bttv-cards.c | 26

Re: [PATCH] bttv: Add CyberVision CV06

2013-04-15 Thread Ondrej Zary
On Sunday 14 April 2013 23:26:21 Ondrej Zary wrote: > Add CyberVision CV06 4-camera card (from CyberVision SV card kit): > http://www.cybervision.com.tw/products-swcard_kits-sv.html > > There are some interesting things on the card but they're not supported: > 4 LEDs, a conne

[PATCH] bttv: Add CyberVision CV06

2013-04-14 Thread Ondrej Zary
y and CyberVision CV8088-SV16 chip Signed-off-by: Ondrej Zary diff --git a/drivers/media/pci/bt8xx/bttv-cards.c b/drivers/media/pci/bt8xx/bttv-cards.c index 8bcf638..7bce09f 100644 --- a/drivers/media/pci/bt8xx/bttv-cards.c +++ b/drivers/media/pci/bt8xx/bttv-cards.c @@ -2833,6 +2833,16 @@ struct t

Re: [PATCH] bttv: Add noname Bt848 capture card with 14MHz xtal

2013-04-14 Thread Ondrej Zary
On Sunday 14 April 2013 18:39:09 Ondrej Zary wrote: > Add support for noname Bt848 capture-only card (3x composite, 1x S-VHS) > with 14MHz crystal: > http://www.rainbow-software.org/images/hardware/bt848_.jpg Noticed that it takes ages to load the bttv module (about 30 seconds). If &quo

[PATCH] bttv: Add noname Bt848 capture card with 14MHz xtal

2013-04-14 Thread Ondrej Zary
Add support for noname Bt848 capture-only card (3x composite, 1x S-VHS) with 14MHz crystal: http://www.rainbow-software.org/images/hardware/bt848_.jpg 14MHz PLL was not supported by bttv driver until now. Signed-off-by: Ondrej Zary diff --git a/drivers/media/pci/bt8xx/bttv-cards.c b/drivers

My patches for AverMedia A706

2013-04-05 Thread Ondrej Zary
config from unsigned int to void * tda8290: change magic LNA config values to enum saa7134: Add AverMedia A706 AverTV Satellite Hybrid+FM -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordo

Re: [PATCH v2 0/4] saa7134: Add AverMedia A706 AverTV Satellite Hybrid+FM

2013-03-06 Thread Ondrej Zary
On Monday 18 February 2013 03:57:01 Michael Krufky wrote: > On Sat, Feb 16, 2013 at 11:39 AM, Ondrej Zary > > wrote: > > On Friday 01 February 2013 21:21:23 Ondrej Zary wrote: > >> Add AverMedia AverTV Satellite Hybrid+FM (A706) card to saa7134 driver. > >> &

Re: [PATCH v2 0/4] saa7134: Add AverMedia A706 AverTV Satellite Hybrid+FM

2013-02-16 Thread Ondrej Zary
On Friday 01 February 2013 21:21:23 Ondrej Zary wrote: > Add AverMedia AverTV Satellite Hybrid+FM (A706) card to saa7134 driver. > > This requires some changes to tda8290 - disabling I2C gate control and > passing custom std_map to tda18271. > Also tuner-core needs to be changed

[PATCH] tda8290: change magic LNA config values to enum

2013-02-04 Thread Ondrej Zary
Use enum instead of magic values for LNA config in tda8290. Update tda827x, tda18271 and saa7134 to use the enum too. Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-cards.c | 41 +++-- drivers/media/tuners/tda18271-fe.c|9 +++--- drivers

Re: [PATCH 1/4] tda8290: Allow disabling I2C gate

2013-02-04 Thread Ondrej Zary
On Monday 04 February 2013 03:19:37 Michael Krufky wrote: > On Fri, Feb 1, 2013 at 3:21 PM, Ondrej Zary wrote: > > Allow disabling I2C gate handling by external configuration. > > This is required by cards that have all devices on a single I2C bus, > > like AverMedia A706.

[PATCH 8/8] saa7134: v4l2-compliance: clear reserved part of VBI structure

2013-02-01 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: clear reserved space of VBI structure to make sure no garbage is left there Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/media/pci/saa7134

[PATCH 7/8] saa7134: v4l2-compliance: remove bogus g_parm

2013-02-01 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: remove empty g_parm function Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134

[PATCH 6/8] saa7134: v4l2-compliance: remove bogus audio input support

2013-02-01 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: remove empty g_audio and s_audio functions and don't set audioset in enum_input Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c | 30 - 1 files changed, 0 insertions(+), 30 deletions(-) diff --

[PATCH 5/8] saa7134: v4l2-compliance: fix g_tuner/s_tuner

2013-02-01 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: return real frequency range in g_tuner and fail in s_tuner for non-zero tuner Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/media/pci/saa7134

[PATCH 4/8] saa7134: v4l2-compliance: return real frequency

2013-02-01 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: don't cache frequency in s_frequency/g_frequency but return real one instead Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |6 -- drivers/media/pci/saa7134/saa7134.h |1 - 2 files changed, 4 insertions(

[PATCH 3/8] saa7134: v4l2-compliance: use v4l2_fh to fix priority handling

2013-02-01 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: remove broken priority handling and use v4l2_fh instead Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-core.c |3 +- drivers/media/pci/saa7134/saa7134-video.c | 61 +++- drivers/media/pci/saa7134/saa7134.h

[PATCH 2/8] saa7134: v4l2-compliance: don't report invalid audio modes for radio

2013-02-01 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: filter audio modes that came from tuner - keep only MONO/STEREO in radio mode Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/media/pci/saa7134

[PATCH 1/8] saa7134: v4l2-compliance: implement V4L2_CAP_DEVICE_CAPS

2013-02-01 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: implement V4L2_CAP_DEVICE_CAPS support and fix all capabilities problems reported by v4l2-compliance. Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c | 58 + 1 files changed, 34 insertions(+), 24

[PATCH 0/8] saa7134: improve v4l2-compliance

2013-02-01 Thread Ondrej Zary
This patch series improves v4l2-compliance of saa7134 driver. This includes only easy-to-fix things. More work is needed to fix the other problems. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kerne

[PATCH 4/4] saa7134: Add AverMedia A706 AverTV Satellite Hybrid+FM

2013-02-01 Thread Ondrej Zary
Add AverMedia AverTV Satellite Hybrid+FM (A706) card to saa7134 driver. Working: analog inputs, TV, FM radio and IR remote control. Untested: DVB-S. Signed-off-by: Ondrej Zary --- drivers/media/i2c/ir-kbd-i2c.c | 13 ++- drivers/media/pci/saa7134/saa7134-cards.c | 53

[PATCH 3/4] tuner-core: Change config from unsigned int to void *

2013-02-01 Thread Ondrej Zary
ich allows passing tuner-dependent config struct to drivers. Also update saa7134 driver to reflect this change (no other driver uses this). Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-cards.c | 40 ++-- drivers/media/pci/saa7134/saa7134.h

[PATCH 2/4] tda8290: Allow custom std_map for tda18271

2013-02-01 Thread Ondrej Zary
Allow specifying a custom std_map for tda18271 by external configuration. This is required by cards that require custom std_map for analog TV or radio, like AverMedia A706. Signed-off-by: Ondrej Zary --- drivers/media/tuners/tda8290.c |8 ++-- drivers/media/tuners/tda8290.h |2 ++ 2

[PATCH 1/4] tda8290: Allow disabling I2C gate

2013-02-01 Thread Ondrej Zary
Allow disabling I2C gate handling by external configuration. This is required by cards that have all devices on a single I2C bus, like AverMedia A706. Signed-off-by: Ondrej Zary --- drivers/media/tuners/tda8290.c | 49 +++ drivers/media/tuners/tda8290.h

[PATCH v2 0/4] saa7134: Add AverMedia A706 AverTV Satellite Hybrid+FM

2013-02-01 Thread Ondrej Zary
nalog tuners. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC PATCH 0/7] saa7134: improve v4l2-compliance

2013-01-28 Thread Ondrej Zary
On Monday 28 January 2013 11:56:59 Hans Verkuil wrote: > On Sun January 27 2013 20:45:05 Ondrej Zary wrote: > > Hello, > > this patch series improves v4l2-compliance of saa7134 driver. There are > > still some problems. Controls require conversion to control framework >

[PATCH 9/7] saa7134: v4l2-compliance: initialize VBI structure

2013-01-28 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: clear VBI structure completely before assigning values to make sure any reserved space is cleared Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers

[PATCH 8/7] saa7134: v4l2-compliance: remove bogus g_parm

2013-01-28 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: remove empty g_parm function Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134

[PATCH 4/4 v2] saa7134: Add AverMedia A706 AverTV Satellite Hybrid+FM

2013-01-27 Thread Ondrej Zary
Add AverMedia AverTV Satellite Hybrid+FM (A706) card to saa7134 driver. Working: analog inputs, TV, FM radio and IR remote control. Untested: DVB-S. Signed-off-by: Ondrej Zary --- v2: added msleep() to dvb init to allow chips to come out of reset drivers/media/i2c/ir-kbd-i2c.c

[PATCH 6/7] saa7134: v4l2-compliance: remove V4L2_IN_ST_NO_SYNC from enum_input

2013-01-27 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: don't set bogus V4L2_IN_ST_NO_SYNC flag in enum_input as it's for digital video only Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 7/7] saa7134: v4l2-compliance: remove bogus audio input support

2013-01-27 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: remove empty g_audio and s_audio functions and don't set audioset in enum_input Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c | 30 - 1 files changed, 0 insertions(+), 30 deletions(-) diff --

[PATCH 5/7] saa7134: v4l2-compliance: fix g_tuner/s_tuner

2013-01-27 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: return real frequency range in g_tuner and fail in s_tuner for non-zero tuner Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/media/pci/saa7134

[PATCH 3/7] saa7134: v4l2-compliance: use v4l2_fh to fix priority handling

2013-01-27 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: remove broken priority handling and use v4l2_fh instead Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-core.c |3 +- drivers/media/pci/saa7134/saa7134-video.c | 61 +++- drivers/media/pci/saa7134/saa7134.h

[PATCH 4/7] saa7134: v4l2-compliance: return real frequency

2013-01-27 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: don't cache frequency in s_frequency/g_frequency but return real one instead Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |6 -- drivers/media/pci/saa7134/saa7134.h |1 - 2 files changed, 4 insertions(

[PATCH 2/7] saa7134: v4l2-compliance: don't report invalid audio modes for radio

2013-01-27 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: filter audio modes that came from tuner - keep only MONO/STEREO in radio mode Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/media/pci/saa7134

[RFC PATCH 0/7] saa7134: improve v4l2-compliance

2013-01-27 Thread Ondrej Zary
FMT: FAIL fail: v4l2-test-formats.cpp(432): vbi.reserved not zeroed fail: v4l2-test-formats.cpp(728): VBI Capture is valid, but no S_FMT was implemented test VIDIOC_S_FMT: FAIL -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscr

[PATCH 1/7] saa7134: v4l2-compliance: implement V4L2_CAP_DEVICE_CAPS

2013-01-27 Thread Ondrej Zary
Make saa7134 driver more V4L2 compliant: implement V4L2_CAP_DEVICE_CAPS support and fix all capabilities problems reported by v4l2-compliance. Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-video.c | 55 1 files changed, 31 insertions(+), 24

Re: [PATCH 1/4] tda8290: Allow disabling I2C gate

2013-01-21 Thread Ondrej Zary
On Monday 21 January 2013 10:06:01 Antti Palosaari wrote: > On 01/21/2013 10:18 AM, Ondrej Zary wrote: > > On Monday 21 January 2013, Antti Palosaari wrote: > >> On 01/20/2013 11:22 PM, Ondrej Zary wrote: > >>> Allow disabling I2C gate handling by external configurat

Re: [PATCH 1/4] tda8290: Allow disabling I2C gate

2013-01-21 Thread Ondrej Zary
On Monday 21 January 2013, Antti Palosaari wrote: > On 01/20/2013 11:22 PM, Ondrej Zary wrote: > > Allow disabling I2C gate handling by external configuration. > > This is required by cards that have all devices on a single I2C bus, > > like AverMedia A706. > > My person

[PATCH 4/4] saa7134: Add AverMedia A706 AverTV Satellite Hybrid+FM

2013-01-20 Thread Ondrej Zary
Add AverMedia AverTV Satellite Hybrid+FM (A706) card to saa7134 driver. Working: analog inputs, TV, FM radio and IR remote control. Untested: DVB-S. Signed-off-by: Ondrej Zary --- drivers/media/i2c/ir-kbd-i2c.c | 13 ++- drivers/media/pci/saa7134/saa7134-cards.c | 53

[PATCH 3/4] tuner-core: Change config from unsigned int to void *

2013-01-20 Thread Ondrej Zary
ich allows passing tuner-dependent config struct to drivers. Also update saa7134 driver to reflect this change (no other driver uses this). Signed-off-by: Ondrej Zary --- drivers/media/pci/saa7134/saa7134-cards.c | 40 ++-- drivers/media/pci/saa7134/saa7134.h

[PATCH 2/4] tda8290: Allow custom std_map for tda18271

2013-01-20 Thread Ondrej Zary
Allow specifying a custom std_map for tda18271 by external configuration. This is required by cards that require custom std_map for analog TV or radio, like AverMedia A706. Signed-off-by: Ondrej Zary --- drivers/media/tuners/tda8290.c |3 +++ drivers/media/tuners/tda8290.h |2 ++ 2

[PATCH 1/4] tda8290: Allow disabling I2C gate

2013-01-20 Thread Ondrej Zary
Allow disabling I2C gate handling by external configuration. This is required by cards that have all devices on a single I2C bus, like AverMedia A706. Signed-off-by: Ondrej Zary --- drivers/media/tuners/tda8290.c | 13 +++-- drivers/media/tuners/tda8290.h |1 + 2 files changed, 12

[PATCH 0/4] saa7134: Add AverMedia A706 AverTV Satellite Hybrid+FM

2013-01-20 Thread Ondrej Zary
nalog tuners. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC PATCH] saa7134: Add AverMedia Satelllite Hybrid+FM A706 (and FM radio problems)

2013-01-17 Thread Ondrej Zary
On Tuesday 15 January 2013 23:37:58 Ondrej Zary wrote: > On Tuesday 15 January 2013 22:57:06 Ondrej Zary wrote: > > On Monday 14 January 2013 22:29:58 Ondrej Zary wrote: > > > On Saturday 12 January 2013 21:24:50 Ondrej Zary wrote: > > > > Partially working: FM rad

Re: [RFC PATCH] saa7134: Add AverMedia Satelllite Hybrid+FM A706 (and FM radio problems)

2013-01-15 Thread Ondrej Zary
On Tuesday 15 January 2013 22:57:06 Ondrej Zary wrote: > On Monday 14 January 2013 22:29:58 Ondrej Zary wrote: > > On Saturday 12 January 2013 21:24:50 Ondrej Zary wrote: > > > Partially working: FM radio > > > Radio seems to be a long-standing problem with saa7134 cards

Re: [RFC PATCH] saa7134: Add AverMedia Satelllite Hybrid+FM A706 (and FM radio problems)

2013-01-15 Thread Ondrej Zary
On Monday 14 January 2013 22:29:58 Ondrej Zary wrote: > On Saturday 12 January 2013 21:24:50 Ondrej Zary wrote: > > Partially working: FM radio > > Radio seems to be a long-standing problem with saa7134 cards using > > silicon tuners (according to various mailing lists).

Re: [RFC PATCH] saa7134: Add AverMedia Satelllite Hybrid+FM A706 (and FM radio problems)

2013-01-14 Thread Ondrej Zary
On Saturday 12 January 2013 21:24:50 Ondrej Zary wrote: > Partially working: FM radio > Radio seems to be a long-standing problem with saa7134 cards using silicon > tuners (according to various mailing lists). > > On this card, GPIO11 controls 74HC4052 MUX. It switches two things:

[RFC PATCH] saa7134: Add AverMedia Satelllite Hybrid+FM A706 (and FM radio problems)

2013-01-12 Thread Ondrej Zary
;, priv->cfg.config); + } if (tda8290_probe(&priv->i2c_props) == 0) { priv->ver = TDA8290; diff --git a/drivers/media/tuners/tda8290.h b/drivers/media/tuners/tda8290.h index 7e288b2..e300f4c 100644 --- a/drivers/media/tuners/tda8290.h +++ b/drivers/media/tuners/tda8290.h @@ -20,6 +20,9 @@ #include #include "dvb_frontend.h" +#define TDA829X_NO_I2C_GATE(1 << 7) +#define TDA829X_CFG_MASK (~TDA829X_NO_I2C_GATE) + struct tda829x_config { unsigned int lna_cfg; -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[BAD PATCH] saa7134: Add AverMedia Satelllite Hybrid+FM A706

2013-01-10 Thread Ondrej Zary
ed char *msg; - +return 0; if (close) { msg = enable; tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); @@ -731,7 +731,7 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe, { struct tda8290_priv *priv = NULL; char *name; - +

Re: AverMedia Satelllite Hybrid+FM A706

2012-12-21 Thread Ondrej Zary
] error -34 on line 652 [ 521.289690] tda18271_calc_gain_taper: [2-0063|M] error -34 on line 669 -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: AverMedia Satelllite Hybrid+FM A706

2012-12-20 Thread Ondrej Zary
1] saa7133[0]: i2c stat <= BUSY [ 921.565405] saa7133[0]: i2c stat <= BUSY [ 921.565440] mt312_read: ret == -5 [ 921.565450] saa7133[0]/dvb: dvb_init: No zl10039 found! -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

AverMedia Satelllite Hybrid+FM A706

2012-12-18 Thread Ondrej Zary
e control but I thinka that this card has none as all devices are directly on the I2C bus. Any ideas? -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH v2 3/3] radio-sf16fmi: Use LM7000 driver

2012-06-13 Thread Ondrej Zary
Convert radio-sf16fmi to use generic LM7000 driver. Tested with SF16-FMI, SF16-FMP and SF16-FMD. Signed-off-by: Ondrej Zary --- a/drivers/media/radio/radio-sf16fmi.c +++ b/drivers/media/radio/radio-sf16fmi.c @@ -27,6 +27,7 @@ #include /* outb, outb_p */ #include

[PATCH v2 2/3] radio-aimslab: Use LM7000 driver

2012-06-13 Thread Ondrej Zary
Convert radio-aimslab to use generic LM7000 driver. Tested with Reveal RA300. Signed-off-by: Ondrej Zary --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c @@ -37,6 +37,7 @@ #include #include #include "radio-isa.h" +#include "lm7000.h"

[PATCH v2 1/3] radio: Add Sanyo LM7000 tuner driver

2012-06-13 Thread Ondrej Zary
Add very simple driver for Sanyo LM7000 AM/FM tuner chip. Only FM is supported as there is no known HW with AM implemented. This will be used by radio-aimslab and radio-sf16fmi. Signed-off-by: Ondrej Zary diff --git a/drivers/media/radio/lm7000.h b/drivers/media/radio/lm7000.h new file mode

Re: [PATCH 1/3] radio: Add Sanyo LM7000 tuner driver

2012-06-12 Thread Ondrej Zary
On Tuesday 12 June 2012 22:17:43 Hans Verkuil wrote: > Hi Ondrej! > > On Tue June 12 2012 20:37:54 Ondrej Zary wrote: > > Add very simple driver for Sanyo LM7000 AM/FM tuner chip. Only FM is > > supported as there is no known HW with AM implemented. > > It feels to me

  1   2   3   >