summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/intel/hda.c
diff options
context:
space:
mode:
authorKai Vehmanen <kai.vehmanen@linux.intel.com>2020-01-20 17:01:15 +0100
committerMark Brown <broonie@kernel.org>2020-01-27 18:51:27 +0100
commit23ee09032d44736c5e8c7becbe03170dbc6f2e8d (patch)
tree9ef273da75aa4e22486964f6849d4f28bbef25c9 /sound/soc/sof/intel/hda.c
parentASoC: rt1015: Remove unnecessary const (diff)
downloadlinux-23ee09032d44736c5e8c7becbe03170dbc6f2e8d.tar.xz
linux-23ee09032d44736c5e8c7becbe03170dbc6f2e8d.zip
ASoC: SOF: Intel: refactor i915_get/put functions
The current interface to control i915 display power is misleading. The hda_codec_i915_get() and hda_codec_i915_put() names suggest a refcounting based interface. This is confusing as no refcounting is done and the underlying HDAC library interface does not support refcounts eithers. Clarify the code by replacing the functions with a single hda_codec_i915_display_power() that is aligned with snd_hdac_display_power(). Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20200120160117.29130-2-kai.vehmanen@linux.intel.com Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel/hda.c')
-rw-r--r--sound/soc/sof/intel/hda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c
index d08462f481de..54a7ba881150 100644
--- a/sound/soc/sof/intel/hda.c
+++ b/sound/soc/sof/intel/hda.c
@@ -380,7 +380,7 @@ static int hda_init_caps(struct snd_sof_dev *sdev)
/* create codec instances */
hda_codec_probe_bus(sdev, hda_codec_use_common_hdmi);
- hda_codec_i915_put(sdev);
+ hda_codec_i915_display_power(sdev, false);
/*
* we are done probing so decrement link counts