diff options
| author | Zixun LI <[email protected]> | 2026-08-05 09:32:31 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-05 09:32:31 +0200 |
| commit | 4ab970f0a7c4ba06d3170b59e21e1a42c866e995 (patch) | |
| tree | af477ed87f4cf569a46d36c10066f30d06b0a299 /src | |
| parent | f3021b337fcea154b898489c417d428c92f88e92 (diff) | |
| parent | b0738b5949130d5ab175835d72bb793830d09bc9 (diff) | |
Merge pull request #3809 from rt-rtos/audio-fix-flow-control-fifo-guard
audio: fix inverted FIFO-size guard in EP-IN flow control
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/audio/audio_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c index 94881521a..bc4c7e544 100644 --- a/src/class/audio/audio_device.c +++ b/src/class/audio/audio_device.c @@ -1841,7 +1841,7 @@ static bool audiod_calc_tx_packet_sz(audiod_function_t *audio) { static uint16_t audiod_tx_packet_size(const uint16_t *nominal_size, uint16_t data_count, uint16_t fifo_depth, uint16_t fifo_threshold, uint16_t max_depth) { // Flow control need a FIFO size of at least 4*Navg - if (nominal_size[1] && nominal_size[1] <= fifo_depth * 4) { + if (nominal_size[1] && nominal_size[1] * 4 <= fifo_depth) { // Use blackout to prioritize normal size packet static int ctrl_blackout = 0; uint16_t packet_size; |
