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

fix for V2

This commit is contained in:
Ralph Metzler 2016-08-04 19:40:55 +02:00
parent 38f0e9611e
commit a98a7c95a8

View File

@ -1070,6 +1070,7 @@ static int mod_set_modulation(struct ddb *dev, int chan, enum fe_modulation mod)
dev->mod[chan].modulation = mod;
dev->mod[chan].obitrate = 0x0061072787900000ULL * (mod + 3);
dev->mod[chan].ibitrate = dev->mod[chan].obitrate;
if (dev->link[0].info->version < 2)
ddbwritel(dev, qamtab[mod], CHANNEL_SETTINGS(chan));
return 0;
}
@ -1486,7 +1487,6 @@ static int mod_ioctl_2(struct file *file, unsigned int cmd, void *parg)
int res;
u32 ri;
pr_info("set modulation\n");
res = mod_set_modulation(dev, output->nr, cp->modulation);
if (res)
return res;