Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions device/ip/subsystem/i2s/i2s_tx_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,14 @@ static uint32_t i2s_tx_master_write_samples(uint32_t dev_id,
if (NULL != dev->tx_cb) {
dev->tx_cb(dev_id);
}
/* As the whole data requested by the upper
layer has been sent, there is no need to keep
a value in *count.
Setting *count to zero will prevent calling
i2s_tx_master_write_samples again, where
usr_cnt will be equal to sys_cnt,
which will result in masking the interrupt */
*count = 0;
}
}

Expand Down