mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-20 17:44:33 +08:00
drm/i915: Use port_name() in PCH port audio power change message
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
2582a8504d
commit
cfc33bf75b
@ -763,10 +763,12 @@ static void ibx_irq_handler(struct drm_device *dev, u32 pch_iir)
|
|||||||
ibx_hpd_irq_setup(dev);
|
ibx_hpd_irq_setup(dev);
|
||||||
queue_work(dev_priv->wq, &dev_priv->hotplug_work);
|
queue_work(dev_priv->wq, &dev_priv->hotplug_work);
|
||||||
}
|
}
|
||||||
if (pch_iir & SDE_AUDIO_POWER_MASK)
|
if (pch_iir & SDE_AUDIO_POWER_MASK) {
|
||||||
DRM_DEBUG_DRIVER("PCH audio power change on port %d\n",
|
int port = ffs((pch_iir & SDE_AUDIO_POWER_MASK) >>
|
||||||
(pch_iir & SDE_AUDIO_POWER_MASK) >>
|
|
||||||
SDE_AUDIO_POWER_SHIFT);
|
SDE_AUDIO_POWER_SHIFT);
|
||||||
|
DRM_DEBUG_DRIVER("PCH audio power change on port %d\n",
|
||||||
|
port_name(port));
|
||||||
|
}
|
||||||
|
|
||||||
if (pch_iir & SDE_AUX_MASK)
|
if (pch_iir & SDE_AUX_MASK)
|
||||||
dp_aux_irq_handler(dev);
|
dp_aux_irq_handler(dev);
|
||||||
@ -812,10 +814,12 @@ static void cpt_irq_handler(struct drm_device *dev, u32 pch_iir)
|
|||||||
ibx_hpd_irq_setup(dev);
|
ibx_hpd_irq_setup(dev);
|
||||||
queue_work(dev_priv->wq, &dev_priv->hotplug_work);
|
queue_work(dev_priv->wq, &dev_priv->hotplug_work);
|
||||||
}
|
}
|
||||||
if (pch_iir & SDE_AUDIO_POWER_MASK_CPT)
|
if (pch_iir & SDE_AUDIO_POWER_MASK_CPT) {
|
||||||
DRM_DEBUG_DRIVER("PCH audio power change on port %d\n",
|
int port = ffs((pch_iir & SDE_AUDIO_POWER_MASK_CPT) >>
|
||||||
(pch_iir & SDE_AUDIO_POWER_MASK_CPT) >>
|
|
||||||
SDE_AUDIO_POWER_SHIFT_CPT);
|
SDE_AUDIO_POWER_SHIFT_CPT);
|
||||||
|
DRM_DEBUG_DRIVER("PCH audio power change on port %c\n",
|
||||||
|
port_name(port));
|
||||||
|
}
|
||||||
|
|
||||||
if (pch_iir & SDE_AUX_MASK_CPT)
|
if (pch_iir & SDE_AUX_MASK_CPT)
|
||||||
dp_aux_irq_handler(dev);
|
dp_aux_irq_handler(dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user