From 3285b6ade0ef3d15af8ec7d6eb9ce13110ed000b Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Mon, 12 Jun 2017 14:23:35 +0200 Subject: [PATCH] modulator type 1 has no vga --- ddbridge/ddbridge-mod.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ddbridge/ddbridge-mod.c b/ddbridge/ddbridge-mod.c index eb3c9b9..7294a9f 100644 --- a/ddbridge/ddbridge-mod.c +++ b/ddbridge/ddbridge-mod.c @@ -1528,8 +1528,9 @@ static int mod_prop_proc(struct ddb_mod *mod, struct dtv_property *tvp) return mod_set_ibitrate(mod, tvp->u.data); case MODULATOR_GAIN: - return mod_set_vga(mod->port->dev, tvp->u.data); - + if (mod->port->dev->link[0].info->version == 2) + return mod_set_vga(mod->port->dev, tvp->u.data); + return -EINVAL; } return 0; }