summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5645.c
diff options
context:
space:
mode:
authorJacob Rasmussen <jacobraz@chromium.org>2019-11-14 16:20:11 -0700
committerMark Brown <broonie@kernel.org>2019-11-15 12:00:37 +0000
commitfe23be2d85b05f561431d75acddec726ea807d2a (patch)
tree0f87a29961f1d2ca5993c5bf067d5e2a3aa31652 /sound/soc/codecs/rt5645.c
parente9149b8c00d25dbaef1aa174fc604bed207e576d (diff)
downloadblackbird-op-linux-fe23be2d85b05f561431d75acddec726ea807d2a.tar.gz
blackbird-op-linux-fe23be2d85b05f561431d75acddec726ea807d2a.zip
ASoC: rt5645: Fixed typo for buddy jack support.
Had a typo in e7cfd867fd98 that resulted in buddy jack support not being fixed. Fixes: e7cfd867fd98 ("ASoC: rt5645: Fixed buddy jack support.") Signed-off-by: Jacob Rasmussen <jacobraz@google.com> Reviewed-by: Ross Zwisler <zwisler@google.com> Cc: <jacobraz@google.com> CC: stable@vger.kernel.org Link: https://lore.kernel.org/r/20191114232011.165762-1-jacobraz@google.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5645.c')
-rw-r--r--sound/soc/codecs/rt5645.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 902ac98a3fbe..19662ee330d6 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3271,7 +3271,7 @@ static void rt5645_jack_detect_work(struct work_struct *work)
report, SND_JACK_MICROPHONE);
return;
case 4:
- val = snd_soc_component_read32(rt5645->component, RT5645_A_JD_CTRL1) & 0x002;
+ val = snd_soc_component_read32(rt5645->component, RT5645_A_JD_CTRL1) & 0x0020;
break;
default: /* read rt5645 jd1_1 status */
val = snd_soc_component_read32(rt5645->component, RT5645_INT_IRQ_ST) & 0x1000;
OpenPOWER on IntegriCloud