Skip to content

Commit 5f93ad4

Browse files
iuliana-prodandbaluta
authored andcommitted
drivers: imx: sai: W1C for a clean start
On start W1C the Work Start Flag, Sync Error Flag and FIFO Error Flag. Write a logic 1 to this field to clear each of this flags and have a clean start for SAI. Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
1 parent f60adbb commit 5f93ad4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/drivers/imx/sai.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ static void sai_start(struct dai *dai, int direction)
6666
}
6767
}
6868

69+
/* W1C */
70+
dai_update_bits(dai, REG_SAI_XCSR(direction),
71+
REG_SAI_CSR_FEF, 1);
72+
dai_update_bits(dai, REG_SAI_XCSR(direction),
73+
REG_SAI_CSR_SEF, 1);
74+
dai_update_bits(dai, REG_SAI_XCSR(direction),
75+
REG_SAI_CSR_WSF, 1);
76+
6977
/* add one word to FIFO before TRCE is enabled */
7078
if (direction == DAI_DIR_PLAYBACK)
7179
dai_write(dai, REG_SAI_TDR0, 0x0);

0 commit comments

Comments
 (0)