android_kernel_oneplus_msm8998/sound/soc/intel
Thierry Escande 59e68641ad ASoC: Intel: cht_bsw_max98090_ti: Fix jack initialization
commit 3bbda5a38601f7675a214be2044e41d7749e6c7b upstream.

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>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-17 20:56:45 +02:00
..
atom ASoC: Intel: sst: Fix the return value of 'sst_send_byte_stream_mrfld()' 2018-04-13 19:50:14 +02:00
baytrail ASoC: Intel: sst_byt: fix initialize 'NULL device *' issue 2015-07-29 14:55:16 +01:00
boards ASoC: Intel: cht_bsw_max98090_ti: Fix jack initialization 2018-08-17 20:56:45 +02:00
common ASoC: Intel: sst: remove redundant variable dma_dev_name 2018-06-06 16:46:21 +02:00
haswell Merge remote-tracking branches 'asoc/fix/davinci', 'asoc/fix/doc', 'asoc/fix/fsl-card', 'asoc/fix/fsl-ssi', 'asoc/fix/intel' and 'asoc/fix/maintainers' into asoc-linus 2015-09-23 11:01:03 -07:00
skylake ASoC: Intel: Skylake: Uninitialized variable in probe_codec() 2018-03-24 10:58:43 +01:00
Kconfig ASoC: Intel: Kconfig: fix build when ACPI is not enabled 2018-02-25 11:03:51 +01:00
Makefile ASoC: Intel: Add makefile support for SKL driver 2015-07-09 11:54:26 +01:00