瀏覽代碼

ASoC: Intel: byt-max98090: Fix mic detect GPIO polarity

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>
Signed-off-by: Mark Brown <broonie@linaro.org>
Jarkko Nikula 11 年之前
父節點
當前提交
725a6dfd01
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sound/soc/intel/byt-max98090.c

+ 1 - 0
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,
 	},