diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-05-02 08:42:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:20:50 -0400 |
commit | 416a7aa88300601d6630736836f9798c4079bc16 (patch) | |
tree | 9185eb0a8c3f231f9ab884d9d0aa0965d4d008ff /drivers | |
parent | a26ccc9d76a16580c6800ef0758556c4406a31e0 (diff) |
V4L/DVB (11670): tuner: remove tuner_i2c_address_check
Support for tuners with i2c addresses >= 0x65 is dropped since no tuners
with addresses in the range 0x65-0x6f have been found.
This patch removes addresses 0x65-0x6f from the list of tuner probe addresses,
it removes the kernel warning that warned if addresses in this range appeared,
and it removed a hack for the cx88 that is no longer needed now that the
tuner address range is reduced.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/tuner-core.c | 27 | ||||
-rw-r--r-- | drivers/media/video/v4l2-common.c | 3 |
2 files changed, 1 insertions, 29 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 78c377a399cb..1dac524fc8f1 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -309,32 +309,6 @@ static void set_freq(struct i2c_client *c, unsigned long freq) | |||
309 | } | 309 | } |
310 | } | 310 | } |
311 | 311 | ||
312 | static void tuner_i2c_address_check(struct tuner *t) | ||
313 | { | ||
314 | if ((t->type == UNSET || t->type == TUNER_ABSENT) || | ||
315 | ((t->i2c->addr < 0x64) || (t->i2c->addr > 0x6f))) | ||
316 | return; | ||
317 | |||
318 | /* We already know that the XC5000 can only be located at | ||
319 | * i2c address 0x61, 0x62, 0x63 or 0x64 */ | ||
320 | if ((t->type == TUNER_XC5000) && | ||
321 | ((t->i2c->addr <= 0x64)) && (t->i2c->addr >= 0x61)) | ||
322 | return; | ||
323 | |||
324 | tuner_warn("====================== WARNING! ======================\n"); | ||
325 | tuner_warn("Support for tuners in i2c address range 0x64 thru 0x6f\n"); | ||
326 | tuner_warn("will soon be dropped. This message indicates that your\n"); | ||
327 | tuner_warn("hardware has a %s tuner at i2c address 0x%02x.\n", | ||
328 | t->name, t->i2c->addr); | ||
329 | tuner_warn("To ensure continued support for your device, please\n"); | ||
330 | tuner_warn("send a copy of this message, along with full dmesg\n"); | ||
331 | tuner_warn("output to v4l-dvb-maintainer@linuxtv.org\n"); | ||
332 | tuner_warn("Please use subject line: \"obsolete tuner i2c address.\"\n"); | ||
333 | tuner_warn("driver: %s, addr: 0x%02x, type: %d (%s)\n", | ||
334 | t->i2c->adapter->name, t->i2c->addr, t->type, t->name); | ||
335 | tuner_warn("====================== WARNING! ======================\n"); | ||
336 | } | ||
337 | |||
338 | static struct xc5000_config xc5000_cfg; | 312 | static struct xc5000_config xc5000_cfg; |
339 | 313 | ||
340 | static void set_type(struct i2c_client *c, unsigned int type, | 314 | static void set_type(struct i2c_client *c, unsigned int type, |
@@ -490,7 +464,6 @@ static void set_type(struct i2c_client *c, unsigned int type, | |||
490 | tuner_dbg("%s %s I2C addr 0x%02x with type %d used for 0x%02x\n", | 464 | tuner_dbg("%s %s I2C addr 0x%02x with type %d used for 0x%02x\n", |
491 | c->adapter->name, c->driver->driver.name, c->addr << 1, type, | 465 | c->adapter->name, c->driver->driver.name, c->addr << 1, type, |
492 | t->mode_mask); | 466 | t->mode_mask); |
493 | tuner_i2c_address_check(t); | ||
494 | return; | 467 | return; |
495 | 468 | ||
496 | attach_failed: | 469 | attach_failed: |
diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c index f576ef66b807..e32de9e9b0f3 100644 --- a/drivers/media/video/v4l2-common.c +++ b/drivers/media/video/v4l2-common.c | |||
@@ -897,8 +897,7 @@ const unsigned short *v4l2_i2c_tuner_addrs(enum v4l2_i2c_tuner_type type) | |||
897 | }; | 897 | }; |
898 | static const unsigned short tv_addrs[] = { | 898 | static const unsigned short tv_addrs[] = { |
899 | 0x42, 0x43, 0x4a, 0x4b, /* tda8290 */ | 899 | 0x42, 0x43, 0x4a, 0x4b, /* tda8290 */ |
900 | 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, | 900 | 0x60, 0x61, 0x62, 0x63, 0x64, |
901 | 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, | ||
902 | I2C_CLIENT_END | 901 | I2C_CLIENT_END |
903 | }; | 902 | }; |
904 | 903 | ||