diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2021-04-13 08:09:51 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-04-14 12:41:10 +0300 |
commit | 27ec10b3eb2e14588b2ce5b4c8ea5460e7143179 (patch) | |
tree | fe60e852b687ccba128faa9b371f05477a64cb18 /drivers/gpu/drm/i915/display/intel_audio.c | |
parent | ad314fec4d0551c31688dc7530b12d04af326f9e (diff) | |
download | linux-27ec10b3eb2e14588b2ce5b4c8ea5460e7143179.tar.xz |
drm/i915/display: use DISPLAY_VER() on remaining users
Commit 989634fb49ad ("drm/i915/audio: set HDA link parameters in driver")
added INTEL_GEN() in the display code, where it should actually be using
DISPLAY_VER(). Switch to the new macro.
Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210413051002.92589-2-lucas.demarchi@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_audio.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_audio.c b/drivers/gpu/drm/i915/display/intel_audio.c index 9671c8f6e892..9fe3a25710b8 100644 --- a/drivers/gpu/drm/i915/display/intel_audio.c +++ b/drivers/gpu/drm/i915/display/intel_audio.c @@ -1309,7 +1309,7 @@ static void i915_audio_component_init(struct drm_i915_private *dev_priv) if (DISPLAY_VER(dev_priv) >= 9) { aud_freq_init = intel_de_read(dev_priv, AUD_FREQ_CNTRL); - if (INTEL_GEN(dev_priv) >= 12) + if (DISPLAY_VER(dev_priv) >= 12) aud_freq = AUD_FREQ_GEN12; else aud_freq = aud_freq_init; |