Skip to content

Commit ffac30b

Browse files
khfengjnikula
authored andcommitted
drm/i915/audio: Use BIOS provided value for RKL HDA link
Commit 989634f ("drm/i915/audio: set HDA link parameters in driver") makes HDMI audio on Lenovo P350 disappear. So in addition to TGL, extend the logic to RKL to use BIOS provided value to fix the regression. Fixes: 989634f ("drm/i915/audio: set HDA link parameters in driver") Reviewed-by: Kai Vehmanen <[email protected]> Signed-off-by: Kai-Heng Feng <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit c6b40ee) Signed-off-by: Jani Nikula <[email protected]>
1 parent 9e1ff30 commit ffac30b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/i915/display/intel_audio.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,9 @@ static void i915_audio_component_init(struct drm_i915_private *dev_priv)
13081308
else
13091309
aud_freq = aud_freq_init;
13101310

1311-
/* use BIOS provided value for TGL unless it is a known bad value */
1312-
if (IS_TIGERLAKE(dev_priv) && aud_freq_init != AUD_FREQ_TGL_BROKEN)
1311+
/* use BIOS provided value for TGL and RKL unless it is a known bad value */
1312+
if ((IS_TIGERLAKE(dev_priv) || IS_ROCKETLAKE(dev_priv)) &&
1313+
aud_freq_init != AUD_FREQ_TGL_BROKEN)
13131314
aud_freq = aud_freq_init;
13141315

13151316
drm_dbg_kms(&dev_priv->drm, "use AUD_FREQ_CNTRL of 0x%x (init value 0x%x)\n",

0 commit comments

Comments
 (0)