Skip to content

Commit d316597

Browse files
jwrdegoedebroonie
authored andcommitted
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>
1 parent 6e037b7 commit d316597

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/soc/codecs/nau8824.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
/* JACK_DET_CTRL (0x0D) */
198198
#define NAU8824_JACK_EJECT_DT_SFT 2
199199
#define NAU8824_JACK_EJECT_DT_MASK (0x3 << NAU8824_JACK_EJECT_DT_SFT)
200-
#define NAU8824_JACK_LOGIC 0x1
200+
#define NAU8824_JACK_LOGIC (0x1 << 1)
201201

202202

203203
/* INTERRUPT_SETTING_1 (0x0F) */

0 commit comments

Comments
 (0)