From 5fa08eb28804bc4397cb0aab55f9902d96bebf5c Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Thu, 1 Jun 2017 16:44:56 +0200 Subject: [PATCH] add gain control --- ddbridge/ddbridge-mod.c | 3 +++ include/linux/dvb/mod.h | 1 + 2 files changed, 4 insertions(+) diff --git a/ddbridge/ddbridge-mod.c b/ddbridge/ddbridge-mod.c index 90a4062..236f0da 100644 --- a/ddbridge/ddbridge-mod.c +++ b/ddbridge/ddbridge-mod.c @@ -1521,6 +1521,9 @@ static int mod_prop_proc(struct ddb_mod *mod, struct dtv_property *tvp) case MODULATOR_INPUT_BITRATE: return mod_set_ibitrate(mod, tvp->u.data); + case MODULATOR_GAIN: + return mod_set_vga(mod->port->dev, tvp->u.data); + } return 0; } diff --git a/include/linux/dvb/mod.h b/include/linux/dvb/mod.h index b950197..eeba3e7 100644 --- a/include/linux/dvb/mod.h +++ b/include/linux/dvb/mod.h @@ -29,6 +29,7 @@ struct dvb_mod_channel_params { #define MODULATOR_ATTENUATOR 32 #define MODULATOR_INPUT_BITRATE 33 /* Hz */ #define MODULATOR_PCR_MODE 34 /* 1=pcr correction enabled */ +#define MODULATOR_GAIN 35 #define MODULATOR_OUTPUT_ARI 64 #endif /*_UAPI_DVBMOD_H_*/