Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef0cd470 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: cs4271: Fix wrong mask parameter in some snd_soc_update_bits calls

parent 2391a0e0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -434,7 +434,8 @@ static int cs4271_soc_suspend(struct snd_soc_codec *codec, pm_message_t mesg)
{
	int ret;
	/* Set power-down bit */
	ret = snd_soc_update_bits(codec, CS4271_MODE2, 0, CS4271_MODE2_PDN);
	ret = snd_soc_update_bits(codec, CS4271_MODE2, CS4271_MODE2_PDN,
				  CS4271_MODE2_PDN);
	if (ret < 0)
		return ret;
	return 0;
@@ -501,7 +502,8 @@ static int cs4271_probe(struct snd_soc_codec *codec)
		return ret;
	}

	ret = snd_soc_update_bits(codec, CS4271_MODE2, 0,
	ret = snd_soc_update_bits(codec, CS4271_MODE2,
				  CS4271_MODE2_PDN | CS4271_MODE2_CPEN,
				  CS4271_MODE2_PDN | CS4271_MODE2_CPEN);
	if (ret < 0)
		return ret;