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

Commit 5af76d5c authored by Jie Yang's avatar Jie Yang Committed by Mark Brown
Browse files

ASoC: rt286: correct the OR to AND



Here it should be AND(&) to check the status.

Signed-off-by: default avatarJie Yang <yang.jie@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e2cef68d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -397,7 +397,7 @@ int rt286_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack)

	if (jack) {
		/* enable IRQ */
		if (rt286->jack->status | SND_JACK_HEADPHONE)
		if (rt286->jack->status & SND_JACK_HEADPHONE)
			snd_soc_dapm_force_enable_pin(&codec->dapm, "LDO1");
		regmap_update_bits(rt286->regmap, RT286_IRQ_CTRL, 0x2, 0x2);
		/* Send an initial empty report */