[Intel-gfx] [PATCH v2 01/12] drm/i915/display: use DISPLAY_VER() on remaining users

Jani Nikula jani.nikula at linux.intel.com
Tue Apr 13 09:24:48 UTC 2021


On Mon, 12 Apr 2021, Lucas De Marchi <lucas.demarchi at intel.com> wrote:
> 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 at linux.intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>

Reviewed-by: Jani Nikula <jani.nikula at intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_audio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;

-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the Intel-gfx mailing list