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

reject too small symbol rates

This commit is contained in:
Ralph Metzler 2017-12-11 23:02:15 +01:00
parent c75a7892d9
commit 2d41161cb4

View File

@ -256,6 +256,8 @@ static int mod_set_symbolrate(struct ddb_mod *mod, u32 srate)
{ {
struct ddb *dev = mod->port->dev; struct ddb *dev = mod->port->dev;
if (srate < 1000000)
return -EINVAL;
if (dev->link[0].info->version < 2) { if (dev->link[0].info->version < 2) {
if (srate != 6900000) if (srate != 6900000)
return -EINVAL; return -EINVAL;