mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
fix gap handling
gap attribute of 128 will now disable gap
This commit is contained in:
parent
eb81f006e4
commit
fd41904378
@ -423,6 +423,7 @@ static void calc_con(struct ddb_output *output, u32 *con, u32 *con2, u32 flags)
|
|||||||
*con |= 0x810; /* 96 MBit/s and gap */
|
*con |= 0x810; /* 96 MBit/s and gap */
|
||||||
max_bitrate = 96000;
|
max_bitrate = 96000;
|
||||||
}
|
}
|
||||||
|
*con |= 0x10; /* enable gap */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (max_bitrate > 0) {
|
if (max_bitrate > 0) {
|
||||||
@ -4501,8 +4502,10 @@ static ssize_t gap_store(struct device *device, struct device_attribute *attr,
|
|||||||
|
|
||||||
if (sscanf(buf, "%u\n", &val) != 1)
|
if (sscanf(buf, "%u\n", &val) != 1)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (val > 20)
|
if (val > 128)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
if (val == 128)
|
||||||
|
val = 0xffffffff;
|
||||||
dev->port[num].gap = val;
|
dev->port[num].gap = val;
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user