diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-08-27 20:24:27 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-08-27 20:24:27 -0400 |
commit | d32dfd5fb0c02d8342e70ce8cb93c967c885cd30 (patch) | |
tree | 1a524c2225a35b0d53ae8b852ea0549b840dfcae /linux/drivers/media/video/tuner-core.c | |
parent | c7e7e695b48701f15a1f7a4003447f30139657f5 (diff) | |
download | mediapointer-dvb-s2-d32dfd5fb0c02d8342e70ce8cb93c967c885cd30.tar.gz mediapointer-dvb-s2-d32dfd5fb0c02d8342e70ce8cb93c967c885cd30.tar.bz2 |
tea5767: convert from tuner sub-driver into dvb_frontend module
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>
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 582d0280b..007e5380b 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -26,6 +26,7 @@ #include "mt20xx.h" #include "tda8290.h" #include "tea5761.h" +#include "tea5767.h" #define UNSET (-1U) @@ -289,7 +290,7 @@ static void set_type(struct i2c_client *c, unsigned int type, break; } case TUNER_TEA5767: - if (tea5767_tuner_init(t) == EINVAL) { + if (tea5767_attach(&t->fe, t->i2c.adapter, t->i2c.addr) == NULL) { t->type = TUNER_ABSENT; t->mode_mask = T_UNINITIALIZED; return; @@ -646,7 +647,7 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, } break; case 0x60: - if (tea5767_autodetection(t) != EINVAL) { + if (tea5767_autodetection(t->i2c.adapter, t->i2c.addr) != EINVAL) { t->type = TUNER_TEA5767; t->mode_mask = T_RADIO; t->mode = T_STANDBY; |