]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/intel: Drop superfluous AZX_DCAPS_I915_POWERWELL checks
authorTakashi Iwai <tiwai@suse.de>
Sun, 9 Dec 2018 08:57:37 +0000 (09:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 11 Dec 2018 07:12:52 +0000 (08:12 +0100)
commitfd12da10475d7cd11a3293084790633854f66fd8
tree04dfaf3e9d04d16412644579eff1da83f8f90cd6
parent72d922e9772059d77c1f971b8a173eb2d2062db4
ALSA: hda/intel: Drop superfluous AZX_DCAPS_I915_POWERWELL checks

snd_hdac_display_power() can be called even for a HDA controller
without DRM binding.  The same is true for other helpers,
snd_hdac_i915_set_bclk() and snd_hdac_set_codec_wakeup().
So all superfluous AZX_DCAPS_I915_POWERWELL  checks in hda_intel.c can
be dropped, and the definition of AZX_DCAPS_I915_POWERWELL itself can
be removed as well.  This simplifies the code a lot.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c