summaryrefslogtreecommitdiff
path: root/docs/_static
diff options
context:
space:
mode:
authorrt-rtos <[email protected]>2026-08-04 21:09:20 +0200
committerrt-rtos <[email protected]>2026-08-04 21:09:20 +0200
commitb0738b5949130d5ab175835d72bb793830d09bc9 (patch)
treeaf477ed87f4cf569a46d36c10066f30d06b0a299 /docs/_static
parentf3021b337fcea154b898489c417d428c92f88e92 (diff)
audio_device: enforce the documented FIFO minimum in the EP-IN flow-control guard
The comment above audiod_tx_packet_size() states flow control needs a FIFO of at least 4*Navg, but the guard tests nominal_size[1] <= fifo_depth * 4 - true for any FIFO larger than a quarter packet - instead of nominal_size[1] * 4 <= fifo_depth. As written, flow control engages on FIFOs far below its own documented minimum, where the depth/2 setpoint sits within one packet of empty and the packet_size = 0 branch (a zero-length packet, i.e. an audible 1 ms dropout for audio-class hosts) is reachable from ordinary scheduling jitter rather than only from gross clock deviation. With the guard corrected, undersized FIFOs fall back to the plain min(count, max) path as intended.
Diffstat (limited to 'docs/_static')
0 files changed, 0 insertions, 0 deletions