On Mon, 12 Apr 2021, Lucas De Marchi <lucas.demarchi@xxxxxxxxx> 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@xxxxxxxxxxxxxxx> > Signed-off-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx> Reviewed-by: Jani Nikula <jani.nikula@xxxxxxxxx> > --- > 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx