[PATCH 0/6] convert drivers to SDR API

2013-12-28 Thread Antti Palosaari
Here is two drivers converted to API. There is still a tons of things to do, like expose tuner AGC control to userspace. Also one very big task is to design how these DVB tuners should be shared properly with DVB and V4L2 SDR API. Move used V4L2 FourCC codes to API and many many other easy things!

[PATCH 6/6] v4l: disable lockdep on vb2_fop_mmap()

2013-12-28 Thread Antti Palosaari
Avoid that lockdep warning: [ INFO: possible circular locking dependency detected ] 3.13.0-rc1+ #77 Tainted: G C O --- video_source:sr/32072 is trying to acquire lock: (&dev->mutex#2){+.+.+.}, at: [] vb2_fop_mmap+0x33/0x90 [videobuf2_co

[PATCH 1/6] rtl2832_sdr: convert to SDR API

2013-12-28 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 | 387 +-- 1 file changed, 223 insertions(+), 164 deletions(-) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c b/drivers/s

[PATCH 3/6] msi3101: add u8 sample format

2013-12-28 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 --- drivers/staging/media/msi3101/sdr-msi3101.c | 67 - 1 file cha

[PATCH 4/6] msi3101: add u16 LE sample format

2013-12-28 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. Signe

[PATCH 2/6] msi3101: convert to SDR API

2013-12-28 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 5/6] msi3101: tons of small changes

2013-12-28 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 --- drivers/staging/media/msi3101/sdr-msi3101.c | 214 +++- 1 file changed, 55 insertions(+

Re: [PATCH 13/13] libdvbv5: improve TS parsing

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:46:01 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/include/descriptors/mpeg_ts.h | 4 ++-- > lib/libdvbv5/descriptors/mpeg_ts.c | 11 --- > 2 files changed, 10 insertions(+), 5 deletions(-) > > diff --git a/lib/include/descriptors/mpeg_ts.

Re: [PATCH 07/13] libdvbv5: MGT parser

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:55 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/include/descriptors/mgt.h | 82 ++ > lib/libdvbv5/Makefile.am | 1 + > lib/libdvbv5/descriptors.c | 1 + > lib/libdvbv5/descriptors/mgt.c | 113 >

Re: [PATCH 08/13] libdvbv5: ATSC EIT

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:56 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/include/descriptors/atsc_eit.h | 91 + > lib/include/descriptors/atsc_header.h | 64 +++ > lib/include/descriptors/mgt.h | 25 +++--- > lib/include/de

[PATCH RFC v6 08/12] v4l: do not allow modulator ioctls for non-radio devices

2013-12-28 Thread Antti Palosaari
From: Hans Verkuil Modulator ioctls could be enabled mistakenly for non-radio devices. Currently those ioctls are only valid for radio. Fix it. Signed-off-by: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-dev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 delet

[PATCH RFC v6 00/12] SDR API with documentation

2013-12-28 Thread Antti Palosaari
That version contains documentation fixes reported by Hans. Antti Palosaari (11): v4l: add device type for Software Defined Radio v4l: add new tuner types for SDR v4l: 1 Hz resolution flag for tuners v4l: add stream format for SDR receiver v4l: define own IOCTL ops for SDR FMT v4l: ena

[PATCH RFC v6 10/12] DocBook: document 1 Hz flag

2013-12-28 Thread Antti Palosaari
Update documention to reflect 1 Hz frequency step flag. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- .../DocBook/media/v4l/vidioc-enum-freq-bands.xml | 8 +--- Documentation/DocBook/media/v4l/vidioc-g-frequency.xml| 5 +++-- Documentation/DocBook/media/v4l/vidioc-g-mod

[PATCH RFC v6 05/12] v4l: define own IOCTL ops for SDR FMT

2013-12-28 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 Acked-by: Hans Verkuil --- include/media/v4l2-ioctl.h | 8 1 file changed, 8 insertions(+) diff --git a/include/me

[PATCH RFC v6 12/12] v4l2-framework.txt: add SDR device type

2013-12-28 Thread Antti Palosaari
Add SDR device type to v4l2-framework.txt document. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/video4linux/v4l2-framework.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt i

[PATCH RFC v6 04/12] v4l: add stream format for SDR receiver

2013-12-28 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 Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/trace/events/v4l2.h | 1 + include/uapi/linux/videodev2.h | 11 +++

[PATCH RFC v6 06/12] v4l: enable some IOCTLs for SDR receiver

2013-12-28 Thread Antti Palosaari
Enable stream format (FMT) IOCTLs for SDR use. These are used for negotiate used data stream format. Reorganise some some IOCTL selection logic. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 21 ++--- drivers/

[PATCH RFC v6 11/12] DocBook: Software Defined Radio Interface

2013-12-28 Thread Antti Palosaari
Document V4L2 SDR interface. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 10 ++ Documentation/DocBook/media/v4l/dev-sdr.xml| 107 + Documentation/DocBook/media/v4l/io.xml | 6 ++ Documentatio

[PATCH RFC v6 07/12] v4l: add device capability flag for SDR receiver

2013-12-28 Thread Antti Palosaari
VIDIOC_QUERYCAP IOCTL is used to query device capabilities. Add new capability flag to inform given device supports SDR capture. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- include/uapi/linux/videodev2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inclu

[PATCH RFC v6 03/12] v4l: 1 Hz resolution flag for tuners

2013-12-28 Thread Antti Palosaari
Add V4L2_TUNER_CAP_1HZ for 1 Hz resolution. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- 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 10064

[PATCH RFC v6 02/12] v4l: add new tuner types for SDR

2013-12-28 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 v6 01/12] v4l: add device type for Software Defined Radio

2013-12-28 Thread Antti Palosaari
Add new V4L device type VFL_TYPE_SDR for Software Defined Radio. It is registered as /dev/swradio0 (/dev/sdr0 was already reserved). Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 6 ++ include/media/v4l2-dev.h | 3

[PATCH RFC v6 09/12] DocBook: fix wait.c location

2013-12-28 Thread Antti Palosaari
Documentation did not compile as wait.c location was wrong. Signed-off-by: Antti Palosaari --- Documentation/DocBook/device-drivers.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DocBook/device-drivers.tmpl b/Documentation/DocBook/device-drivers.tmpl inde

Re: [PATCH 10/13] libdvbv5: cleanup coding style

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:58 +0100 André Roth escreveu: Please merge it with the original patch. That makes easier to review. > Signed-off-by: André Roth > --- > lib/libdvbv5/descriptors.c | 2 +- > lib/libdvbv5/descriptors/mpeg_pes.c | 2 +- > 2 files changed, 2 insertions(+), 2 del

Re: [PATCH 09/13] libdvbv5: fix section counting

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:57 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/libdvbv5/dvb-scan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c > index bd9d2fb..6f3def6 100644 > --- a/lib/libdvbv5/dv

Re: [PATCH 12/13] libdvbv5: fix missing includes

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:46:00 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/libdvbv5/dvb-file.c | 1 + > lib/libdvbv5/dvb-sat.c | 1 + > lib/libdvbv5/dvb-scan.c | 1 + > lib/libdvbv5/parse_string.c | 1 + > 4 files changed, 4 insertions(+) > > diff --git a/lib/

Re: [PATCH 11/13] libdvbv5: fix double entry in Makefile.am

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:59 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/libdvbv5/Makefile.am | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/lib/libdvbv5/Makefile.am b/lib/libdvbv5/Makefile.am > index 368baf8..dc5005f 100644 > --- a/lib/libdvb

Re: [PATCH 06/13] libdvbv5: fix eit times

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:54 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/libdvbv5/descriptors/eit.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/lib/libdvbv5/descriptors/eit.c b/lib/libdvbv5/descriptors/eit.c > index d13b14c..e70cf3b 1006

Re: [PATCH 05/13] libdvbv5: eit parsing updated

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:53 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/include/descriptors.h | 6 ++ > lib/include/descriptors/eit.h | 1 + > lib/include/dvb-fe.h | 2 ++ > lib/libdvbv5/descriptors.c | 1 + > lib/libdvbv5/descriptors/eit.c |

cron job: media_tree daily build: ERRORS

2013-12-28 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: Sun Dec 29 04:00:16 CET 2013 git branch: test git hash: 7d459937dc09bb8e448d9985ec4623779427d8a5 gcc versio

Re: [PATCH 03/13] libdvbv5: mpeg elementary stream parsers

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:51 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/include/descriptors/mpeg_es.h | 109 ++ > lib/include/descriptors/mpeg_pes.h | 112 ++ > lib/include/descriptors/mpeg_ts.h | 79 +

Re: [PATCH 04/13] libdvbv5: fix deadlock on missing table sections

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:52 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/libdvbv5/dvb-scan.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c > index 76712d4..9751f9d 100644 > --- a/lib/libdvbv5/dvb-scan.c > +

Re: [PATCH 02/13] libdvbv5: ATSC VCT table support

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:50 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/include/descriptors.h| 4 +- > lib/include/descriptors/desc_service_location.h | 70 +++ > lib/include/descriptors/vct.h| 5 +- > li

Re: [PATCH 01/13] libdvbv5: fix reading multisection tables

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 16:45:49 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/libdvbv5/dvb-scan.c | 18 +++--- > 1 file changed, 11 insertions(+), 7 deletions(-) > > diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c > index e9ccc72..af3a052 100644 > -

[PATCH 1/2] em28xx: use usb_alloc_coherent() for audio

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Instead of allocating transfer buffers with kmalloc() use usb_alloc_coherent(). That makes it work also with arm CPUs. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-audio.c | 31 --- 1 file changed, 20 insertio

[PATCH 2/2] em28xx-audio: allocate URBs at device driver init

2013-12-28 Thread Mauro Carvalho Chehab
Instead of allocating/deallocating URBs and transfer buffers every time stream is started/stopped, just do it once. That reduces the memory allocation pressure and makes the code that start/stop streaming a way simpler. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-au

[PATCH 0/2] some improvements for em28xx-audio

2013-12-28 Thread Mauro Carvalho Chehab
Do some improvements for em28xx-audio: - instead of allocating the transfer buffers directly, use usb_alloc coherent. That helps to make it more compatible with arm. - Move the code that allocates/deallocates URB audio buffers to device init/finish code. Mauro Carvalho Chehab (2):

aircraft surplus cargo salvage

2013-12-28 Thread Jason
Dear Sirs We are worldwide salvage buyers of all warranty returns electronic goods,machinery,plant,vehicles etc we buy surplus or damaged salvage items, including light aircraft and helicopters worldwide If you have anything to dispose of please email pictures and we will make you an offer J

Re: linuxtv patch/11200/

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 12:36:26 -0500 "deadletterf...@att.net" escreveu: > I am writing regarding Mr. Mike Slegeir's patch 11200, which is listed > with a 'State: Not Applicable.' That only means that it is not applicable as a Kernel media patch. All non-Kernel-media patches at patchwork are tagge

Re: Fwd: v4l2: The device does not support the streaming I/O method.

2013-12-28 Thread Andy Walls
On Fri, 2013-12-27 at 00:37 -0500, Andy wrote: > I am trying to capture input from /dev/video0 which is Hauppauge Win > 150 MCE PCI card but I get the following error which has no record on > google > > [video4linux2,v4l2 @ 0xb080d60] The device does not support the > streaming I/O method. > /dev/

linuxtv patch/11200/

2013-12-28 Thread deadletterf...@att.net
I am writing regarding Mr. Mike Slegeir's patch 11200, which is listed with a 'State: Not Applicable.' I downloaded dvb-apps using hg on an x86_64 Fedora 20 system. The compiled atsc_epg failed as described: /usr/bin/atsc_epg -f # -t -p 3 tuning to # Hz, please wait... tuner locke

[PATCH 3/3] m88rs2000: Correct m88rs2000_get_fec

2013-12-28 Thread Malcolm Priestley
Value of fec is achieved by the upper nibble bits 6,7 & 8. Signed-off-by: Malcolm Priestley --- drivers/media/dvb-frontends/m88rs2000.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/media/dvb-frontends/m88rs2000.c b/drivers/media/dvb-frontends/m88rs2

[PATCH 2/3] m88rs2000: Correct m88rs2000_set_fec settings.

2013-12-28 Thread Malcolm Priestley
Register 0x70 is used to set fec, register 0x76 is used to get fec Register 0x76 is set to 0x8. Signed-off-by: Malcolm Priestley --- drivers/media/dvb-frontends/m88rs2000.c | 37 + 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/media/dvb-

[PATCH 1/3] m88rs2000: correct read status lock value.

2013-12-28 Thread Malcolm Priestley
The correct lock values is when bits of the value 0xee are set. Signed-off-by: Malcolm Priestley --- drivers/media/dvb-frontends/m88rs2000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/m88rs2000.c b/drivers/media/dvb-frontends/m88rs2000.c

Re: [ivtv-users] Kernel crash with modprobe cx18

2013-12-28 Thread Andy Walls
On Thu, 2013-12-26 at 06:57 -0600, Scott Robinson wrote: > The machine with which I encountered this problem has two HVR-1600 > cards. I moved one card to another machine. The card still fails at > the same point. I ran memtest, which passed. The machine has about 3GB > memory free. I loaded other

[PATCH 04/13] libdvbv5: fix deadlock on missing table sections

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index 76712d4..9751f9d 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -96,6 +96,10 @@ int dvb_read_section_with_id

[PATCH 05/13] libdvbv5: eit parsing updated

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors.h | 6 ++ lib/include/descriptors/eit.h | 1 + lib/include/dvb-fe.h | 2 ++ lib/libdvbv5/descriptors.c | 1 + lib/libdvbv5/descriptors/eit.c | 28 +++- lib/libdvbv5/dvb-fe.c | 7 +++

[PATCH 07/13] libdvbv5: MGT parser

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/mgt.h | 82 ++ lib/libdvbv5/Makefile.am | 1 + lib/libdvbv5/descriptors.c | 1 + lib/libdvbv5/descriptors/mgt.c | 113 + 4 files changed, 197 insertions(+) cr

[PATCH 02/13] libdvbv5: ATSC VCT table support

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors.h| 4 +- lib/include/descriptors/desc_service_location.h | 70 +++ lib/include/descriptors/vct.h| 5 +- lib/libdvbv5/Makefile.am | 3 +- lib/libdvbv5/d

[PATCH 03/13] libdvbv5: mpeg elementary stream parsers

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/mpeg_es.h | 109 ++ lib/include/descriptors/mpeg_pes.h | 112 ++ lib/include/descriptors/mpeg_ts.h | 79 ++ lib/include/descriptors/nit.h | 4 +- lib/lib

[PATCH 06/13] libdvbv5: fix eit times

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/descriptors/eit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libdvbv5/descriptors/eit.c b/lib/libdvbv5/descriptors/eit.c index d13b14c..e70cf3b 100644 --- a/lib/libdvbv5/descriptors/eit.c +++ b/lib/libdvbv5/descriptors/e

[PATCH 09/13] libdvbv5: fix section counting

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index bd9d2fb..6f3def6 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -208,7 +208,7 @@ int dvb_read_se

[PATCH 01/13] libdvbv5: fix reading multisection tables

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index e9ccc72..af3a052 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -187,15 +187

[PATCH 12/13] libdvbv5: fix missing includes

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-file.c | 1 + lib/libdvbv5/dvb-sat.c | 1 + lib/libdvbv5/dvb-scan.c | 1 + lib/libdvbv5/parse_string.c | 1 + 4 files changed, 4 insertions(+) diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c index 9abb1f7..d5b00e2 100644

[PATCH 11/13] libdvbv5: fix double entry in Makefile.am

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libdvbv5/Makefile.am b/lib/libdvbv5/Makefile.am index 368baf8..dc5005f 100644 --- a/lib/libdvbv5/Makefile.am +++ b/lib/libdvbv5/Makefile.am @@ -47,7 +47,6 @@ libdvbv5_l

[PATCH 13/13] libdvbv5: improve TS parsing

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/mpeg_ts.h | 4 ++-- lib/libdvbv5/descriptors/mpeg_ts.c | 11 --- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/include/descriptors/mpeg_ts.h b/lib/include/descriptors/mpeg_ts.h index 2bb570b..f332a58 100644 ---

[PATCH 08/13] libdvbv5: ATSC EIT

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/atsc_eit.h | 91 + lib/include/descriptors/atsc_header.h | 64 +++ lib/include/descriptors/mgt.h | 25 +++--- lib/include/descriptors/vct.h | 39 - lib/include/dvb-scan.h

[PATCH 10/13] libdvbv5: cleanup coding style

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/descriptors.c | 2 +- lib/libdvbv5/descriptors/mpeg_pes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libdvbv5/descriptors.c b/lib/libdvbv5/descriptors.c index 6df8b8b..b5bc9b2 100644 --- a/lib/libdvbv5/descriptors

BCM 4505 chipset

2013-12-28 Thread Jahn
Has anyone developed any tuner driver for Broadcom chip such as BCM 4505 or BCM4506? J. -- 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 v3 21/24] em28xx: USB: adjust for changed 3.8 USB API

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 13:26:00 +0100 Hans Verkuil escreveu: > On 12/28/2013 01:16 PM, Mauro Carvalho Chehab wrote: > > From: Mauro Carvalho Chehab > > > > The recent changes in the USB API ("implement new semantics for > > URB_ISO_ASAP") made the former meaning of the URB_ISO_ASAP flag the > > de

Re: [REVIEW PATCH 0/4] add radio-raremono driver

2013-12-28 Thread Hans Verkuil
On 12/13/2013 01:26 PM, Hans Verkuil wrote: > This patch series adds the new radio-raremono driver for the USB > 'Thanko's Raremono' AM/FM/SW receiver. > > Since it (ab)uses the same USB IDs as the si470x SiLabs Reference > Design I had to add additional checks to si470x to tell the two apart. >

Re: [PATCH v3 21/24] em28xx: USB: adjust for changed 3.8 USB API

2013-12-28 Thread Hans Verkuil
On 12/28/2013 01:16 PM, Mauro Carvalho Chehab wrote: > From: Mauro Carvalho Chehab > > The recent changes in the USB API ("implement new semantics for > URB_ISO_ASAP") made the former meaning of the URB_ISO_ASAP flag the > default, and changed this flag to mean that URBs can be delayed. > This is

[PATCH v3 14/24] em28xx: remove a false positive warning

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab gcc knows nothing about jiffies. So, it produces this error: drivers/media/usb/em28xx/em28xx-i2c.c: In function ‘em28xx_i2c_recv_bytes’: drivers/media/usb/em28xx/em28xx-i2c.c:274:5: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-u

[PATCH v3 21/24] em28xx: USB: adjust for changed 3.8 USB API

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab The recent changes in the USB API ("implement new semantics for URB_ISO_ASAP") made the former meaning of the URB_ISO_ASAP flag the default, and changed this flag to mean that URBs can be delayed. This is not the behaviour wanted by any of the audio drivers because it

[PATCH v3 20/24] em28xx: Fix em28xx deplock

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab When em28xx extensions are loaded/removed, there are two locks: a single static em28xx_devlist_mutex that registers each extension and the struct em28xx dev->lock. When extensions are registered, em28xx_devlist_mutex is taken first, and then dev->lock. Be sure that,

[PATCH v3 13/24] em28xx: retry I2C ops if failed by timeout

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab At least on HVR-950, sometimes an I2C operation fails. This seems to be more frequent when the device is connected into an USB 3.0 port. Instead of report an error, try to repeat it, for up to 20 ms. That makes the code more reliable. Signed-off-by: Mauro Carvalho C

[PATCH v3 23/24] em28xx: don't return -ENODEV for I2C xfer errors

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab -ENODEV reports a permanent condition where a device is not found. Except during device detection, this is not the case of I2C transfer timeout errors. So, change them to return -EIO instead. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-

[PATCH v3 12/24] tuner-xc2028: remove unused code

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab This macro is not used. remove it. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/tuners/tuner-xc2028.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/media/tuners/tuner-xc2028.c b/drivers/media/tuners/tuner-xc2028.c index 4be5cf808a40.

[PATCH v3 00/24] em28xx: split analog part into a separate module

2013-12-28 Thread Mauro Carvalho Chehab
This patch series split em28xx into a separate V4L2 driver, allowing the new dvb-only chips to be supported without requiring V4L2. While testing the original patchset, I noticed several issues with HVR-950. The remaining patches on this series fix most of those issues. There's one remaining issu

[PATCH v3 07/24] em28xx: fix a cut and paste error

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Don't use "dvb" at em28xx v4l module. This was due to a cut and paste from em28xx-dvb extension. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-video.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/medi

[PATCH v3 15/24] em28xx: check if a device has audio earlier

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Better to split chipset detection from the audio setup. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-cards.c | 11 +++ drivers/media/usb/em28xx/em28xx-core.c | 12 +--- 2 files changed, 12 insertions(+), 11 deletions(-)

[PATCH v3 16/24] em28xx: properly implement AC97 wait code

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Instead of assuming that msleep() is precise, use a jiffies based code to wait for AC97 to be available. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-core.c | 7 +-- drivers/media/usb/em28xx/em28xx.h | 5 - 2 files changed, 9

[PATCH v3 11/24] tvp5150: make read operations atomic

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Instead of using two I2C operations between write and read, use just one i2c_transfer. That allows I2C mutexes to not let any other I2C transfer between the two. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/i2c/tvp5150.c | 22 ++ 1 file

[PATCH v3 08/24] em28xx: add warn messages for timeout

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab changeset 45f04e82d035 added a logic to check if em28xx got a timeout on an I2C transfer. That patch started to produce a series of errors that is present with HVR-950, like: [ 4032.218656] xc2028 19-0061: Error on line 1299: -19 However, as there are several places

[PATCH v3 10/24] em28xx: convert i2c wait completion logic to use jiffies

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab The I2C wait completion/timeout logic currently assumes that msleep(5) will wait exaclty 5 ms. This is not true at all, as it depends on CONFIG_HZ. Convert it to use jiffies, in order to not wait for more time than needed. Signed-off-by: Mauro Carvalho Chehab --- d

[PATCH v3 09/24] em28xx: improve extension information messages

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Add a message with consistent prints before and after each extension initialization, and provide a better text for module load. While here, add a missing sanity check for extension finish code at em28xx-v4l extension. Signed-off-by: Mauro Carvalho Chehab --- driver

[PATCH v3 18/24] em28xx: improve I2C timeout error message

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Since sometimes em28xx is returning 0x02 or 0x04 at the I2C status register, output what's the returned status: [ 1090.939820] em2882/3 #0: write to i2c device at 0xc2 timed out (ret=0x04) [ 1090.939826] xc2028 19-0061: Error on line 1290: -5 [ 1091.140136] em2882/3 #

[PATCH v3 19/24] em28xx: unify module version

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Use the same module version on all em28xx sub-modules, and use the same naming convention to describe the driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-audio.c | 3 ++- drivers/media/usb/em28xx/em28xx-core.c | 2 -- drivers/media/

[PATCH v3 01/24] em28xx: move some video-specific functions to em28xx-video

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Now that we want to split the video handling to a separate module, move all video-specific functions to em28xx-video. No functional changes. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-cards.c | 107 - drivers/media/usb/em28xx/e

[PATCH v3 05/24] em28xx: initialize analog I2C devices at the right place

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab In order to initialize the analog tuner, v4l2 should be registere first, or otherwise we get an oops: [ 51.783537] BUG: unable to handle kernel NULL pointer dereference at) [ 51.784479] IP: [] __list_add+0x1b/0xc0 [ 51.784479] PGD 0 [ 51.784479] Oops:

[PATCH v3 04/24] em28xx: make em28xx-video to be a separate module

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Now that all analog-specific code are at em28xx-video, convert it into an em28xx extension and load it as a separate module. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/Kconfig | 6 ++- drivers/media/usb/em28xx/Makefile| 5 ++-

[PATCH v3 24/24] em28xx: cleanup I2C debug messages

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab The I2C output messages is too polluted. Clean it a little bit, by: - use the proper core support for memory dumps; - hide most stuff under the i2c_debug umbrella; - add the missing KERN_CONT where needed; - use 2 levels or verbosity. On

[PATCH v3 06/24] em28xx-cards: remove a now dead code

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab As V4L2 registration now occurs asynchronously, the code doesn't fail there anymore. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-cards.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/media/us

[PATCH v3 02/24] em28xx: some cosmetic changes

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab In order to make easier for the next patches, do some cosmetic changes. No functional changes. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-cards.c | 2 +- drivers/media/usb/em28xx/em28xx-video.c | 2 -- drivers/media/usb/em28xx/em28xx

[PATCH v3 03/24] em28xx: move analog-specific init to em28xx-video

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab There are several init code inside em28xx-cards that are actually part of analog initialization. Move the code to em28x-video, in order to remove part of the mess. In thesis, no functional changes so far. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/e

[PATCH v3 17/24] em28xx: initialize audio latter

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Better to first write the GPIOs of the input mux, before initializing the audio. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-video.c | 42 - 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/

[PATCH v3 22/24] em28xx: use a better value for I2C timeouts

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab In the lack of a better spec, let's assume the timeout values compatible with SMBus spec: http://smbus.org/specs/smbus110.pdf at chapter 8 - Electrical Characteristics of SMBus devices Ok, SMBus is a subset of I2C, and not all devices will be following it, bu