linux/sound/pci/hda
Takashi Iwai c9af753f26 ALSA: hda/realtek - Avoid superfluous COEF EAPD setups
Realtek codec driver applied the COEF setups to change the EAPD
control to the default mode (i.e. control by EPAD verbs) at the init
callback.  It works, but this is too excessive at the same time, since
it's called at each runtime PM resume.  That is, the initialization
should be done only once after the probe.  One may think that moving
this to the probe should be OK, but no -- there is a catch; when a
system resumes from S4 (hibernation), we need to re-initialize this
again manually, because it's out of regcache restoration.

This patch addresses the issue by introducing alc_pre_init() function
that performs such a task.  This is called from each codec probe
function, and it's called from the resume callback conditionally only
from S4 resume.

Reported-and-tested-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-05-10 11:01:43 +02:00
..
ca0132_regs.h
hda_auto_parser.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
hda_auto_parser.h
hda_beep.c ALSA: hda - Use standard device registration for beep 2019-01-29 18:28:09 +01:00
hda_beep.h ALSA: hda - Use standard device registration for beep 2019-01-29 18:28:09 +01:00
hda_bind.c ALSA: hda - Serialize codec registrations 2019-02-01 11:30:09 +01:00
hda_codec.c ALSA: hda: fix unregister device twice on ASoC driver 2019-04-29 09:11:59 +02:00
hda_controller_trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hda_controller.c ALSA: hda: Refactor display power management 2018-12-11 08:06:55 +01:00
hda_controller.h ALSA: hda - Revert DSP detection on legacy HD-audio driver 2019-01-01 20:43:01 +01:00
hda_eld.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
hda_generic.c ALSA: hda - Support led audio trigger 2018-11-28 23:25:22 +01:00
hda_generic.h ALSA: hda - Support led audio trigger 2018-11-28 23:25:22 +01:00
hda_hwdep.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
hda_intel_trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hda_intel.c ALSA: hda/intel: add CometLake PCI IDs 2019-05-07 22:47:26 +02:00
hda_intel.h ALSA: hda - Enable runtime PM only for discrete GPU 2018-09-13 17:58:30 +02:00
hda_jack.c ALSA: hda - Add jack button support 2018-12-07 11:42:36 +01:00
hda_jack.h ALSA: hda - Add jack button support 2018-12-07 11:42:36 +01:00
hda_local.h ALSA: hda - Fix runtime PM 2018-05-24 20:16:47 +02:00
hda_proc.c ALSA: pci: Clean up with new procfs helpers 2019-02-06 18:11:56 +01:00
hda_sysfs.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
hda_tegra.c ALSA: hda/tegra: avoid build error without CONFIG_PM 2019-03-13 11:27:54 +01:00
hp_x360_helper.c ALSA: hda/realtek - Fixup for HP x360 laptops with B&O speakers 2018-05-29 22:33:37 +02:00
Kconfig ALSA: hda - Revert DSP detection on legacy HD-audio driver 2019-01-01 20:43:01 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
patch_analog.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
patch_ca0110.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
patch_ca0132.c ALSA: hda/ca0132 - Simplify alt firmware loading code 2019-03-22 20:57:29 +01:00
patch_cirrus.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
patch_cmedia.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
patch_conexant.c ALSA: hda - add more quirks for HP Z2 G4 and HP Z240 2019-03-13 14:41:55 +01:00
patch_hdmi.c ALSA: hda/hdmi - Consider eld_valid when reporting jack event 2019-05-06 16:29:10 +02:00
patch_realtek.c ALSA: hda/realtek - Avoid superfluous COEF EAPD setups 2019-05-10 11:01:43 +02:00
patch_si3054.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
patch_sigmatel.c ALSA: hda/sigmatel - Disable automute for Elo VuPoint 2018-10-04 21:22:47 +02:00
patch_via.c ALSA: hda: move hda_codec.h to include/sound 2018-08-30 15:45:10 +01:00
thinkpad_helper.c ALSA: hda - Support led audio trigger 2018-11-28 23:25:22 +01:00