drm/i915/audio: Fix audio detection issue on GLK
authorGaurav K Singh <[email protected]>
Tue, 17 Apr 2018 18:22:18 +0000 (23:52 +0530)
committerJoonas Lahtinen <[email protected]>
Wed, 18 Apr 2018 11:26:15 +0000 (14:26 +0300)
commitb4615730530be85fc45ab4631c2ad6d8e2d0b97d
tree935eccce986a12cfeaf5752cea28f84724b46cde
parent4a0559ed99189f259e92ed34f60dd51688f1bc40
drm/i915/audio: Fix audio detection issue on GLK

On Geminilake, sometimes audio card is not getting
detected after reboot. This is a spurious issue happening on
Geminilake. HW codec and HD audio controller link was going
out of sync for which there was a fix in i915 driver but
was not getting invoked for GLK. Extending this fix to GLK as well.

Tested by Du,Wenkai on GLK board.

Bspec: 21829

v2: Instead of checking GEN9_BC, BXT and GLK macros, use IS_GEN9 macro (Jani N)

Cc: <[email protected]> # b651bd2a3ae3 ("drm/i915/audio: Fix audio enumeration issue on BXT")
Cc: <[email protected]>
Signed-off-by: Gaurav K Singh <[email protected]>
Reviewed-by: Abhay Kumar <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 8221229046e862977ae93ec9d34aa583fbd10397)
Signed-off-by: Joonas Lahtinen <[email protected]>
drivers/gpu/drm/i915/intel_audio.c