diff options
| -rw-r--r-- | drivers/media/dvb-core/dvb_frontend.c | 5 | ||||
| -rw-r--r-- | drivers/media/dvb-core/dvb_frontend.h | 1 | ||||
| -rw-r--r-- | include/linux/dvb/frontend.h | 4 |
3 files changed, 9 insertions, 1 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 |
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h index 57e2b1763109..c12d452cb40d 100644 --- a/include/linux/dvb/frontend.h +++ b/include/linux/dvb/frontend.h | |||
| @@ -363,8 +363,9 @@ struct dvb_frontend_event { | |||
| 363 | #define DTV_ATSCMH_SCCC_CODE_MODE_D 59 | 363 | #define DTV_ATSCMH_SCCC_CODE_MODE_D 59 |
| 364 | 364 | ||
| 365 | #define DTV_INTERLEAVING 60 | 365 | #define DTV_INTERLEAVING 60 |
| 366 | #define DTV_LNA 61 | ||
| 366 | 367 | ||
| 367 | #define DTV_MAX_COMMAND DTV_INTERLEAVING | 368 | #define DTV_MAX_COMMAND DTV_LNA |
| 368 | 369 | ||
| 369 | typedef enum fe_pilot { | 370 | typedef enum fe_pilot { |
| 370 | PILOT_ON, | 371 | PILOT_ON, |
| @@ -438,6 +439,7 @@ enum atscmh_rs_code_mode { | |||
| 438 | }; | 439 | }; |
| 439 | 440 | ||
| 440 | #define NO_STREAM_ID_FILTER (~0U) | 441 | #define NO_STREAM_ID_FILTER (~0U) |
| 442 | #define LNA_AUTO (~0U) | ||
| 441 | 443 | ||
| 442 | struct dtv_cmds_h { | 444 | struct dtv_cmds_h { |
| 443 | char *name; /* A display name for debugging purposes */ | 445 | char *name; /* A display name for debugging purposes */ |
