ASoC: intel: sof_rt5682: add remove function to disable jack
authorJaska Uimonen <jaska.uimonen@intel.com>
Fri, 27 Sep 2019 20:14:08 +0000 (15:14 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 1 Oct 2019 17:32:53 +0000 (18:32 +0100)
commit6ba5041c23c1062d4e8287b2b76a1181538c6df1
tree4cb840c7cf2e668b3859878c76cb591e999ac70e
parenta315e76fc544f09daf619530a7b2f85865e6b25e
ASoC: intel: sof_rt5682: add remove function to disable jack

When removing sof module the rt5682 jack handler will oops
if jack detection is not disabled. So add remove function,
which disables the jack detection.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190927201408.925-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_rt5682.c