From: Ville Syrjälä <[email protected]>

The "audio enable" bit on the SDVO/HDMI control register is only meant
for HDMI. Audio is never delivered over the SDVO bus. Rename the define
to reflect this fact.

Signed-off-by: Ville Syrjälä <[email protected]>
---
 drivers/gpu/drm/i915/i915_reg.h   |  2 +-
 drivers/gpu/drm/i915/intel_hdmi.c | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 9c206e803ab3..fe976c11a69e 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -4551,7 +4551,7 @@ enum {
 #define   HDMI_MODE_SELECT_HDMI                        (1 << 9) /* HDMI only */
 #define   HDMI_MODE_SELECT_DVI                 (0 << 9) /* HDMI only */
 #define   HDMI_COLOR_RANGE_16_235              (1 << 8) /* HDMI only */
-#define   SDVO_AUDIO_ENABLE                    (1 << 6)
+#define   HDMI_AUDIO_ENABLE                    (1 << 6) /* HDMI only */
 /* VSYNC/HSYNC bits new with 965, default is to be set */
 #define   SDVO_VSYNC_ACTIVE_HIGH               (1 << 4)
 #define   SDVO_HSYNC_ACTIVE_HIGH               (1 << 3)
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c 
b/drivers/gpu/drm/i915/intel_hdmi.c
index e1005d7b75fd..b9b3aad94add 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -1772,7 +1772,7 @@ static void intel_hdmi_get_config(struct intel_encoder 
*encoder,
        if (pipe_config->infoframes.enable)
                pipe_config->has_infoframe = true;
 
-       if (tmp & SDVO_AUDIO_ENABLE)
+       if (tmp & HDMI_AUDIO_ENABLE)
                pipe_config->has_audio = true;
 
        if (!HAS_PCH_SPLIT(dev_priv) &&
@@ -1831,7 +1831,7 @@ static void g4x_enable_hdmi(struct intel_encoder *encoder,
 
        temp |= SDVO_ENABLE;
        if (pipe_config->has_audio)
-               temp |= SDVO_AUDIO_ENABLE;
+               temp |= HDMI_AUDIO_ENABLE;
 
        I915_WRITE(intel_hdmi->hdmi_reg, temp);
        POSTING_READ(intel_hdmi->hdmi_reg);
@@ -1853,7 +1853,7 @@ static void ibx_enable_hdmi(struct intel_encoder *encoder,
 
        temp |= SDVO_ENABLE;
        if (pipe_config->has_audio)
-               temp |= SDVO_AUDIO_ENABLE;
+               temp |= HDMI_AUDIO_ENABLE;
 
        /*
         * HW workaround, need to write this twice for issue
@@ -1905,7 +1905,7 @@ static void cpt_enable_hdmi(struct intel_encoder *encoder,
 
        temp |= SDVO_ENABLE;
        if (pipe_config->has_audio)
-               temp |= SDVO_AUDIO_ENABLE;
+               temp |= HDMI_AUDIO_ENABLE;
 
        /*
         * WaEnableHDMI8bpcBefore12bpc:snb,ivb
@@ -1965,7 +1965,7 @@ static void intel_disable_hdmi(struct intel_encoder 
*encoder,
 
        temp = I915_READ(intel_hdmi->hdmi_reg);
 
-       temp &= ~(SDVO_ENABLE | SDVO_AUDIO_ENABLE);
+       temp &= ~(SDVO_ENABLE | HDMI_AUDIO_ENABLE);
        I915_WRITE(intel_hdmi->hdmi_reg, temp);
        POSTING_READ(intel_hdmi->hdmi_reg);
 
-- 
2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to