transceiver: uhd: allow underrun flag to reset during timing alignment
Allowing the underrun flag to reset will prevent a single event from causing large jumps in the transmit latency threshold. This should keep unreasonable timing latencies from occurring (e.g. latencies of 20+ frames). git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3981 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
parent
2173abfe56
commit
221f23ee44
|
@ -705,10 +705,10 @@ int uhd_device::writeSamples(short *buf, int len, bool *underrun,
|
|||
|
||||
if (drop_cnt == 1) {
|
||||
LOG(DEBUG) << "Aligning transmitter: stop burst";
|
||||
*underrun = true;
|
||||
metadata.end_of_burst = true;
|
||||
} else if (drop_cnt < 30) {
|
||||
LOG(DEBUG) << "Aligning transmitter: packet advance";
|
||||
*underrun = true;
|
||||
return len;
|
||||
} else {
|
||||
LOG(DEBUG) << "Aligning transmitter: start burst";
|
||||
|
|
Loading…
Reference in New Issue