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!
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
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
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
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
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
* 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(+
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.
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
>
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
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
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
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
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
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
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 +++
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/
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
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
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
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
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
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
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
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
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/
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
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
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 |
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
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 +
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
> +
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
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
> -
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
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
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):
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
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
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/
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
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
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-
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
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
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
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 +++
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
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
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
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
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
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
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
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
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
---
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
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
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
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
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.
>
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
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
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
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,
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
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-
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.
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
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
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(-)
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
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
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
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
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
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 #
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/
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
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:
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 ++-
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
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
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
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
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/
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
87 matches
Mail list logo