diff mbox

[2/6] ASoC: Intel: byt-max98090: Fix mic detect GPIO polarity

Message ID 1403530182-5400-2-git-send-email-jarkko.nikula@linux.intel.com (mailing list archive)
State Accepted
Commit 725a6dfd014d02b4ad1d00df364a6d4a15ff2ebb
Headers show

Commit Message

Jarkko Nikula June 23, 2014, 1:29 p.m. UTC
Mic detect GPIO is active low when headset microphone is detected. Found
both by debugging and checking the schematics.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
---
 sound/soc/intel/byt-max98090.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/sound/soc/intel/byt-max98090.c b/sound/soc/intel/byt-max98090.c
index a3c5f02a60fc..3d06440278ec 100644
--- a/sound/soc/intel/byt-max98090.c
+++ b/sound/soc/intel/byt-max98090.c
@@ -83,6 +83,7 @@  static struct snd_soc_jack_gpio hs_jack_gpios[] = {
 	{
 		.name		= "mic-gpio",
 		.idx		= 1,
+		.invert		= 1,
 		.report		= SND_JACK_MICROPHONE | SND_JACK_LINEIN,
 		.debounce_time	= 200,
 	},