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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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

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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com Better to first write the GPIOs of the input mux, before initializing the audio. Signed-off-by: Mauro Carvalho Chehab m.che...@samsung.com --- drivers/media/usb/em28xx/em28xx-video.c | 42 - 1 file changed, 20

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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 [

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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 m.che...@samsung.com --- drivers/media/usb/em28xx/em28xx-audio.c | 3 ++-

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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 m.che...@samsung.com --- drivers/media/usb/em28xx/em28xx-cards.c |

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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: [81319fbb] __list_add+0x1b/0xc0 [

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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 m.che...@samsung.com --- drivers/media/usb/em28xx/Kconfig | 6 ++-

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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

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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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 m.che...@samsung.com ---

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com Better to split chipset detection from the audio setup. Signed-off-by: Mauro Carvalho Chehab m.che...@samsung.com --- drivers/media/usb/em28xx/em28xx-cards.c | 11 +++ drivers/media/usb/em28xx/em28xx-core.c | 12 +--- 2 files

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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 m.che...@samsung.com --- drivers/media/usb/em28xx/em28xx-core.c | 7 +--

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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 m.che...@samsung.com --- drivers/media/usb/em28xx/em28xx-video.c | 8 1 file changed, 4 insertions(+), 4

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

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

[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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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.

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com -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

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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

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 m.che...@samsung.com 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

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 Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 13:26:00 +0100 Hans Verkuil hverk...@xs4all.nl escreveu: On 12/28/2013 01:16 PM, Mauro Carvalho Chehab wrote: From: Mauro Carvalho Chehab m.che...@samsung.com The recent changes in the USB API (implement new semantics for URB_ISO_ASAP) made the former meaning of the

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

[PATCH 10/13] libdvbv5: cleanup coding style

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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 ---

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

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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 +++

[PATCH 12/13] libdvbv5: fix missing includes

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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

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

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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

[PATCH 13/13] libdvbv5: improve TS parsing

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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

[PATCH 08/13] libdvbv5: ATSC EIT

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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 -

[PATCH 06/13] libdvbv5: fix eit times

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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 +++

[PATCH 09/13] libdvbv5: fix section counting

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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

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

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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

[PATCH 05/13] libdvbv5: eit parsing updated

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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

[PATCH 07/13] libdvbv5: MGT parser

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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

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

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

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

2013-12-28 Thread André Roth
Signed-off-by: André Roth neol...@gmail.com --- 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

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 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 tvbox...@gmail.com --- drivers/media/dvb-frontends/m88rs2000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/m88rs2000.c

[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 tvbox...@gmail.com --- drivers/media/dvb-frontends/m88rs2000.c | 37 + 1 file changed, 19 insertions(+), 18 deletions(-) diff --git

[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 tvbox...@gmail.com --- drivers/media/dvb-frontends/m88rs2000.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/media/dvb-frontends/m88rs2000.c

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

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.

Re: linuxtv patch/11200/

2013-12-28 Thread Mauro Carvalho Chehab
Em Sat, 28 Dec 2013 12:36:26 -0500 deadletterf...@att.net 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

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

[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):

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

2013-12-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab m.che...@samsung.com 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 m.che...@samsung.com --- drivers/media/usb/em28xx/em28xx-audio.c | 31

[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 mche...@redhat.com ---

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- 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

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- lib/include/descriptors.h| 4 +- lib/include/descriptors/desc_service_location.h | 70 +++ lib/include/descriptors/vct.h

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- 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 ---

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

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- lib/include/descriptors/mpeg_es.h | 109 ++ lib/include/descriptors/mpeg_pes.h | 112 ++

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- lib/include/descriptors.h | 6 ++ lib/include/descriptors/eit.h | 1 + lib/include/dvb-fe.h | 2 ++ lib/libdvbv5/descriptors.c | 1 +

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- 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

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- 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

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- 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

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- 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

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 neol...@gmail.com escreveu: Please merge it with the original patch. That makes easier to review. Signed-off-by: André Roth neol...@gmail.com --- lib/libdvbv5/descriptors.c | 2 +- lib/libdvbv5/descriptors/mpeg_pes.c | 2 +- 2 files

[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 hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h

[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

[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 hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com ---

[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 hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hverk...@xs4all.nl ---

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

2013-12-28 Thread Antti Palosaari
Document V4L2 SDR interface. Cc: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- Documentation/DocBook/media/v4l/compat.xml | 10 ++ Documentation/DocBook/media/v4l/dev-sdr.xml| 107 + Documentation/DocBook/media/v4l/io.xml

[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 cr...@iki.fi --- Documentation/DocBook/device-drivers.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DocBook/device-drivers.tmpl

[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 hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hverk...@xs4all.nl --- include/uapi/linux/videodev2.h | 2 ++ 1

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

2013-12-28 Thread Antti Palosaari
From: Hans Verkuil hverk...@xs4all.nl 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 hans.verk...@cisco.com Signed-off-by: Antti Palosaari cr...@iki.fi ---

[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:

[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 hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- .../DocBook/media/v4l/vidioc-enum-freq-bands.xml | 8 +--- Documentation/DocBook/media/v4l/vidioc-g-frequency.xml| 5 +++--

[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 hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- Documentation/video4linux/v4l2-framework.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/video4linux/v4l2-framework.txt

[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 hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi Acked-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/trace/events/v4l2.h

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- lib/include/descriptors/mpeg_ts.h | 4 ++-- lib/libdvbv5/descriptors/mpeg_ts.c | 11 --- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- lib/include/descriptors/mgt.h | 82 ++ lib/libdvbv5/Makefile.am | 1 + lib/libdvbv5/descriptors.c | 1 +

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 neol...@gmail.com escreveu: Signed-off-by: André Roth neol...@gmail.com --- lib/include/descriptors/atsc_eit.h | 91 + lib/include/descriptors/atsc_header.h | 64 +++ lib/include/descriptors/mgt.h

[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 cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 214 +++- 1 file changed, 55

[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 cr...@iki.fi --- drivers/staging/media/msi3101/sdr-msi3101.c | 67

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

2013-12-28 Thread Antti Palosaari
Convert to SDR API. Signed-off-by: Antti Palosaari cr...@iki.fi --- 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

[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 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

[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

[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: [a073fde3] vb2_fop_mmap+0x33/0x90