aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-26 13:02:20 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 06:47:22 -0500
commitd42c08695a3f636feb844e15efd6b653fca84e44 (patch)
treea48f1577dafc309b1f1a3ff6815ca7e489b419d8 /drivers/media/dvb/frontends
parentd8f7cc28464bc07dbf055b062ef1dec2cda07032 (diff)
[media] or51211: convert set_fontend to use DVBv5 parameters
Instead of using dvb_frontend_parameters struct, that were designed for a subset of the supported standards, use the DVBv5 cache information. Also, fill the supported delivery systems at dvb_frontend_ops struct. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r--drivers/media/dvb/frontends/or51211.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/or51211.c b/drivers/media/dvb/frontends/or51211.c
index 2f2c7f88a3a6..d2b52e555428 100644
--- a/drivers/media/dvb/frontends/or51211.c
+++ b/drivers/media/dvb/frontends/or51211.c
@@ -218,13 +218,13 @@ static int or51211_setmode(struct dvb_frontend* fe, int mode)
218 return 0; 218 return 0;
219} 219}
220 220
221static int or51211_set_parameters(struct dvb_frontend* fe, 221static int or51211_set_parameters(struct dvb_frontend *fe)
222 struct dvb_frontend_parameters *param)
223{ 222{
223 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
224 struct or51211_state* state = fe->demodulator_priv; 224 struct or51211_state* state = fe->demodulator_priv;
225 225
226 /* Change only if we are actually changing the channel */ 226 /* Change only if we are actually changing the channel */
227 if (state->current_frequency != param->frequency) { 227 if (state->current_frequency != p->frequency) {
228 if (fe->ops.tuner_ops.set_params) { 228 if (fe->ops.tuner_ops.set_params) {
229 fe->ops.tuner_ops.set_params(fe); 229 fe->ops.tuner_ops.set_params(fe);
230 if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0); 230 if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0);
@@ -234,7 +234,7 @@ static int or51211_set_parameters(struct dvb_frontend* fe,
234 or51211_setmode(fe,0); 234 or51211_setmode(fe,0);
235 235
236 /* Update current frequency */ 236 /* Update current frequency */
237 state->current_frequency = param->frequency; 237 state->current_frequency = p->frequency;
238 } 238 }
239 return 0; 239 return 0;
240} 240}
@@ -544,7 +544,7 @@ struct dvb_frontend* or51211_attach(const struct or51211_config* config,
544} 544}
545 545
546static struct dvb_frontend_ops or51211_ops = { 546static struct dvb_frontend_ops or51211_ops = {
547 547 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B },
548 .info = { 548 .info = {
549 .name = "Oren OR51211 VSB Frontend", 549 .name = "Oren OR51211 VSB Frontend",
550 .type = FE_ATSC, 550 .type = FE_ATSC,
@@ -561,7 +561,7 @@ static struct dvb_frontend_ops or51211_ops = {
561 .init = or51211_init, 561 .init = or51211_init,
562 .sleep = or51211_sleep, 562 .sleep = or51211_sleep,
563 563
564 .set_frontend_legacy = or51211_set_parameters, 564 .set_frontend = or51211_set_parameters,
565 .get_tune_settings = or51211_get_tune_settings, 565 .get_tune_settings = or51211_get_tune_settings,
566 566
567 .read_status = or51211_read_status, 567 .read_status = or51211_read_status,