mirror_ubuntu-kernels/sound/soc/sof/intel
Kai Vehmanen c99fafdfcc ASoC: SOF: Intel: hda: release display power at link_power
The i915 display power is requested both by controller (for init
and link reset) as well as by codec driver (for codec control).

There's an additional constraint that on some platforms frequent changes
to display power state may cause visible flicker. To avoid this, the SOF
hda controller requests display power whenever it is active and only
releases it when runtime suspended.

This patch utilizes the new hdac_bus link_power op to plug
into HDA link state changes. By monitoring link state changes,
we can keep the controller side display power wakeref until
the codec driver has completed its work, and only release
the wakeref when codec driver is suspended.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210205184630.1938761-4-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-02-08 15:57:08 +01:00
..
apl.c ASoC: SOF: Intel: hda: define parse_platform_ext_manifest op 2020-11-27 17:23:04 +00:00
bdw.c ASoC: SOF: rename cores_mask to host_managed_cores_mask 2020-09-11 15:29:29 +01:00
byt.c ASoC: SOF: modify the SOF_DBG flags 2020-12-11 13:22:57 +00:00
cnl.c ASoC: SOF: Intel: hda: add sof_icl_ops for ICL platforms 2020-11-27 17:23:07 +00:00
ext_manifest.h ASoC: SOF: ext_manifest: parse cavs extra config data elem 2020-11-27 17:23:05 +00:00
hda-bus.c ASoC: SOF: Intel: hda: release display power at link_power 2021-02-08 15:57:08 +01:00
hda-codec.c ASoC: SOF: Intel: fix page fault at probe if i915 init fails 2021-01-13 16:33:40 +00:00
hda-compress.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
hda-ctrl.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
hda-dai.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
hda-dsp.c ASoC: SOF: Intel: hda: Avoid checking jack on system suspend 2021-01-13 15:24:07 +00:00
hda-ipc.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
hda-ipc.h ASoC: SOF: Intel: hda: Add sof_tgl_ops for TGL platforms 2020-08-27 14:22:23 +01:00
hda-loader.c ASoC: SOF: Intel: hda: fix the condition passed to sof_dev_dbg_or_err 2020-12-11 13:22:58 +00:00
hda-pcm.c ASoC: SOF: Intel: add hw specific PCM constraints 2020-11-19 13:00:04 +00:00
hda-stream.c ASoC: SOF: Intel: hda: Add helper function to program ICCMAX stream 2020-08-27 14:22:19 +01:00
hda-trace.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
hda.c ASoC: SOF: Intel: hda: fix the condition passed to sof_dev_dbg_or_err 2020-12-11 13:22:58 +00:00
hda.h ASoC: SOF: Intel: hda: release display power at link_power 2021-02-08 15:57:08 +01:00
icl.c ASoC: SOF: Intel: hda: add sof_icl_ops for ICL platforms 2020-11-27 17:23:07 +00:00
intel-ipc.c ASoC: SOF: Intel: add hw specific PCM constraints 2020-11-19 13:00:04 +00:00
Kconfig ASoC: SOF: Intel: soundwire: fix select/depend unmet dependencies 2021-01-25 12:53:41 +00:00
Makefile ASoC: SOF: Intel: hda: add sof_icl_ops for ICL platforms 2020-11-27 17:23:07 +00:00
shim.h ASoC: SOF: rename cores_mask to host_managed_cores_mask 2020-09-11 15:29:29 +01:00
tgl.c ASoC: SOF: Intel: hda: define parse_platform_ext_manifest op 2020-11-27 17:23:04 +00:00