刷新cache

This commit is contained in:
heyuanjie 2018-05-02 10:28:58 +08:00
parent 313920126b
commit 672d6e39e9
1 changed files with 13 additions and 12 deletions

View File

@ -347,6 +347,7 @@ static rt_size_t icodec_transmit(struct rt_audio_device *audio, const void *writ
xfer.data = (uint8_t *)writeBuf;
xfer.dataSize = size;
rt_hw_cpu_dcache_ops(RT_HW_CACHE_FLUSH, (void*)writeBuf, size);
if (SAI_TransferSendEDMA(icodec->sai, &icodec->txHandle, &xfer) != kStatus_Success)
return 0;