drivers: imx: sai: add one word to FIFO

FIFO should be pre-filled with one word as per RM
recommendation after TRCE has been anabled

Signed-off-by: Guido Roncarolo <guido.roncarolo@nxp.com>
This commit is contained in:
Guido Roncarolo 2019-10-17 11:02:00 +02:00 committed by Daniel Baluta
parent 063ecded7f
commit 54127b0374
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ static void sai_start(struct dai *dai, int direction)
REG_SAI_CR1_RFW_MASK, SAI_FIFO_WORD_SIZE / 2); REG_SAI_CR1_RFW_MASK, SAI_FIFO_WORD_SIZE / 2);
dai_update_bits(dai, REG_SAI_XCR3(direction), dai_update_bits(dai, REG_SAI_XCR3(direction),
REG_SAI_CR3_TRCE_MASK, REG_SAI_CR3_TRCE(1)); REG_SAI_CR3_TRCE_MASK, REG_SAI_CR3_TRCE(1));
/* add one word to FIFO after TRCE has been enabled */
if (direction == DAI_DIR_PLAYBACK)
dai_update_bits(dai, REG_SAI_TDR0, 0x0, 0x0);
else
dai_update_bits(dai, REG_SAI_RDR0, 0x0, 0x0);
} }
static void sai_stop(struct dai *dai, int direction) static void sai_stop(struct dai *dai, int direction)