mirror of https://github.com/thesofproject/sof.git
drivers: imx: sai: Fix standalone capture
We run TX in asynchronous mode and RX in synchronous mode with transmitter. Anyhow, in this mode when starting RX we also need to enable TX (if it wasn't previously enabled). Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
parent
8a4ec5643f
commit
12107e56db
|
@ -59,10 +59,14 @@ static void sai_start(struct dai *dai, int direction)
|
|||
|
||||
if (direction == DAI_DIR_CAPTURE) {
|
||||
xcsr = dai_read(dai, REG_SAI_XCSR(DAI_DIR_PLAYBACK));
|
||||
if (!(xcsr & REG_SAI_CSR_FRDE))
|
||||
if (!(xcsr & REG_SAI_CSR_FRDE)) {
|
||||
|
||||
dai_update_bits(dai, REG_SAI_XCSR(DAI_DIR_PLAYBACK),
|
||||
REG_SAI_CSR_TERE, REG_SAI_CSR_TERE);
|
||||
dai_update_bits(dai, REG_SAI_XCR3(DAI_DIR_PLAYBACK),
|
||||
REG_SAI_CR3_TRCE_MASK,
|
||||
REG_SAI_CR3_TRCE(1));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue