diff mbox

ASoC: cs42l73: Fix mask for setting CS42L73_SP_3ST bit

Message ID 1437611217.6620.2.camel@ingics.com (mailing list archive)
State Accepted
Commit 8626e5eb6c33b78ba7a5eb7cfbc5109896f443ef
Headers show

Commit Message

Axel Lin July 23, 2015, 12:26 a.m. UTC
CS42L73_SP_3ST is BIT(7), so the mask field is wrong. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/cs42l73.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Austin, Brian July 23, 2015, 10:36 a.m. UTC | #1
> On Jul 22, 2015, at 19:27, Axel Lin <axel.lin@ingics.com> wrote:
> 
> CS42L73_SP_3ST is BIT(7), so the mask field is wrong. Fix it.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>

Thanks
diff mbox

Patch

diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c
index 7cb1d70..be6477f 100644
--- a/sound/soc/codecs/cs42l73.c
+++ b/sound/soc/codecs/cs42l73.c
@@ -1236,8 +1236,8 @@  static int cs42l73_set_tristate(struct snd_soc_dai *dai, int tristate)
 	struct snd_soc_codec *codec = dai->codec;
 	int id = dai->id;
 
-	return snd_soc_update_bits(codec, CS42L73_SPC(id),
-					0x7F, tristate << 7);
+	return snd_soc_update_bits(codec, CS42L73_SPC(id), CS42L73_SP_3ST,
+				   tristate << 7);
 }
 
 static const struct snd_pcm_hw_constraint_list constraints_12_24 = {