From 27fdb7856d88976f348247a4b97fe22f99494566 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Fri, 26 Jan 2018 16:44:19 +0800 Subject: MLK-17467: ASoC: fsl_sai: fix typo for fsl_sai MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- sound/soc/fsl/fsl_sai.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sound/soc/fsl/fsl_sai.c') 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++; -- cgit v1.2.3