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

New API: keep setting MODULATOR_INPUT_BITRATE compatible with the old way

This commit is contained in:
Marcin Kaluza 2017-10-24 11:50:52 +02:00
parent 8b9a107e7f
commit a47b625139

View File

@ -1541,7 +1541,10 @@ static int mod_prop_proc(struct ddb_mod *mod, struct dtv_property *tvp)
return mod_set_attenuator(mod->port->dev, tvp->u.data); return mod_set_attenuator(mod->port->dev, tvp->u.data);
case MODULATOR_INPUT_BITRATE: case MODULATOR_INPUT_BITRATE:
return mod_set_ibitrate(mod, ((u64)tvp->u.data) << 32); if ((tvp->u.data64 & 0xFFFFFFFF00000000ULL) == 0)
return mod_set_ibitrate(mod, ((u64)tvp->u.data) << 32);
else
return mod_set_ibitrate(mod, tvp->u.data64);
case MODULATOR_GAIN: case MODULATOR_GAIN:
if (mod->port->dev->link[0].info->version == 2) if (mod->port->dev->link[0].info->version == 2)