Skip to contentSkip to conversation

ASoC: rt286: correct the OR to AND

PATCH Applied Jie Yang 2 participants 2 messages Feb 27, 2015 – Mar 6, 2015

Subsystems (3)
lore
Share & tools
lore

Jie Yang

author
#0 lore raw

PATCH 1/1 ASoC: rt286: correct the OR to AND

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

---
 sound/soc/codecs/rt286.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt286.c +1 -1
index 16723b1..49c44a7 100644
@@ -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 */
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 1 line · Jie Yang

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

applied, thanks.