linux-stable/sound/pci/hda
Takashi Iwai bd074af53c ALSA: hda: Keep the controller initialization even if no codecs found
[ Upstream commit 9479e75fca ]

Currently, when the HD-audio controller driver doesn't detect any
codecs, it tries to abort the probe.  But this abort happens at the
delayed probe, i.e. the primary probe call already returned success,
hence the driver is never unbound until user does so explicitly.
As a result, it may leave the HD-audio device in the running state
without the runtime PM.  More badly, if the device is a HD-audio bus
that is tied with a GPU, GPU cannot reach to the full power down and
consumes unnecessarily much power.

This patch changes the logic after no-codec situation; it continues
probing without the further codec initialization but keep the
controller driver running normally.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207043
Tested-by: Roy Spliet <nouveau@spliet.org>
Link: https://lore.kernel.org/r/20200413082034.25166-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-02 08:48:56 +02:00
..
ca0132_regs.h
hda_auto_parser.c ASoC: Updates for v5.4 2019-09-10 13:03:08 +02:00
hda_auto_parser.h
hda_beep.c ALSA: hda: Fix potential access overflow in beep helper 2020-04-17 10:50:07 +02:00
hda_beep.h
hda_bind.c ALSA: hda - Fix pending unsol events at shutdown 2019-12-13 08:43:27 +01:00
hda_codec.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-28 17:22:12 +01:00
hda_controller.c ALSA: hda - Downgrade error message for single-cmd fallback 2020-01-09 10:19:54 +01:00
hda_controller.h Merge branch 'asoc-5.4' into asoc-next 2019-09-09 14:55:20 +01:00
hda_controller_trace.h
hda_eld.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-28 17:22:12 +01:00
hda_generic.c ALSA: hda/realtek - Fix overridden device-specific initialization 2019-08-30 12:03:38 +02:00
hda_generic.h ALSA: hda/realtek - Fix overridden device-specific initialization 2019-08-30 12:03:38 +02:00
hda_hwdep.c
hda_intel.c ALSA: hda: Keep the controller initialization even if no codecs found 2020-05-02 08:48:56 +02:00
hda_intel.h ALSA: hda: Release resources at error in delayed probe 2020-05-02 08:48:56 +02:00
hda_intel_trace.h
hda_jack.c
hda_jack.h
hda_local.h ALSA: hda - Expand pin_match function to match upcoming new tbls 2019-08-16 11:59:30 +02:00
hda_proc.c
hda_sysfs.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-28 17:22:12 +01:00
hda_tegra.c ALSA: hda: Apply aligned MMIO access only conditionally 2020-02-11 04:35:15 -08:00
hp_x360_helper.c
Kconfig
Makefile
patch_analog.c ALSA: hda - Add laptop imic fixup for ASUS M9V laptop 2019-09-20 15:53:24 +02:00
patch_ca0110.c
patch_ca0132.c ALSA: hda/ca0132 - Add Recon3Di quirk to handle integrated sound on EVGA X99 Classified motherboard 2020-04-08 09:08:44 +02:00
patch_cirrus.c
patch_cmedia.c
patch_conexant.c ALSA: hda - Add docking station support for Lenovo Thinkpad T420s 2020-02-24 08:36:55 +01:00
patch_hdmi.c ALSA: hda/hdmi: Add module option to disable audio component binding 2020-04-29 16:33:15 +02:00
patch_realtek.c ALSA: hda/realtek - Add new codec supported for ALC245 2020-04-29 16:33:15 +02:00
patch_si3054.c
patch_sigmatel.c ALSA: hda/sigmatel - remove unused variable 'stac9200_core_init' 2019-08-13 17:44:48 +02:00
patch_via.c
thinkpad_helper.c