summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/nau8824.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-10-02 23:14:56 +0200
committerMark Brown <broonie@kernel.org>2021-10-04 16:55:26 +0200
commitd316597c538abd110ff32761fc79f7adff8d619a (patch)
tree6aee66025280ebfee1d91741f7e7042ffdf7df56 /sound/soc/codecs/nau8824.h
parentASoC: rt5651: Use IRQF_NO_AUTOEN when requesting the IRQ (diff)
downloadlinux-d316597c538abd110ff32761fc79f7adff8d619a.tar.xz
linux-d316597c538abd110ff32761fc79f7adff8d619a.zip
ASoC: nau8824: Fix NAU8824_JACK_LOGIC define
The NAU8824_JACK_LOGIC define was wrong, for active high jack-detect to work bit 1 needs to be set, rather then bit 0. The correct bit was found in the Android kernel source dump for a Cyberbook T116 tablet; and this was also tested on that same tablet. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211002211459.110124-1-hdegoede@redhat.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/nau8824.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/nau8824.h b/sound/soc/codecs/nau8824.h
index 1d7bdd8e0523..6e61405f623b 100644
--- a/sound/soc/codecs/nau8824.h
+++ b/sound/soc/codecs/nau8824.h
@@ -197,7 +197,7 @@
/* JACK_DET_CTRL (0x0D) */
#define NAU8824_JACK_EJECT_DT_SFT 2
#define NAU8824_JACK_EJECT_DT_MASK (0x3 << NAU8824_JACK_EJECT_DT_SFT)
-#define NAU8824_JACK_LOGIC 0x1
+#define NAU8824_JACK_LOGIC (0x1 << 1)
/* INTERRUPT_SETTING_1 (0x0F) */