Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65823
b: refs/heads/master
c: 293197c
h: refs/heads/master
i:
  65821: e8f0cfa
  65819: d047230
  65815: 365b0fe
  65807: 964be68
  65791: c7fb569
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 03a6bfe commit c3ffa06
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b930e1d851c3ffbf82127bd0e4d72ffe94d4b7f2
refs/heads/master: 293197cd0f34eb6bfb5492a63a878575b69e9df4
22 changes: 22 additions & 0 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,27 @@ static void set_freq(struct i2c_client *c, unsigned long freq)
}
}

static void tuner_i2c_address_check(struct tuner *t)
{
if ((t->type == UNSET || t->type == TUNER_ABSENT) ||
((t->i2c.addr < 0x64) || (t->i2c.addr > 0x6f)))
return;

tuner_warn("====================== WARNING! ======================\n");
tuner_warn("Support for tuners in i2c address range 0x64 thru 0x6f\n");
tuner_warn("will soon be dropped. This message indicates that your\n");
tuner_warn("hardware has a %s tuner at i2c address 0x%02x.\n",
t->i2c.name, t->i2c.addr);
tuner_warn("To ensure continued support for your device, please\n");
tuner_warn("send a copy of this message, along with full dmesg\n");
tuner_warn("output to v4l-dvb-maintainer@linuxtv.org\n");
tuner_warn("Please use subject line: \"obsolete tuner i2c address.\"\n");
tuner_warn("driver: %s, addr: 0x%02x, type: %d (%s)\n",
t->i2c.adapter->name, t->i2c.addr, t->type,
tuners[t->type].name);
tuner_warn("====================== WARNING! ======================\n");
}

static void set_type(struct i2c_client *c, unsigned int type,
unsigned int new_mode_mask, unsigned int new_config,
int (*tuner_callback) (void *dev, int command,int arg))
Expand Down Expand Up @@ -244,6 +265,7 @@ static void set_type(struct i2c_client *c, unsigned int type,
tuner_dbg("%s %s I2C addr 0x%02x with type %d used for 0x%02x\n",
c->adapter->name, c->driver->driver.name, c->addr << 1, type,
t->mode_mask);
tuner_i2c_address_check(t);
}

/*
Expand Down

0 comments on commit c3ffa06

Please sign in to comment.