ASoC: SOF: Intel: hda: Initialize HDA controller after i915 init
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 6 Aug 2019 22:19:58 +0000 (15:19 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 7 Aug 2019 13:18:05 +0000 (14:18 +0100)
commitcc352735d49c9c25fd711795bee35d3d001ddffa
treedb441640b30ba26835ec41bd665d9d8a715531dd
parent06e8f5c842f2dbb232897ba967ea7b422745c271
ASoC: SOF: Intel: hda: Initialize HDA controller after i915 init

On some platforms, sound card registration fails when a HDMI
monitor is not connected. This is caused by a recent commit
that switched the order in which the HDA controller and the
i915 are initialized. Initializing the i915 before initializing
the HDA controller fixes the problem.

Fixes: be1b577d01787c ("ASoC: SOF: Intel: hda: fix the hda init chip"
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20190806221958.19180-1-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c