Hi Antti,
Mauro asked me to look into LNA as well, in particular how this could be done
on the analog side as well.
While reading through this patch I noticed that the new property was added to
dtv_property_process_set, but not to dtv_property_process_get. Can you look
into that and add 'get' support for this property?
Thanks!
Hans
On Thu September 27 2012 19:28:09 Mauro Carvalho Chehab wrote:
> This is an automatic generated email to let you know that the following patch
> were queued at the
> http://git.linuxtv.org/media_tree.git tree:
>
> Subject: [media] add LNA support for DVB API
> Author: Antti Palosaari <[email protected]>
> Date: Wed Jul 11 21:54:50 2012 -0300
>
> Signed-off-by: Antti Palosaari <[email protected]>
> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
>
> drivers/media/dvb-core/dvb_frontend.c | 5 +++++
> drivers/media/dvb-core/dvb_frontend.h | 1 +
> include/linux/dvb/frontend.h | 4 +++-
> 3 files changed, 9 insertions(+), 1 deletions(-)
>
> ---
>
> http://git.linuxtv.org/media_tree.git?a=commitdiff;h=8a2697abc1f0388d44b78ac109d9f03ec75c2683
>
> diff --git a/drivers/media/dvb-core/dvb_frontend.c
> b/drivers/media/dvb-core/dvb_frontend.c
> index 1f3b16d..8f58f24 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]
> = {
>
> _DTV_CMD(DTV_STREAM_ID, 1, 0),
> _DTV_CMD(DTV_DVBT2_PLP_ID_LEGACY, 1, 0),
> + _DTV_CMD(DTV_LNA, 1, 0),
>
> /* Get */
> _DTV_CMD(DTV_DISEQC_SLAVE_REPLY, 0, 1),
> @@ -1730,6 +1731,10 @@ static int dtv_property_process_set(struct
> dvb_frontend *fe,
> case DTV_INTERLEAVING:
> c->interleaving = tvp->u.data;
> break;
> + case DTV_LNA:
> + if (fe->ops.set_lna)
> + r = fe->ops.set_lna(fe, tvp->u.data);
> + break;
>
> /* ISDB-T Support here */
> case DTV_ISDBT_PARTIAL_RECEPTION:
> diff --git a/drivers/media/dvb-core/dvb_frontend.h
> b/drivers/media/dvb-core/dvb_frontend.h
> index 33996a0..44a445c 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 {
> int (*dishnetwork_send_legacy_command)(struct dvb_frontend* fe,
> unsigned long cmd);
> int (*i2c_gate_ctrl)(struct dvb_frontend* fe, int enable);
> int (*ts_bus_ctrl)(struct dvb_frontend* fe, int acquire);
> + int (*set_lna)(struct dvb_frontend *, int);
>
> /* These callbacks are for devices that implement their own
> * tuning algorithms, rather than a simple swzigzag
> diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h
> index 57e2b17..c12d452 100644
> --- a/include/linux/dvb/frontend.h
> +++ b/include/linux/dvb/frontend.h
> @@ -363,8 +363,9 @@ struct dvb_frontend_event {
> #define DTV_ATSCMH_SCCC_CODE_MODE_D 59
>
> #define DTV_INTERLEAVING 60
> +#define DTV_LNA 61
>
> -#define DTV_MAX_COMMAND DTV_INTERLEAVING
> +#define DTV_MAX_COMMAND DTV_LNA
>
> typedef enum fe_pilot {
> PILOT_ON,
> @@ -438,6 +439,7 @@ enum atscmh_rs_code_mode {
> };
>
> #define NO_STREAM_ID_FILTER (~0U)
> +#define LNA_AUTO (~0U)
>
> struct dtv_cmds_h {
> char *name; /* A display name for debugging purposes */
>
> _______________________________________________
> linuxtv-commits mailing list
> [email protected]
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html