[2/3] ASoC: SOF: Intel: do not disable i915 power during probe
diff mbox series

Message ID 20200116140610.7247-3-kai.vehmanen@linux.intel.com
State New
Headers show
  • SOF: Fix HDMI probe errors on GLK devices
Related show

Commit Message

Kai Vehmanen Jan. 16, 2020, 2:06 p.m. UTC
Change HDA probe behaviour slightly so that i915 power is not
turned off if i915 audio codecs are found in the initial probe done
by SOF Intel driver, and power is kept on until HDA codec driver
probe runs.

This will reduce number of mode sets on platforms with low
minimum CDCLK (like GLK) and brings the SOF probe sequence closer
to legacy HDA driver in terms of i915 audio codec power management.

BugLink: https://github.com/thesofproject/linux/issues/1642
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
 sound/soc/sof/intel/hda.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff mbox series

diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c
index efe85a4d2cd0..a3392e6d15ab 100644
--- a/sound/soc/sof/intel/hda.c
+++ b/sound/soc/sof/intel/hda.c
@@ -477,7 +477,8 @@  static int hda_init_caps(struct snd_sof_dev *sdev)
 	/* create codec instances */
-	hda_codec_i915_display_power(sdev, false);
+	if (!HDA_IDISP_CODEC(bus->codec_mask))
+		hda_codec_i915_display_power(sdev, false);
 	 * we are done probing so decrement link counts