Unverified Commit 0e579792 authored by LinusHeu's avatar LinusHeu Committed by GitHub

I2S: Don't consider _isHolding when it's an output (#1548)

parent 20cabe82
...@@ -204,13 +204,8 @@ int I2S::available() { ...@@ -204,13 +204,8 @@ int I2S::available() {
} else { } else {
auto avail = _arb->available(); auto avail = _arb->available();
avail *= 4; // 4 samples per 32-bits avail *= 4; // 4 samples per 32-bits
if (_bps < 24) { if (_bps < 24 && !_isOutput) {
if (_isOutput) { avail += _isHolding / 8;
// 16- and 8-bit can have holding bytes available
avail += (32 - _isHolding) / 8;
} else {
avail += _isHolding / 8;
}
} }
return avail; 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