Skip to content

Commit

Permalink
ASoC: davinci-mcasp: Fix XDATA check in mcasp_start_tx
Browse files Browse the repository at this point in the history
The condition for checking for XDAT being cleared was not correct.

Fixes: 36bcecd ("ASoC: davinci-mcasp: Correct TX start sequence")
Signed-off-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
  • Loading branch information
Peter Ujfalusi authored and broonie committed Dec 11, 2015
1 parent 8005c49 commit e2a0c9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/davinci/davinci-mcasp.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ static void mcasp_start_tx(struct davinci_mcasp *mcasp)

/* wait for XDATA to be cleared */
cnt = 0;
while (!(mcasp_get_reg(mcasp, DAVINCI_MCASP_TXSTAT_REG) &
~XRDATA) && (cnt < 100000))
while ((mcasp_get_reg(mcasp, DAVINCI_MCASP_TXSTAT_REG) & XRDATA) &&
(cnt < 100000))
cnt++;

/* Release TX state machine */
Expand Down

0 comments on commit e2a0c9f

Please sign in to comment.