mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
backwards compatibility: set all frequencies of V2 card if base frequency is set
This commit is contained in:
parent
49a05e75af
commit
7f746f0219
@ -1542,7 +1542,18 @@ int ddbridge_mod_do_ioctl(struct file *file, unsigned int cmd, void *parg)
|
|||||||
if (set_base_frequency(dev, mp->base_frequency))
|
if (set_base_frequency(dev, mp->base_frequency))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
} else {
|
} else {
|
||||||
|
int i, streams = dev->link[0].info->port_num;
|
||||||
|
|
||||||
dev->mod_base.frequency = mp->base_frequency;
|
dev->mod_base.frequency = mp->base_frequency;
|
||||||
|
for (i = 0; i < streams; i++) {
|
||||||
|
struct ddb_mod *mod = &dev->mod[i];
|
||||||
|
|
||||||
|
mod->port = &dev->port[i];
|
||||||
|
mod_set_modulation(mod, QAM_256);
|
||||||
|
mod_set_symbolrate(mod, 6900000);
|
||||||
|
mod_set_frequency(mod, dev->mod_base.frequency +
|
||||||
|
i * 8000000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mod_set_attenuator(dev, mp->attenuator);
|
mod_set_attenuator(dev, mp->attenuator);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user