forked from Minki/linux
drm/i915: add audio power domain
This way the code is simpler and can also be used for other platforms where the audio power domain->power well mapping is different. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Paulo Zanoni <paulo.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
8b4f49e039
commit
fbeeaa2306
@ -113,6 +113,7 @@ enum intel_display_power_domain {
|
|||||||
POWER_DOMAIN_TRANSCODER_C,
|
POWER_DOMAIN_TRANSCODER_C,
|
||||||
POWER_DOMAIN_TRANSCODER_EDP,
|
POWER_DOMAIN_TRANSCODER_EDP,
|
||||||
POWER_DOMAIN_VGA,
|
POWER_DOMAIN_VGA,
|
||||||
|
POWER_DOMAIN_AUDIO,
|
||||||
POWER_DOMAIN_INIT,
|
POWER_DOMAIN_INIT,
|
||||||
|
|
||||||
POWER_DOMAIN_NUM,
|
POWER_DOMAIN_NUM,
|
||||||
|
@ -5775,10 +5775,7 @@ void i915_request_power_well(void)
|
|||||||
|
|
||||||
dev_priv = container_of(hsw_pwr, struct drm_i915_private,
|
dev_priv = container_of(hsw_pwr, struct drm_i915_private,
|
||||||
power_domains);
|
power_domains);
|
||||||
|
intel_display_power_get(dev_priv->dev, POWER_DOMAIN_AUDIO);
|
||||||
mutex_lock(&hsw_pwr->lock);
|
|
||||||
__intel_power_well_get(dev_priv->dev, &hsw_pwr->power_wells[0]);
|
|
||||||
mutex_unlock(&hsw_pwr->lock);
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(i915_request_power_well);
|
EXPORT_SYMBOL_GPL(i915_request_power_well);
|
||||||
|
|
||||||
@ -5792,10 +5789,7 @@ void i915_release_power_well(void)
|
|||||||
|
|
||||||
dev_priv = container_of(hsw_pwr, struct drm_i915_private,
|
dev_priv = container_of(hsw_pwr, struct drm_i915_private,
|
||||||
power_domains);
|
power_domains);
|
||||||
|
intel_display_power_put(dev_priv->dev, POWER_DOMAIN_AUDIO);
|
||||||
mutex_lock(&hsw_pwr->lock);
|
|
||||||
__intel_power_well_put(dev_priv->dev, &hsw_pwr->power_wells[0]);
|
|
||||||
mutex_unlock(&hsw_pwr->lock);
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(i915_release_power_well);
|
EXPORT_SYMBOL_GPL(i915_release_power_well);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user