Unverified Commit 43aa0427 authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Reapply #1548 (#1582)

parent cc5d1779
......@@ -263,13 +263,8 @@ int I2S::available() {
} else {
auto avail = _arb->available();
avail *= 4; // 4 samples per 32-bits
if (_bps < 24) {
if (_isOutput) {
// 16- and 8-bit can have holding bytes available
avail += (32 - _isHolding) / 8;
} else {
avail += _isHolding / 8;
}
if (_bps < 24 && !_isOutput) {
avail += _isHolding / 8;
}
return avail;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment