aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-26 13:05:43 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 06:47:32 -0500
commit102a820d36c94b489a40549f9c4cf0dc84a09ec9 (patch)
tree5810b9d43e2936d83d3f9ddc22437d328619b269
parentfd12984456d42bf917eb9c84e47666bd9bf33fb5 (diff)
[media] s55h1411: 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>
-rw-r--r--drivers/media/dvb/frontends/s5h1411.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/dvb/frontends/s5h1411.c b/drivers/media/dvb/frontends/s5h1411.c
index cb221aa95ce5..08f568c54f4d 100644
--- a/drivers/media/dvb/frontends/s5h1411.c
+++ b/drivers/media/dvb/frontends/s5h1411.c
@@ -585,9 +585,9 @@ static int s5h1411_register_reset(struct dvb_frontend *fe)
585} 585}
586 586
587/* Talk to the demod, set the FEC, GUARD, QAM settings etc */ 587/* Talk to the demod, set the FEC, GUARD, QAM settings etc */
588static int s5h1411_set_frontend(struct dvb_frontend *fe, 588static int s5h1411_set_frontend(struct dvb_frontend *fe)
589 struct dvb_frontend_parameters *p)
590{ 589{
590 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
591 struct s5h1411_state *state = fe->demodulator_priv; 591 struct s5h1411_state *state = fe->demodulator_priv;
592 592
593 dprintk("%s(frequency=%d)\n", __func__, p->frequency); 593 dprintk("%s(frequency=%d)\n", __func__, p->frequency);
@@ -596,7 +596,7 @@ static int s5h1411_set_frontend(struct dvb_frontend *fe,
596 596
597 state->current_frequency = p->frequency; 597 state->current_frequency = p->frequency;
598 598
599 s5h1411_enable_modulation(fe, p->u.vsb.modulation); 599 s5h1411_enable_modulation(fe, p->modulation);
600 600
601 if (fe->ops.tuner_ops.set_params) { 601 if (fe->ops.tuner_ops.set_params) {
602 if (fe->ops.i2c_gate_ctrl) 602 if (fe->ops.i2c_gate_ctrl)
@@ -841,12 +841,12 @@ static int s5h1411_read_ber(struct dvb_frontend *fe, u32 *ber)
841} 841}
842 842
843static int s5h1411_get_frontend(struct dvb_frontend *fe, 843static int s5h1411_get_frontend(struct dvb_frontend *fe,
844 struct dvb_frontend_parameters *p) 844 struct dtv_frontend_properties *p)
845{ 845{
846 struct s5h1411_state *state = fe->demodulator_priv; 846 struct s5h1411_state *state = fe->demodulator_priv;
847 847
848 p->frequency = state->current_frequency; 848 p->frequency = state->current_frequency;
849 p->u.vsb.modulation = state->current_modulation; 849 p->modulation = state->current_modulation;
850 850
851 return 0; 851 return 0;
852} 852}
@@ -915,7 +915,7 @@ error:
915EXPORT_SYMBOL(s5h1411_attach); 915EXPORT_SYMBOL(s5h1411_attach);
916 916
917static struct dvb_frontend_ops s5h1411_ops = { 917static struct dvb_frontend_ops s5h1411_ops = {
918 918 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B },
919 .info = { 919 .info = {
920 .name = "Samsung S5H1411 QAM/8VSB Frontend", 920 .name = "Samsung S5H1411 QAM/8VSB Frontend",
921 .type = FE_ATSC, 921 .type = FE_ATSC,
@@ -928,8 +928,8 @@ static struct dvb_frontend_ops s5h1411_ops = {
928 .init = s5h1411_init, 928 .init = s5h1411_init,
929 .sleep = s5h1411_sleep, 929 .sleep = s5h1411_sleep,
930 .i2c_gate_ctrl = s5h1411_i2c_gate_ctrl, 930 .i2c_gate_ctrl = s5h1411_i2c_gate_ctrl,
931 .set_frontend_legacy = s5h1411_set_frontend, 931 .set_frontend = s5h1411_set_frontend,
932 .get_frontend_legacy = s5h1411_get_frontend, 932 .get_frontend = s5h1411_get_frontend,
933 .get_tune_settings = s5h1411_get_tune_settings, 933 .get_tune_settings = s5h1411_get_tune_settings,
934 .read_status = s5h1411_read_status, 934 .read_status = s5h1411_read_status,
935 .read_ber = s5h1411_read_ber, 935 .read_ber = s5h1411_read_ber,