]> git.hungrycats.org Git - linux/commitdiff
ASoC: max98925: Fix mask for setting DAI invert mode
authorAxel Lin <axel.lin@ingics.com>
Tue, 26 May 2015 12:35:08 +0000 (20:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:03 +0000 (09:29 -0700)
commit 0b51601d4504f46f585eed823485101390f0b588 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/max98925.c

index 9b5a17de46909172057e4f6cc1d3d4afa579adbc..aad664225dc3a4d0142a89bf37a51f4743a0969e 100644 (file)
@@ -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;
 }