Re: [PATCH 0/2] v4l: ti-vpe: Some VPE fixes

2013-12-16 Thread Hans Verkuil
On 12/03/2013 12:51 PM, Archit Taneja wrote: > This series fixes 2 issues in the VPE driver. The first fix allows us to use > UYVY color format for source and destination buffers. The second fix makes > sure > we don't set pixel format widths which the VPDMA HW can't support. None of > these > fi

Re: [PATCH RFC v3 6/7] rtl2832_sdr: convert to SDR API

2013-12-16 Thread Hans Verkuil
On 12/16/2013 11:08 PM, Antti Palosaari wrote: > It was abusing video device API. Use SDR API instead. > > Signed-off-by: Antti Palosaari > --- > drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 291 > ++- > 1 file changed, 227 insertions(+), 64 deletions(-) > > diff --gi

Re: [PATCH RFC v3 0/7] SDR API

2013-12-16 Thread Hans Verkuil
On 12/16/2013 11:08 PM, Antti Palosaari wrote: > Now with some changes done requested by Hans. > I did not agree very well that VIDIOC_G_FREQUENCY tuner type check > exception, but here it is... > > Also two patches, as example, conversion of msi3101 and rtl2832_sdr > drivers to that API. >

Re: [PATCH RFC v3 3/7] v4l: add stream format for SDR receiver

2013-12-16 Thread Hans Verkuil
On 12/16/2013 11:08 PM, Antti Palosaari wrote: > Add new V4L2 stream format definition, V4L2_BUF_TYPE_SDR_CAPTURE, > for SDR receiver. > > Cc: Hans Verkuil > Signed-off-by: Antti Palosaari > --- > drivers/media/v4l2-core/v4l2-ioctl.c | 1 + > include/trace/events/v4l2.h | 1 + > incl

Re: [PATCH RFC v3 5/7] v4l: enable some IOCTLs for SDR receiver

2013-12-16 Thread Hans Verkuil
On 12/16/2013 11:08 PM, Antti Palosaari wrote: > Enable stream format (FMT) IOCTLs for SDR use. These are used for negotiate > used data stream format. > > Enable input IOCTLs, VIDIOC_ENUMINPUT, VIDIOC_G_INPUT, VIDIOC_S_INPUT. > These are used to select possible antenna connector. > > Reorganise

Re: [PATCH RFC v3 4/7] v4l: define own IOCTL ops for SDR FMT

2013-12-16 Thread Hans Verkuil
On 12/16/2013 11:08 PM, Antti Palosaari wrote: > Use own format ops for SDR data: > vidioc_enum_fmt_sdr_cap > vidioc_g_fmt_sdr_cap > vidioc_s_fmt_sdr_cap > vidioc_try_fmt_sdr_cap > > Cc: Hans Verkuil > Signed-off-by: Antti Palosaari > --- > include/media/v4l2-ioctl.h | 8 > 1 file chan

Re: [PATCH RFC v3 1/7] v4l: add new tuner types for SDR

2013-12-16 Thread Hans Verkuil
On 12/16/2013 11:08 PM, Antti Palosaari wrote: > Define tuner types V4L2_TUNER_ADC and V4L2_TUNER_RF for SDR usage. > > ADC is used for setting sampling rate (sampling frequency) to SDR > device. > > Another tuner type, named as V4L2_TUNER_RF, is possible RF tuner. > Is is used to down-convert RF

Re: [PATCH RFC v3 2/7] v4l: 1 Hz resolution flag for tuners

2013-12-16 Thread Hans Verkuil
On 12/16/2013 11:08 PM, Antti Palosaari wrote: > Add V4L2_TUNER_CAP_1HZ for 1 Hz resolution. > > Cc: Hans Verkuil > Signed-off-by: Antti Palosaari > --- > include/uapi/linux/videodev2.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux

Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19

2013-12-16 Thread Devin Heitmueller
Hi Connor, On Tue, Dec 17, 2013 at 12:28 AM, Connor Behan wrote: > Thanks for the detailed answer. I have tried your patch and updated the > wiki page. Would a 950 or 950Q be safer to buy next time? The 950 has long since been obsoleted. You cannot buy them anymore. The 950q though is well supp

Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19

2013-12-16 Thread Connor Behan
Thanks for the detailed answer. I have tried your patch and updated the wiki page. Would a 950 or 950Q be safer to buy next time? On 14/12/13 05:17 PM, Devin Heitmueller wrote: > I had a patch kicking around which fixed part of the issue, but it > didn't completely work because of the lgdt3305 hav

cron job: media_tree daily build: ERRORS

2013-12-16 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: Tue Dec 17 04:00:30 CET 2013 git branch: test git hash: 675722b0e3917c6c917f1aa5f6d005cd3a0479f5 gcc versio

[GIT PULL 3.13] new RTL2832U USB ID

2013-12-16 Thread Antti Palosaari
As that is simple ID addition it should be possible to send RC Kernel 3.13 at that late. Antti The following changes since commit 675722b0e3917c6c917f1aa5f6d005cd3a0479f5: Merge branch 'upstream-fixes' into patchwork (2013-12-13 05:04:00 -0200) are available in the git repository at: gi

[PATCH] anysee: fix non-working E30 Combo Plus DVB-T

2013-12-16 Thread Antti Palosaari
PLL was attached twice to frontend0 leaving frontend1 without a tuner. frontend0 is DVB-C and frontend1 is DVB-T. Cc: sta...@vger.kernel.org Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/anysee.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/medi

[GIT PULL 3.13] Anysee bug fix

2013-12-16 Thread Antti Palosaari
The following changes since commit 675722b0e3917c6c917f1aa5f6d005cd3a0479f5: Merge branch 'upstream-fixes' into patchwork (2013-12-13 05:04:00 -0200) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git anysee_fix for you to fetch changes up to 49fcf427186630d26

[GIT PULL] PCTV 461e / M88DS3103 / M88TS2022

2013-12-16 Thread Antti Palosaari
The following changes since commit 675722b0e3917c6c917f1aa5f6d005cd3a0479f5: Merge branch 'upstream-fixes' into patchwork (2013-12-13 05:04:00 -0200) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git pctv_461e for you to fetch changes up to b7b5e9e0faf925a040

Re: [RESEND PATCH v7 1/5] omap3isp: Modify clocks registration to avoid circular references

2013-12-16 Thread Sylwester Nawrocki
Hi Mike, Laurent has already taken this patch into his tree, could you apply the remaining ones to your clk tree so this series has enough exposure in -next ? Thanks, Sylwester -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.ke

[PATCH RFC v3 2/7] v4l: 1 Hz resolution flag for tuners

2013-12-16 Thread Antti Palosaari
Add V4L2_TUNER_CAP_1HZ for 1 Hz resolution. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 3fff116..97a5e50 100644 --- a/include/uapi/lin

[PATCH RFC v3 7/7] msi3101: convert to SDR API

2013-12-16 Thread Antti Palosaari
Convert to SDR API. Signed-off-by: Antti Palosaari --- drivers/staging/media/msi3101/sdr-msi3101.c | 204 1 file changed, 148 insertions(+), 56 deletions(-) diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c b/drivers/staging/media/msi3101/sdr-msi3101.c index

[PATCH RFC v3 3/7] v4l: add stream format for SDR receiver

2013-12-16 Thread Antti Palosaari
Add new V4L2 stream format definition, V4L2_BUF_TYPE_SDR_CAPTURE, for SDR receiver. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/trace/events/v4l2.h | 1 + include/uapi/linux/videodev2.h | 11 +++ 3 files change

[PATCH RFC v3 5/7] v4l: enable some IOCTLs for SDR receiver

2013-12-16 Thread Antti Palosaari
Enable stream format (FMT) IOCTLs for SDR use. These are used for negotiate used data stream format. Enable input IOCTLs, VIDIOC_ENUMINPUT, VIDIOC_G_INPUT, VIDIOC_S_INPUT. These are used to select possible antenna connector. Reorganise some some IOCTL selection logic. Cc: Hans Verkuil Signed-of

[PATCH RFC v3 1/7] v4l: add new tuner types for SDR

2013-12-16 Thread Antti Palosaari
Define tuner types V4L2_TUNER_ADC and V4L2_TUNER_RF for SDR usage. ADC is used for setting sampling rate (sampling frequency) to SDR device. Another tuner type, named as V4L2_TUNER_RF, is possible RF tuner. Is is used to down-convert RF frequency to range ADC could sample. Having RF tuner is opti

[PATCH RFC v3 0/7] SDR API

2013-12-16 Thread Antti Palosaari
Now with some changes done requested by Hans. I did not agree very well that VIDIOC_G_FREQUENCY tuner type check exception, but here it is... Also two patches, as example, conversion of msi3101 and rtl2832_sdr drivers to that API. regards Antti Antti Palosaari (7): v4l: add new tuner types for

[PATCH RFC v3 4/7] v4l: define own IOCTL ops for SDR FMT

2013-12-16 Thread Antti Palosaari
Use own format ops for SDR data: vidioc_enum_fmt_sdr_cap vidioc_g_fmt_sdr_cap vidioc_s_fmt_sdr_cap vidioc_try_fmt_sdr_cap Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- include/media/v4l2-ioctl.h | 8 1 file changed, 8 insertions(+) diff --git a/include/media/v4l2-ioctl.h b/inclu

[PATCH RFC v3 6/7] rtl2832_sdr: convert to SDR API

2013-12-16 Thread Antti Palosaari
It was abusing video device API. Use SDR API instead. Signed-off-by: Antti Palosaari --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 291 ++- 1 file changed, 227 insertions(+), 64 deletions(-) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c b/drivers/st

Re: Aw: Re: Card with si2165

2013-12-16 Thread Matthias Schwarzott
On 16.12.2013 09:26, "Sven Müller" wrote: > > I have a Hauppauge WINTV HVR 5500-HD. > Hi I think first you should check if this is exactly the same card as you have: http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-5500 Then either update this page or create a new one for your card. Pleas

[patch] [media] v4l: omap4iss: use snprintf() to make smatch happy

2013-12-16 Thread Dan Carpenter
Smatch complains here because name is a 32 character buffer and we adding the "OMAP4 ISS " prefix as well for a total of 42 characters. The sd->name buffer can only hold 32 characters. I've changed it to use snprintf() to silence the overflow warning. Also I have removed the call to strlcpy() whi

Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19

2013-12-16 Thread Frederik Himpe
On za, 2013-12-14 at 09:24 -0200, Mauro Carvalho Chehab wrote: > Em Fri, 13 Dec 2013 22:19:39 +0100 > Frederik Himpe escreveu: > > > [My excuses for multiposting, it seems gmane does not permit posting to all > > the relevant lists] > > > > Since upgrading my system from Linux 3.12 to 3.12.3, my

video4linux device name request for Software Defined Radio

2013-12-16 Thread Antti Palosaari
Hello, We need new video4linux device name for Software Defined Radio devices. Device numbers are allocated dynamically. Desired device name was /dev/sdr, but as it seems to be already reserved, it was made decision to apply /dev/swradio instead. 81 char video4linux /dev/swradio0Softwar

Re: [PATCH RFC v2 0/7] V4L2 SDR API

2013-12-16 Thread Hans Verkuil
On 12/16/2013 05:50 PM, Antti Palosaari wrote: > On 15.12.2013 13:30, Mauro Carvalho Chehab wrote: >> Em Sat, 14 Dec 2013 19:47:45 +0200 >> Antti Palosaari escreveu: >> >>> On 14.12.2013 19:05, Hans Verkuil wrote: On 12/14/2013 05:45 PM, Antti Palosaari wrote: > >> I didn't like much that no

Re: [PATCH RFC v2 0/7] V4L2 SDR API

2013-12-16 Thread Antti Palosaari
On 15.12.2013 13:30, Mauro Carvalho Chehab wrote: Em Sat, 14 Dec 2013 19:47:45 +0200 Antti Palosaari escreveu: On 14.12.2013 19:05, Hans Verkuil wrote: On 12/14/2013 05:45 PM, Antti Palosaari wrote: I didn't like much that now have 3 ways to describe frequencies. I think we should latter t

[media] v4l: omap4iss: Restore irq flags correctly in omap4iss_video_buffer_next()

2013-12-16 Thread Dan Carpenter
The spin_lock_irqsave() macro is not nestable. The second call will overwrite the first record of "flags" so the IRQs will not be enabled correctly at the end of the function. I haven't looked at all the callers but it could be that this function is always called with interrupts disabled and the

Re: [PATCH RFC v2 3/7] v4l: add new tuner types for SDR

2013-12-16 Thread Hans Verkuil
On 12/16/2013 03:41 PM, Antti Palosaari wrote: > On 16.12.2013 16:25, Hans Verkuil wrote: >> On 12/16/2013 03:19 PM, Antti Palosaari wrote: >>> On 16.12.2013 14:50, Hans Verkuil wrote: On 12/16/2013 01:36 PM, Antti Palosaari wrote: > On 16.12.2013 10:53, Hans Verkuil wrote: >> On 12/14

Re: [PATCH] v4l2: move tracepoints to video_usercopy

2013-12-16 Thread Wade Farnsworth
Hans Verkuil wrote: > The (d)qbuf ioctls were traced in the low-level v4l2 ioctl function. The > trace was outside the serialization lock, so that can affect the usefulness > of the timing. In addition, the __user pointer was expected instead of a > proper kernel pointer. > > By moving the tracepo

Re: [PATCH RFC v2 3/7] v4l: add new tuner types for SDR

2013-12-16 Thread Antti Palosaari
On 16.12.2013 16:25, Hans Verkuil wrote: On 12/16/2013 03:19 PM, Antti Palosaari wrote: On 16.12.2013 14:50, Hans Verkuil wrote: On 12/16/2013 01:36 PM, Antti Palosaari wrote: On 16.12.2013 10:53, Hans Verkuil wrote: On 12/14/2013 05:15 PM, Antti Palosaari wrote: @@ -1288,8 +1288,13 @@ sta

Re: [PATCH RFC v2 3/7] v4l: add new tuner types for SDR

2013-12-16 Thread Hans Verkuil
On 12/16/2013 03:19 PM, Antti Palosaari wrote: > On 16.12.2013 14:50, Hans Verkuil wrote: >> On 12/16/2013 01:36 PM, Antti Palosaari wrote: >>> On 16.12.2013 10:53, Hans Verkuil wrote: On 12/14/2013 05:15 PM, Antti Palosaari wrote: >>> > @@ -1288,8 +1288,13 @@ static int v4l_g_frequency(co

Re: [PATCH RFC v2 3/7] v4l: add new tuner types for SDR

2013-12-16 Thread Antti Palosaari
On 16.12.2013 14:50, Hans Verkuil wrote: On 12/16/2013 01:36 PM, Antti Palosaari wrote: On 16.12.2013 10:53, Hans Verkuil wrote: On 12/14/2013 05:15 PM, Antti Palosaari wrote: @@ -1288,8 +1288,13 @@ static int v4l_g_frequency(const struct v4l2_ioctl_ops *ops, struct video_device *vf

Re: [PATCH RFC v2 3/7] v4l: add new tuner types for SDR

2013-12-16 Thread Hans Verkuil
On 12/16/2013 01:36 PM, Antti Palosaari wrote: > On 16.12.2013 10:53, Hans Verkuil wrote: >> On 12/14/2013 05:15 PM, Antti Palosaari wrote: > >>> @@ -1288,8 +1288,13 @@ static int v4l_g_frequency(const struct >>> v4l2_ioctl_ops *ops, >>> struct video_device *vfd = video_devdata(file); >>>

Re: [PATCH RFC v2 3/7] v4l: add new tuner types for SDR

2013-12-16 Thread Antti Palosaari
On 16.12.2013 10:53, Hans Verkuil wrote: On 12/14/2013 05:15 PM, Antti Palosaari wrote: @@ -1288,8 +1288,13 @@ static int v4l_g_frequency(const struct v4l2_ioctl_ops *ops, struct video_device *vfd = video_devdata(file); struct v4l2_frequency *p = arg; - p->type = (vfd->

RFCv2: Properties, Configuration Storage, Selections and Matrices

2013-12-16 Thread Hans Verkuil
Updated the RFC to match my proof-of-concept code available here: http://git.linuxtv.org/hverkuil/media_tree.git/shortlog/refs/heads/propapi The main changes are in the configuration store setup: stores always exist and are no longer created by S_EXT_CTRLS. In addition stores can now easily map t

[PATCH] [media] dib8000: report Interleaving 4 correctly

2013-12-16 Thread Mauro Carvalho Chehab
On ISDB-T, the valid values for interleaving are 0, 1, 2 and 4. While the first 3 are properly reported, the last one is reported as 3 instead. Fix it. Tested with a Dektec DTA-2111 RF generator. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-frontends/dib8000.c | 10 +++--- 1 f

[patch] [media] i2c: lm3560: missing unlocks on error in lm3560_set_ctrl()

2013-12-16 Thread Dan Carpenter
There are several error paths which don't unlock on error. Signed-off-by: Dan Carpenter diff --git a/drivers/media/i2c/lm3560.c b/drivers/media/i2c/lm3560.c index ab5857d66f2d..fd96cfd6a9ec 100644 --- a/drivers/media/i2c/lm3560.c +++ b/drivers/media/i2c/lm3560.c @@ -214,20 +214,22 @@ static int

[PATCH v2] [media] s5p-mfc: Add controls to set vp8 enc profile

2013-12-16 Thread Arun Kumar K
From: Kiran AVND Add v4l2 controls to set desired profile for VP8 encoder. Acceptable levels for VP8 encoder are 0: Version 0 1: Version 1 2: Version 2 3: Version 3 Signed-off-by: Kiran AVND Signed-off-by: Pawel Osciak Signed-off-by: Arun Kumar K --- Changes from v1 --- - Addresse

Re: [RFC PATCH 1/2] sn9c102: prepare for removal by moving it to staging.

2013-12-16 Thread Hans Verkuil
On 12/15/2013 02:55 PM, Luca Risolia wrote: > Hi Hans, > > thanks for your reply. I understand your point of view. Since the sn9c102 > will > be removed from the kernel soon, I am considering another option, that is to > move the driver to UV4L, which is a transparent, ~100% userspace > implem

Вернуть отличное зрение сделалось мыслимо

2013-12-16 Thread cassandra
сверхэффективность нашей методики подтверждена сотнями отзывов http://www.lavitadicoppia.it/Url_reder.htm?/maf

Re: [PATCH RFC v2 0/7] V4L2 SDR API

2013-12-16 Thread Hans Verkuil
On 12/14/2013 06:47 PM, Antti Palosaari wrote: > On 14.12.2013 19:05, Hans Verkuil wrote: >> On 12/14/2013 05:45 PM, Antti Palosaari wrote: >>> Hello >>> One possible problem I noticed is device node name. >>> >>> Documentation/devices.txt >>> >>>65 block SCSI disk devices (16-31) >>>

Re: [PATCH RFC v2 7/7] v4l: define own IOCTL ops for SDR FMT

2013-12-16 Thread Hans Verkuil
On 12/14/2013 05:15 PM, Antti Palosaari wrote: > Use own format ops for SDR data: > vidioc_enum_fmt_sdr_cap > vidioc_g_fmt_sdr_cap > vidioc_s_fmt_sdr_cap > vidioc_try_fmt_sdr_cap The patch order is a bit weird. I would expect this patch to come before patch 6. Regards, Hans > > Cc: Ha

Re: [PATCH RFC v2 3/7] v4l: add new tuner types for SDR

2013-12-16 Thread Hans Verkuil
On 12/14/2013 05:15 PM, Antti Palosaari wrote: > Define tuner types V4L2_TUNER_ADC and V4L2_TUNER_RF for SDR usage. > > ADC is used for setting sampling rate (sampling frequency) to SDR > device. > > Another tuner type, named as V4L2_TUNER_RF, is possible RF tuner. > Is is used to down-convert RF

[PATCH] v4l2: move tracepoints to video_usercopy

2013-12-16 Thread Hans Verkuil
The (d)qbuf ioctls were traced in the low-level v4l2 ioctl function. The trace was outside the serialization lock, so that can affect the usefulness of the timing. In addition, the __user pointer was expected instead of a proper kernel pointer. By moving the tracepoints to video_usercopy we ensure

Aw: Re: Card with si2165

2013-12-16 Thread Sven Müller
> Hello Sven, > > I am trying to write a driver for SI2165 to get my WinTV-HVR 930C-HD > running. > What device do you have? > > I posted my current version here: > http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/71692 > > See also: > http://www.linuxtv.org/wiki/index.php/

[PATCH 1/2] [media] Documentation/DocBook/media/v4l/subdev-formats.xml: fix a typo

2013-12-16 Thread Antonio Ospite
The xref to the v4l2-mbus-pixelcode-yuv8 table gets rendered as "Table 4.22, “YUV Formats”", so use the verb in the third person singular because it refers to "Table": s/list/lists/ Signed-off-by: Antonio Ospite --- Documentation/DocBook/media/v4l/subdev-formats.xml | 2 +- 1 file changed, 1 i

[PATCH 0/2] Documentation/DocBook/media/v4l: typos

2013-12-16 Thread Antonio Ospite
Hi, here are a couple of fixes for typos in Documentation/DocBook/media/v4l/subdev-formats.xml Ciao, Antonio Antonio Ospite (2): [media] Documentation/DocBook/media/v4l/subdev-formats.xml: fix a typo [media] Documentation/DocBook/media/v4l: fix typo, s/packet/packed/ Documentation/DocBo

[PATCH 2/2] [media] Documentation/DocBook/media/v4l: fix typo, s/packet/packed/

2013-12-16 Thread Antonio Ospite
Change "packet" to "packed" where the doc is talking about packed data formats. Signed-off-by: Antonio Ospite --- Documentation/DocBook/media/v4l/subdev-formats.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/DocBook/media/v4l/subdev-formats.xml b/Doc