Merge pull request #59 from mihaip/upstream-amic-dma

amic: don't reset cur_buf_pos if we've drained the DMA buffer
This commit is contained in:
Maxim Poliakovski 2023-11-08 08:20:50 +01:00 committed by GitHub
commit 351ac78e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -546,7 +546,6 @@ DmaPullResult AmicSndOutDma::pull_data(uint32_t req_len, uint32_t *avail_len,
// if it's false stop delivering sound data
// this will effectively stop audio playback
if (this->snd_buf_num && !this->enabled) {
this->cur_buf_pos = 0;
return DmaPullResult::NoMoreData;
}