OpenCloudOS-Kernel/sound/soc/intel/skylake
Takashi Iwai 687ae9e287 ASoC: intel: skl: Fix display power regression
Since the refactoring of HD-audio display power management, the
display power status is managed per domain.  Meanwhile the ASoC
hdac_hdmi driver still keeps and relies (incorrectly) on the
refcounting together with ASoC skl driver, and this leads to the
display state always on.

This patch is an attempt to address the regression by simplifying the
PM code of ASoC skl and hdac_hdmi drivers.  Basically, since the
refactoring, we don't have to manage the display power at HD-audio
controller suspend / resume but only at HD-audio HDMI codec suspend /
resume.  So the patch drops the superfluous snd_hdac_display_power()
calls in skl driver.

Meanwhile, in hdac_hdmi side, we rewrite the PM call just to re-use
the runtime PM callbacks like other drivers do.  Now the logic is
simple: turn off at suspend and turn on at resume.

The patch also fixes the possibly missing display-power off at skl
driver removal as well as some error paths at probe.

Fixes: 029d92c289 ("ALSA: hda: Refactor display power management")
Reported-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-01-14 19:06:29 +01:00
..
Makefile ASoC: Intel: Skylake: Add ssp clock driver 2018-01-26 12:51:21 +00:00
bxt-sst.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
cnl-sst-dsp.c ASoC: Intel: cnl: Add cnl dsp functions and registers 2017-08-03 11:07:23 +01:00
cnl-sst-dsp.h ASoC: Intel: cnl: Add sst library functions for cnl platform 2017-08-03 11:07:33 +01:00
cnl-sst.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
skl-debug.c ASoC: topology: Move skl-tplg-interface.h to uapi 2018-06-01 18:09:17 +01:00
skl-i2s.h ASoC: Intel: Skylake: Add extended I2S config blob support in Clock driver 2018-01-26 12:51:22 +00:00
skl-messages.c ASoC: Intel: Skylake: Add CFL-S support 2018-12-13 15:35:18 +00:00
skl-nhlt.c ASoC: Intel: Skylake: add error logs on probe, remove dependency on NHLT 2018-12-13 15:36:19 +00:00
skl-nhlt.h ASoC: Intel: Skylake: Add api to retrieve dmic array info from nhlt 2016-05-30 18:16:44 +01:00
skl-pcm.c ASoC: intel: skylake: Add fall-through annotation 2018-10-05 12:38:21 +01:00
skl-ssp-clk.c ASoC: Intel: Skylake: make function skl_clk_round_rate static 2018-02-12 09:32:32 +00:00
skl-ssp-clk.h ASoC: Intel: Skylake: Add ssp clock driver 2018-01-26 12:51:21 +00:00
skl-sst-cldma.c ASoC: Intel: Skylake: BDL definitions should be __le32 2018-07-25 17:21:11 +01:00
skl-sst-cldma.h ASoC: Intel: Skylake: BDL definitions should be __le32 2018-07-25 17:21:11 +01:00
skl-sst-dsp.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
skl-sst-dsp.h ASoC: Intel: Skylake: Unify the fw ops for SKL and KBL 2018-04-17 11:35:10 +01:00
skl-sst-ipc.c ASoC: Intel: Skylake: Add FW reply for MCLK/SCLK IPC 2018-11-28 12:36:44 +00:00
skl-sst-ipc.h ASoC: Intel: Skylake: Disable clock and power gating during FW/LIB download 2018-03-13 09:29:14 -07:00
skl-sst-utils.c Merge branch 'fix/intel' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel 2018-01-08 15:54:50 +00:00
skl-sst.c ASoC: Intel: Skylake: Unify the fw ops for SKL and KBL 2018-04-17 11:35:10 +01:00
skl-topology.c ASoC: intel: skylake: Add missing break in skl_tplg_get_token() 2018-10-04 11:36:35 +01:00
skl-topology.h Merge branch 'topic/drm_audio_component' of https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into asoc-4.19 2018-08-01 10:32:05 +01:00
skl.c ASoC: intel: skl: Fix display power regression 2019-01-14 19:06:29 +01:00
skl.h ASoC: Intel: fix interface for Chromebook machine drivers 2018-11-20 16:56:25 +00:00