]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: refactor i915_get/put functions
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Mon, 20 Jan 2020 16:01:15 +0000 (18:01 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jan 2020 17:51:27 +0000 (17:51 +0000)
commit146824baa304b048e65f9c3cc7ace5590508df4c
tree9ef273da75aa4e22486964f6849d4f28bbef25c9
parent03c4cf0a6e3bdf0fc65cb7009a44738aedbb9201
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>
sound/soc/sof/intel/hda-codec.c
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/hda.h