diff options
author | Antti Palosaari <crope@iki.fi> | 2012-07-11 20:54:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-27 13:28:09 -0400 |
commit | 8a2697abc1f0388d44b78ac109d9f03ec75c2683 (patch) | |
tree | 3bcfc0cdd8ffc9a08f6615d76abf3950ac6ce388 /drivers/media/dvb-core | |
parent | 48caa6f12902dfc08acfc54e417f845dc0477664 (diff) |
[media] add LNA support for DVB API
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r-- | drivers/media/dvb-core/dvb_frontend.c | 5 | ||||
-rw-r--r-- | drivers/media/dvb-core/dvb_frontend.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index 1f3b16db2036..8f58f241c10d 100644 --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c | |||
@@ -1022,6 +1022,7 @@ static struct dtv_cmds_h dtv_cmds[DTV_MAX_COMMAND + 1] = { | |||
1022 | 1022 | ||
1023 | _DTV_CMD(DTV_STREAM_ID, 1, 0), | 1023 | _DTV_CMD(DTV_STREAM_ID, 1, 0), |
1024 | _DTV_CMD(DTV_DVBT2_PLP_ID_LEGACY, 1, 0), | 1024 | _DTV_CMD(DTV_DVBT2_PLP_ID_LEGACY, 1, 0), |
1025 | _DTV_CMD(DTV_LNA, 1, 0), | ||
1025 | 1026 | ||
1026 | /* Get */ | 1027 | /* Get */ |
1027 | _DTV_CMD(DTV_DISEQC_SLAVE_REPLY, 0, 1), | 1028 | _DTV_CMD(DTV_DISEQC_SLAVE_REPLY, 0, 1), |
@@ -1730,6 +1731,10 @@ static int dtv_property_process_set(struct dvb_frontend *fe, | |||
1730 | case DTV_INTERLEAVING: | 1731 | case DTV_INTERLEAVING: |
1731 | c->interleaving = tvp->u.data; | 1732 | c->interleaving = tvp->u.data; |
1732 | break; | 1733 | break; |
1734 | case DTV_LNA: | ||
1735 | if (fe->ops.set_lna) | ||
1736 | r = fe->ops.set_lna(fe, tvp->u.data); | ||
1737 | break; | ||
1733 | 1738 | ||
1734 | /* ISDB-T Support here */ | 1739 | /* ISDB-T Support here */ |
1735 | case DTV_ISDBT_PARTIAL_RECEPTION: | 1740 | case DTV_ISDBT_PARTIAL_RECEPTION: |
diff --git a/drivers/media/dvb-core/dvb_frontend.h b/drivers/media/dvb-core/dvb_frontend.h index 33996a01cd63..44a445cee74f 100644 --- a/drivers/media/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb-core/dvb_frontend.h | |||
@@ -303,6 +303,7 @@ struct dvb_frontend_ops { | |||
303 | int (*dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned long cmd); | 303 | int (*dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned long cmd); |
304 | int (*i2c_gate_ctrl)(struct dvb_frontend* fe, int enable); | 304 | int (*i2c_gate_ctrl)(struct dvb_frontend* fe, int enable); |
305 | int (*ts_bus_ctrl)(struct dvb_frontend* fe, int acquire); | 305 | int (*ts_bus_ctrl)(struct dvb_frontend* fe, int acquire); |
306 | int (*set_lna)(struct dvb_frontend *, int); | ||
306 | 307 | ||
307 | /* These callbacks are for devices that implement their own | 308 | /* These callbacks are for devices that implement their own |
308 | * tuning algorithms, rather than a simple swzigzag | 309 | * tuning algorithms, rather than a simple swzigzag |