chain_dma: Fix chain DMA transfer
Fixes chain DMA implementation: wrong calculation of bytes consumed from host and written into HDA link. The problem was reproduced on test with variable bitrate stream.
codestyle / checkpatch failure is false positive:
WARNING: 'HDA' may be misspelled - perhaps 'HAD'?
#7:
host and written into HDA link. The problem was reproduced on test with
^^^
Temporarily converted to Draft as test_06_05_pass_through_chain_hda_codec_loopback[dma_id=0-dma_id=0-sin_48khz_2ch_5s_mp3_48000Hz_16in16bit_2ch] started to randomly fail with this PR from time to time.
@serhiy-katsyuba-intel any update ?
@serhiy-katsyuba-intel any update ?
The fix triggers occasional chain DMA CI test failure. Most probably, the test would be fixed (or removed from CI). Once the test is fixed I'll un-draft the PR.
@serhiy-katsyuba-intel still needed ?