Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241857
b: refs/heads/master
c: ad020dc
h: refs/heads/master
i:
  241855: d1566f4
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2011
1 parent bcbf7d7 commit 8737aa3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d351df443b0b324a440b5fd053074562d36a7f5
refs/heads/master: ad020dc2fe9039628cf6cef42cd1b76531ee8411
3 changes: 1 addition & 2 deletions trunk/drivers/media/video/au0828/au0828-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ void au0828_card_setup(struct au0828_dev *dev)
static u8 eeprom[256];
struct tuner_setup tun_setup;
struct v4l2_subdev *sd;
unsigned int mode_mask = T_ANALOG_TV |
T_DIGITAL_TV;
unsigned int mode_mask = T_ANALOG_TV;

dprintk(1, "%s()\n", __func__);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/bt8xx/bttv-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -3616,7 +3616,7 @@ void __devinit bttv_init_tuner(struct bttv *btv)
&btv->c.i2c_adap, "tuner",
0, v4l2_i2c_tuner_addrs(ADDRS_TV_WITH_DEMOD));

tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
tun_setup.mode_mask = T_ANALOG_TV;
tun_setup.type = btv->tuner_type;
tun_setup.addr = addr;

Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/media/video/cx88/cx88-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -3165,9 +3165,7 @@ static void cx88_card_setup(struct cx88_core *core)
{
static u8 eeprom[256];
struct tuner_setup tun_setup;
unsigned int mode_mask = T_RADIO |
T_ANALOG_TV |
T_DIGITAL_TV;
unsigned int mode_mask = T_RADIO | T_ANALOG_TV;

memset(&tun_setup, 0, sizeof(tun_setup));

Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/media/video/saa7134/saa7134-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -7333,9 +7333,7 @@ int saa7134_board_init1(struct saa7134_dev *dev)
static void saa7134_tuner_setup(struct saa7134_dev *dev)
{
struct tuner_setup tun_setup;
unsigned int mode_mask = T_RADIO |
T_ANALOG_TV |
T_DIGITAL_TV;
unsigned int mode_mask = T_RADIO | T_ANALOG_TV;

memset(&tun_setup, 0, sizeof(tun_setup));
tun_setup.tuner_callback = saa7134_tuner_callback;
Expand Down
18 changes: 7 additions & 11 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ static void tuner_lookup(struct i2c_adapter *adap,
device. If other devices appear then we need to
make this test more general. */
else if (*tv == NULL && pos->type != TUNER_TDA9887 &&
(pos->mode_mask & (T_ANALOG_TV | T_DIGITAL_TV)))
(pos->mode_mask & T_ANALOG_TV))
*tv = pos;
}
}
Expand Down Expand Up @@ -565,8 +565,7 @@ static int tuner_probe(struct i2c_client *client,
} else {
/* Default is being tda9887 */
t->type = TUNER_TDA9887;
t->mode_mask = T_RADIO | T_ANALOG_TV |
T_DIGITAL_TV;
t->mode_mask = T_RADIO | T_ANALOG_TV;
goto register_client;
}
break;
Expand Down Expand Up @@ -596,7 +595,7 @@ static int tuner_probe(struct i2c_client *client,
first found TV tuner. */
tuner_lookup(t->i2c->adapter, &radio, &tv);
if (tv == NULL) {
t->mode_mask = T_ANALOG_TV | T_DIGITAL_TV;
t->mode_mask = T_ANALOG_TV;
if (radio == NULL)
t->mode_mask |= T_RADIO;
tuner_dbg("Setting mode_mask to 0x%02x\n", t->mode_mask);
Expand All @@ -607,18 +606,15 @@ static int tuner_probe(struct i2c_client *client,
/* Sets a default mode */
if (t->mode_mask & T_ANALOG_TV)
t->mode = V4L2_TUNER_ANALOG_TV;
else if (t->mode_mask & T_RADIO)
t->mode = V4L2_TUNER_RADIO;
else
t->mode = V4L2_TUNER_DIGITAL_TV;
t->mode = V4L2_TUNER_RADIO;
set_type(client, t->type, t->mode_mask, t->config, t->fe.callback);
list_add_tail(&t->list, &tuner_list);

tuner_info("Tuner %d found with type(s)%s%s%s.\n",
tuner_info("Tuner %d found with type(s)%s%s.\n",
t->type,
t->mode_mask & T_RADIO ? " radio" : "",
t->mode_mask & T_ANALOG_TV ? " TV" : "",
t->mode_mask & T_ANALOG_TV ? " DTV" : "");
t->mode_mask & T_RADIO ? " Radio" : "",
t->mode_mask & T_ANALOG_TV ? " TV" : "");
return 0;
}

Expand Down

0 comments on commit 8737aa3

Please sign in to comment.