summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_sai.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2018-01-26 16:44:19 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:53:52 +0800
commit27fdb7856d88976f348247a4b97fe22f99494566 (patch)
tree81b233fdbd980f662737a82a014c33e2be1bcbba /sound/soc/fsl/fsl_sai.c
parent15e50be3635bb61fdefc65327efc3f378d3ffb60 (diff)
MLK-17467: ASoC: fsl_sai: fix typo for fsl_sai
Fix build warning sound/soc/fsl/fsl_sai.c: In function ‘fsl_sai_trigger’: sound/soc/fsl/fsl_sai.c:736:3: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] while (tx && i < channels) ^~~~~ sound/soc/fsl/fsl_sai.c:742:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’ j++; ^ Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r--sound/soc/fsl/fsl_sai.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 4f49e674b486..0d25ebdfdeee 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -727,9 +727,8 @@ static int fsl_sai_trigger(struct snd_pcm_substream *substream, int cmd,
case SNDRV_PCM_TRIGGER_RESUME:
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
- for (i = 0; tx && i < channels; i++) {
- while (tx && i < channels)
- if (sai->dataline[tx] & (1 << j)) {
+ while (tx && i < channels) {
+ if ((sai->is_dsd ? sai->dataline_dsd[tx] : sai->dataline[tx]) & (1 << j)) {
regmap_write(sai->regmap, FSL_SAI_TDR0 + j * 0x4, 0x0);
i++;
k++;