Skip to content

Commit

Permalink
ASoC: max98925: Fix mask for setting DAI invert mode
Browse files Browse the repository at this point in the history
The M98925_DAI_WCI_MASK bit is not updated with current code.
To properly set the DAI invert mode, the mask should be
M98925_DAI_BCI_MASK | M98925_DAI_WCI_MASK.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
  • Loading branch information
Axel Lin authored and Mark Brown committed May 26, 2015
1 parent b787f68 commit 0b51601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/max98925.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ static int max98925_dai_set_fmt(struct snd_soc_dai *codec_dai,
}

regmap_update_bits(max98925->regmap, MAX98925_FORMAT,
M98925_DAI_BCI_MASK, invert);
M98925_DAI_BCI_MASK | M98925_DAI_WCI_MASK, invert);
return 0;
}

Expand Down

0 comments on commit 0b51601

Please sign in to comment.