Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271707
b: refs/heads/master
c: 8513e14
h: refs/heads/master
i:
  271705: 4dabc98
  271703: 20864b8
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Sep 3, 2011
1 parent fa8ae9b commit f083b33
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 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: f2d0c1c625bc79aa524b52eea2de4262a9be1d90
refs/heads/master: 8513e14457ad05c517f6f6f520c270a6eebf0472
1 change: 1 addition & 0 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ struct dvb_tuner_ops {

int (*get_frequency)(struct dvb_frontend *fe, u32 *frequency);
int (*get_bandwidth)(struct dvb_frontend *fe, u32 *bandwidth);
int (*get_if_frequency)(struct dvb_frontend *fe, u32 *frequency);

#define TUNER_STATUS_LOCKED 1
#define TUNER_STATUS_STEREO 2
Expand Down
10 changes: 9 additions & 1 deletion trunk/drivers/media/dvb/frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -6211,14 +6211,22 @@ static int drxk_set_parameters(struct dvb_frontend *fe,
u32 IF;

dprintk(1, "\n");

if (!fe->ops.tuner_ops.get_if_frequency) {
printk(KERN_ERR
"drxk: Error: get_if_frequency() not defined at tuner. Can't work without it!\n");
return -EINVAL;
}


if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 1);
if (fe->ops.tuner_ops.set_params)
fe->ops.tuner_ops.set_params(fe, p);
if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 0);
state->param = *p;
fe->ops.tuner_ops.get_frequency(fe, &IF);
fe->ops.tuner_ops.get_if_frequency(fe, &IF);
Start(state, 0, IF);

/* printk(KERN_DEBUG "drxk: %s IF=%d done\n", __func__, IF); */
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/frontends/tda18271c2dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ static int GetSignalStrength(s32 *pSignalStrength, u32 RFAgc, u32 IFAgc)
}
#endif

static int get_frequency(struct dvb_frontend *fe, u32 *frequency)
static int get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
{
struct tda_state *state = fe->tuner_priv;

Expand All @@ -1222,7 +1222,7 @@ static struct dvb_tuner_ops tuner_ops = {
.sleep = sleep,
.set_params = set_params,
.release = release,
.get_frequency = get_frequency,
.get_if_frequency = get_if_frequency,
.get_bandwidth = get_bandwidth,
};

Expand Down

0 comments on commit f083b33

Please sign in to comment.