]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/audio: add codec wakeup override enabled/disable callback
authorLu, Han <han.lu@intel.com>
Tue, 5 May 2015 01:05:47 +0000 (09:05 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 May 2015 12:44:19 +0000 (14:44 +0200)
commitaf6ad66d12d2ad3e44e8a1430d35d4638805f587
tree0db6c403b6d893bb1e831397df5fa48bc65171b4
parent050d1f93699d33e7e66783a0d5904117d0409b03
drm/i915/audio: add codec wakeup override enabled/disable callback

Add support for enabling codec wakeup override signal to allow
re-enumeration of the controller on SKL after resume from low power state.

In SKL, HDMI/DP codec and PCH HD Audio Controller are in different power
wells, so it's necessary to reset display audio codecs when power well on,
otherwise display audio codecs will disappear when resume from low power
state.
Reset steps when power on:
    enable codec wakeup -> azx_init_chip() -> disable codec wakeup

v3 by Jani: Simplify to only support toggling the appropriate chicken bit.

v4 by Han: add explanation and specify the hw swquence.

Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_audio.c
include/drm/i915_component.h