]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ASoC: Intel: cht_bsw_max98090_ti: Fix jack initialization
authorThierry Escande <thierry.escande@collabora.com>
Fri, 8 Sep 2017 05:13:08 +0000 (00:13 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2017 13:44:30 +0000 (14:44 +0100)
commit3bbda5a38601f7675a214be2044e41d7749e6c7b
treec7e6fb833fca4d3cda74eb6e9695f14d9fea10fe
parentc809fb1e84d5f3f55c3b84710ae06bc3d5943d18
ASoC: Intel: cht_bsw_max98090_ti: Fix jack initialization

If the ts3a227e audio accessory detection hardware is present and its
driver probed, the jack needs to be created before enabling jack
detection in the ts3a227e driver. With this patch, the jack is
instantiated in the max98090 headset init function if the ts3a227e is
present. This fixes a null pointer dereference as the jack detection
enabling function in the ts3a driver was called before the jack is
created.

[minor correction to keep error handling on jack creation the same
as before by Pierre Bossart]

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
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