OSDN Git Service

ASoC: intel/skl/hda - fix oops on systems without i915 audio codec
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Mon, 20 Apr 2020 20:54:31 +0000 (23:54 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 21 Apr 2020 18:52:58 +0000 (19:52 +0100)
commit5bf73b1b1deca46c7459cb4d732ba8bad6da93c5
tree9948c31e63940137608115b9ab14ed467325e768
parent787a46c02792f2e9d8b11176381741726120c009
ASoC: intel/skl/hda - fix oops on systems without i915 audio codec

Recent fix for jack detection caused a regression on systems with HDA
audio codec but no HDMI/DP audio via i915 graphics, leading to a kernel
oops at device probe. On these systems, HDA bus instance lookup fails,
as the first ASoC runtime of the card is connected to a dummy codec
(as no HDMI codec is present).

Fixes: 3a24f135e6cc ("ASoC: intel/skl/hda - set autosuspend timeout for hda codecs")
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200420205431.13070-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/skl_hda_dsp_generic.c