1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

modulator type 1 has no vga

This commit is contained in:
Ralph Metzler 2017-06-12 14:23:35 +02:00
parent e6dd33deec
commit 3285b6ade0

View File

@ -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); return mod_set_ibitrate(mod, tvp->u.data);
case MODULATOR_GAIN: case MODULATOR_GAIN:
if (mod->port->dev->link[0].info->version == 2)
return mod_set_vga(mod->port->dev, tvp->u.data); return mod_set_vga(mod->port->dev, tvp->u.data);
return -EINVAL;
} }
return 0; return 0;
} }