Skip to content

Commit

Permalink
ASoC: rt286: correct the OR to AND
Browse files Browse the repository at this point in the history
Here it should be AND(&) to check the status.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jie Yang authored and Mark Brown committed Mar 6, 2015
1 parent e2cef68 commit 5af76d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/rt286.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5af76d5

Please sign in to comment.