diff options
author | Lu, Han <han.lu@intel.com> | 2015-05-05 03:05:47 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-05-05 14:44:19 +0200 |
commit | 632f3ab95fe2ffebf09969a57ab21be409ed7dcc (patch) | |
tree | 0db6c403b6d893bb1e831397df5fa48bc65171b4 /include/drm/i915_component.h | |
parent | Merge branch 'topic/jack' into for-next (diff) | |
download | linux-632f3ab95fe2ffebf09969a57ab21be409ed7dcc.tar.xz linux-632f3ab95fe2ffebf09969a57ab21be409ed7dcc.zip |
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>
Diffstat (limited to 'include/drm/i915_component.h')
-rw-r--r-- | include/drm/i915_component.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h index 3e2f22e5bf3c..c9a8b64aa33b 100644 --- a/include/drm/i915_component.h +++ b/include/drm/i915_component.h @@ -31,6 +31,7 @@ struct i915_audio_component { struct module *owner; void (*get_power)(struct device *); void (*put_power)(struct device *); + void (*codec_wake_override)(struct device *, bool enable); int (*get_cdclk_freq)(struct device *); } *ops; }; |