OSDN Git Service

ASoC: Intel: cht_bsw_max98090: add gpio-based jack detection
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 8 Sep 2017 05:13:09 +0000 (00:13 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2017 13:44:37 +0000 (14:44 +0100)
commit355b3552d59f471bfaf41cf7c6cc0a6fa193b303
tree024bdec900106a162b0a7cceeff517c55c16ed32
parent3bbda5a38601f7675a214be2044e41d7749e6c7b
ASoC: Intel: cht_bsw_max98090: add gpio-based jack detection

Jacks are created but only enabled when the external TI chip is
present, this probably never worked as well. Forklift the gpio-based
code from the legacy byt-max98090 driver, with however a less strict
error check. It's fine to let users enjoy their device even if
jack detection doesn't work - it almost never does without quirks...

Tested on Lenovo100s

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_max98090_ti.c