diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-22 20:26:57 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-23 11:04:04 -0400 |
commit | 8626e5eb6c33b78ba7a5eb7cfbc5109896f443ef (patch) | |
tree | 367720f6389f7e3a87d39fbcbe4ef7b4eecc1231 | |
parent | bc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff) |
ASoC: cs42l73: Fix mask for setting CS42L73_SP_3ST bit
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/cs42l73.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c index b7853b9d3a60..efd924ae384c 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) | |||
1236 | struct snd_soc_codec *codec = dai->codec; | 1236 | struct snd_soc_codec *codec = dai->codec; |
1237 | int id = dai->id; | 1237 | int id = dai->id; |
1238 | 1238 | ||
1239 | return snd_soc_update_bits(codec, CS42L73_SPC(id), | 1239 | return snd_soc_update_bits(codec, CS42L73_SPC(id), CS42L73_SP_3ST, |
1240 | 0x7F, tristate << 7); | 1240 | tristate << 7); |
1241 | } | 1241 | } |
1242 | 1242 | ||
1243 | static const struct snd_pcm_hw_constraint_list constraints_12_24 = { | 1243 | static const struct snd_pcm_hw_constraint_list constraints_12_24 = { |