diff options
-rw-r--r-- | drivers/media/video/tuner-core.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index baeae28f283..f505f43bb12 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -145,6 +145,27 @@ static void set_freq(struct i2c_client *c, unsigned long freq) | |||
145 | } | 145 | } |
146 | } | 146 | } |
147 | 147 | ||
148 | static void tuner_i2c_address_check(struct tuner *t) | ||
149 | { | ||
150 | if ((t->type == UNSET || t->type == TUNER_ABSENT) || | ||
151 | ((t->i2c.addr < 0x64) || (t->i2c.addr > 0x6f))) | ||
152 | return; | ||
153 | |||
154 | tuner_warn("====================== WARNING! ======================\n"); | ||
155 | tuner_warn("Support for tuners in i2c address range 0x64 thru 0x6f\n"); | ||
156 | tuner_warn("will soon be dropped. This message indicates that your\n"); | ||
157 | tuner_warn("hardware has a %s tuner at i2c address 0x%02x.\n", | ||
158 | t->i2c.name, t->i2c.addr); | ||
159 | tuner_warn("To ensure continued support for your device, please\n"); | ||
160 | tuner_warn("send a copy of this message, along with full dmesg\n"); | ||
161 | tuner_warn("output to v4l-dvb-maintainer@linuxtv.org\n"); | ||
162 | tuner_warn("Please use subject line: \"obsolete tuner i2c address.\"\n"); | ||
163 | tuner_warn("driver: %s, addr: 0x%02x, type: %d (%s)\n", | ||
164 | t->i2c.adapter->name, t->i2c.addr, t->type, | ||
165 | tuners[t->type].name); | ||
166 | tuner_warn("====================== WARNING! ======================\n"); | ||
167 | } | ||
168 | |||
148 | static void set_type(struct i2c_client *c, unsigned int type, | 169 | static void set_type(struct i2c_client *c, unsigned int type, |
149 | unsigned int new_mode_mask, unsigned int new_config, | 170 | unsigned int new_mode_mask, unsigned int new_config, |
150 | int (*tuner_callback) (void *dev, int command,int arg)) | 171 | int (*tuner_callback) (void *dev, int command,int arg)) |
@@ -244,6 +265,7 @@ static void set_type(struct i2c_client *c, unsigned int type, | |||
244 | tuner_dbg("%s %s I2C addr 0x%02x with type %d used for 0x%02x\n", | 265 | tuner_dbg("%s %s I2C addr 0x%02x with type %d used for 0x%02x\n", |
245 | c->adapter->name, c->driver->driver.name, c->addr << 1, type, | 266 | c->adapter->name, c->driver->driver.name, c->addr << 1, type, |
246 | t->mode_mask); | 267 | t->mode_mask); |
268 | tuner_i2c_address_check(t); | ||
247 | } | 269 | } |
248 | 270 | ||
249 | /* | 271 | /* |