diff mbox

ASoC: max98925: Fix mask for setting DAI invert mode

Message ID 1432643708.30725.1.camel@ingics.com (mailing list archive)
State Accepted
Commit 0b51601d4504f46f585eed823485101390f0b588
Headers show

Commit Message

Axel Lin May 26, 2015, 12:35 p.m. UTC
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>
---
 sound/soc/codecs/max98925.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown May 26, 2015, 5:32 p.m. UTC | #1
On Tue, May 26, 2015 at 08:35:08PM +0800, Axel Lin wrote:
> 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.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c
index 9b5a17d..aad6642 100644
--- a/sound/soc/codecs/max98925.c
+++ b/sound/soc/codecs/max98925.c
@@ -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;
 }