Age | Commit message (Collapse) | Author |
|
From: Hans Verkuil <hverkuil@xs4all.nl>
The bus-based I2C subsystem allocates the i2c_client struct. So if in order to
be able to convert the tuner to the bus-based I2C API the embedded i2c_client
struct must be removed from the tuner struct and replaced with a pointer.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/video/tda8290.c | 22 ++++++-------
linux/drivers/media/video/tda9887.c | 22 ++++++-------
linux/drivers/media/video/tuner-core.c | 51 ++++++++++++++++++-------------
linux/drivers/media/video/tuner-driver.h | 26 +++++++--------
4 files changed, 65 insertions(+), 56 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Consolidate tda8290_attach() and tda8295_attach() into a single function,
tda829x_attach(), which will detect chip combinations tda8290 or tda8295 with
tda8275, tda8275a or tda18271.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/video/tda8290.c | 263 +++++++++++++++------------------
linux/drivers/media/video/tda8290.h | 12 -
linux/drivers/media/video/tuner-core.c | 6
3 files changed, 130 insertions(+), 151 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/video/tda8290.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/dvb/frontends/tda827x.c | 61 +++++++++++++++++++++++++---
linux/drivers/media/dvb/frontends/tda827x.h | 3 -
linux/drivers/media/video/tda8290.c | 20 ---------
3 files changed, 57 insertions(+), 27 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Convert tda9887 and tda8290/5 to dvb_frontend interface
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/video/tda8290.c | 168 ++++++++++++++++---------------
linux/drivers/media/video/tda9887.c | 78 ++++++++------
linux/drivers/media/video/tuner-core.c | 79 +++++++-------
linux/drivers/media/video/tuner-driver.h | 16 +-
4 files changed, 188 insertions(+), 153 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/dvb/dvb-core/dvb_frontend.h | 1
linux/drivers/media/video/tda8290.c | 40 ++++++++++++------------
linux/drivers/media/video/tda9887.c | 14 ++++----
linux/drivers/media/video/tuner-core.c | 11 ------
linux/drivers/media/video/tuner-driver.h | 1
5 files changed, 29 insertions(+), 38 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/dvb/dvb-core/dvb_frontend.h | 3
linux/drivers/media/video/tda8290.c | 8 +-
linux/drivers/media/video/tda9887.c | 4 -
linux/drivers/media/video/tuner-core.c | 91 +++++++++++++-----------
linux/drivers/media/video/tuner-driver.h | 4 -
5 files changed, 63 insertions(+), 47 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Add basic support for NXP TDA8295 analog demod and TDA18271 tuner silicon.
TDA8295 + TDA8275a not yet tested.
TDA8290 + TDA18271 not yet supported.
Digital mode of TDA18271 not yet tested & needs more work.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/Documentation/video4linux/CARDLIST.tuner | 1
linux/drivers/media/Kconfig | 3
linux/drivers/media/dvb/frontends/Kconfig | 7
linux/drivers/media/dvb/frontends/Makefile | 1
linux/drivers/media/dvb/frontends/tda18271.c | 1062 +++++++++++++++++++++++++
linux/drivers/media/dvb/frontends/tda18271.h | 40
linux/drivers/media/video/tda8290.c | 339 +++++++
linux/drivers/media/video/tda8290.h | 8
linux/drivers/media/video/tuner-core.c | 5
linux/drivers/media/video/tuner-types.c | 3
linux/drivers/media/video/tveeprom.c | 2
linux/include/media/tuner.h | 2
v4l/versions.txt | 2
13 files changed, 1467 insertions(+), 8 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Add analog tuning support to tda827x dvb_frontend tuner module.
Convert tda8290 module back to native tuner interface.
The tda8290 analog demodulator will be handled the same way as tda9887.
The tuner.ko module (tuner-core) will pass commands to tda8290 via the
tuner_operations interface. tda8290 will communicate with tda827x via
the dvb_frontend interface, while passing a pointer to a private data
structure.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/Kconfig | 1
linux/drivers/media/dvb/frontends/tda827x.c | 307 ++++++++++++++-
linux/drivers/media/dvb/frontends/tda827x.h | 10
linux/drivers/media/video/tda8290.c | 566 +++++-----------------------
linux/drivers/media/video/tda8290.h | 30 -
linux/drivers/media/video/tuner-core.c | 16
6 files changed, 424 insertions(+), 506 deletions(-)
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
To ease the conversion of the analog tuner sub-drivers into dvb_frontend
style tuner modules, we must remove the i2c_client interface.
dvb_frontend style tuner modules use i2c_transfer directly on the i2c_adapter.
This change only alters the interface between tuner.ko and the tuner
sub-drivers. The v4l2 / i2c_client interface to tuner.ko remains intact.
This patch adds inline functions tuner_i2c_xfer_send, and tuner_i2c_xfer_recv,
to replace i2c_master_send and i2c_master_recv inside the tuner sub-drivers.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
kernel headers go above subsystem headers
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Move internal structures and debug macros to drivers/media/video/tuner-driver.h
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Create static struct tuner_operations tda8290_tuner_ops
for tda8290 tuning function callback pointers
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Move tuner callback function pointers out of struct tuner, into
struct tuner_operations.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Define tuner release callbacks for mt20xx, tda9887 and tda8290, so that
these drivers can release their own private structures themselves.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Create private data struct for device specific private data.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
otherwise the tuner driver will not accept i.e. the standby
command.
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
This change supplies a more generic version of the tuner callback.
The tuner struct now has a function pointer
int (*tuner_callback) (void *dev, int command, int arg)
additionally to a int config parameter.
both can be set through the TUNER_SET_TYPE_ADDR client call.
Note that the meaning of the parameters depend on the tuner type.
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
This patch contains
- new tuning code for the tda827xa silicon tuner.
- controls the preamplifier of some boards with this tuner.
- support for the Philips Tiger S hybrid DVB-T reference design.
- reworked the saa7134-dvb modulue to get rid of most of the
small board specific functions.
It depends on the changesets:
5119:9e5c364c59bb 5120:2c31f2803f53 and 5121:8b0ffe2a46a7
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
The probing code for tda8290 changes the state of the tda9887 GP ports.
The patch assumes that if probing for tda8290 failed, this must be a
tda9887 and restores its power on defaults.
This should solve the module load order issue with some pinnacle cards.
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|
|
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
This patch
- works around a bug in the I2C bridge that makes the initialization
of the TDA10046 fail on recent LifeView cards
- puts the AGC output to tristate in sleep mode. This is necessary for
recent hybrid cards that switch the AGC via tristateing.
Signed-off-by: Hartmut Hackmann<hartmut.hackmann@t-online.de>
|
|
- Moved MSP_SET_MATRIX to v4l2-common.h
- Fix typos and integer overflows in tea5767.c
- Split old freq field into a tv_freq and a radio_freq. Prevents
that a radio tuner is initialized with a tv frequency or vice versa.
- When switching to radio mode initialize the tuner with the last
used radio frequency (this was already done for the TV mode).
As a result of these changes the tuner module now remembers the
last set radio and TV frequencies, which is what you would expect
to happen.
- Move out of range frequencies to the closest valid frequency as per
v4l2 API spec.
- Fix incorrect initial radio frequency (multiplier is 16000, not 16)
- Add boundary check for out of range frequencies.
- Use new flag to check if the order of the CB and freq. depends on
the last set frequency. That is needed for some tuners or you can
get static as a result. The flag is added for those tuners where I know
that the datasheet indicates that this is necessary.
- For this new check use the last set div value, not the last frequency
as radio frequencies are always much higher due to the 16000 multiplier.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
-#include <media/i2c-compat.h>
+#include "i2c-compat.h"
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
kernel-sync
- Makes V4L compile with kernel 2.4
- em28xx doesn't compile with 2.4 kernels. Additional work is
necessary to make it compile.
Thanks-to: Stefan Leichter <Stefan.Leichter@camLine.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
- Added SECAM L' video standard
- Common std macros moved to videodev2.h
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
- Added support for SECAM L'
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
|
|
* ../linux/include/media/tuner.h:
- Unify whitespaces.
- Fix build warning.
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
|
|
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
|
|
tda9887.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
* ../linux/drivers/media/video/ir-kbd-i2c.c: (get_key_pinnacle),
(ir_attach), (ir_probe):
* ../linux/drivers/media/video/saa7134/saa7134-cards.c:
* ../linux/drivers/media/video/saa7134/saa7134.h:
- Supports the Pinnacle PCTV 110i board, video inputs, and remote.
- Tuning only works with the new tda8290 module (it's a tda8275a)
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
|
|
(tda827xa_tune), (tda8290_tune), (tda8290_init_tuner),
(tda8290_init):
- Strip trailing whitespaces.
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
|
|
- support all possible I2C addresses
- automatic version and address detection
- let i2c bridge stabilize befor use
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
|
|
- Whitespace script improved.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
* tuner.h:
- Set IF of tda8275 according to tv norm.
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
|
|
video std. The code itself to implement it was not made.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
* cx88-video.c: (video_release):
* mt20xx.c: (microtune_init):
* saa7134-video.c: (video_release):
* tda8290.c: (standby), (tda8290_init):
* tda9887.c: (tda9887_set_tvnorm), (tda9887_configure),
(tda9887_command):
* tea5767.c: (set_radio_freq), (tea5767_standby),
(tea5767_tuner_init):
* tuner-core.c: (set_addr), (check_mode), (set_mode),
(tuner_command):
* tuner-simple.c: (default_tuner_init):
* tuner.h:
- New tuner standby API.
|
|
- Removed remaining trailing spaces.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
- Reverted tda8290 patch to correct radio behavior.
* saa7134-boards.c:
- spaces used for indent replaced by tabs.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
saa7134-cards.c
|
|
* lgdt3302.c, lgdt3302_priv.h, or51132.c:
* saa7134-cards.c, saa7134-core.c:
* saa7134-dvb.c, saa7134-i2c.c, saa7134-oss.c:
* saa7134-tvaudio.c, saa7134-video.c:
* tda8290.c, tea5767.c, tuner-simple.c:
- Clean up ALL whitespace using
scripts/strip-trailing-whitespaces.sh
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
- Fix setting frequency on tda8290.
Thanks to Fabien PERROT <perrot1983@yahoo.fr>
|
|
|
|
|
|
|
|
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
|