Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192772
b: refs/heads/master
c: 403c34f
h: refs/heads/master
v: v3
  • Loading branch information
Abylay Ospan authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 107455e commit 56013af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 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: 7fc8709e4d7230ab640a91b9aef8fbd0f7c1488b
refs/heads/master: 403c34f6bbc095f9c8b2e25becd65c9c3d159080
16 changes: 15 additions & 1 deletion trunk/drivers/media/dvb/frontends/stv0900_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ static enum dvbfe_search stv0900_search(struct dvb_frontend *fe,
struct dtv_frontend_properties *c = &fe->dtv_property_cache;

struct stv0900_search_params p_search;
struct stv0900_signal_info p_result;
struct stv0900_signal_info p_result = intp->result[demod];

enum fe_stv0900_error error = STV0900_NO_ERROR;

Expand Down Expand Up @@ -1842,6 +1842,19 @@ static void stv0900_release(struct dvb_frontend *fe)
kfree(state);
}

static int stv0900_get_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
{
struct stv0900_state *state = fe->demodulator_priv;
struct stv0900_internal *intp = state->internal;
enum fe_stv0900_demod_num demod = state->demod;
struct stv0900_signal_info p_result = intp->result[demod];

p->frequency = p_result.locked ? p_result.frequency : 0;
p->u.qpsk.symbol_rate = p_result.locked ? p_result.symbol_rate : 0;
return 0;
}

static struct dvb_frontend_ops stv0900_ops = {

.info = {
Expand All @@ -1862,6 +1875,7 @@ static struct dvb_frontend_ops stv0900_ops = {
},
.release = stv0900_release,
.init = stv0900_init,
.get_frontend = stv0900_get_frontend,
.get_frontend_algo = stv0900_frontend_algo,
.i2c_gate_ctrl = stv0900_i2c_gate_ctrl,
.diseqc_send_master_cmd = stv0900_send_master_cmd,
Expand Down

0 comments on commit 56013af

Please sign in to comment.