]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: do AUD_FREQ_CNTRL state save on all gen9+ platforms
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Mon, 30 Mar 2020 14:44:21 +0000 (17:44 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 14 Apr 2020 16:15:04 +0000 (19:15 +0300)
commita0b5ad15e413c2203c97a412e94e7de0606ef688
tree1766f7179c7a7bf4e3663a655ccdf1eeb7416700
parent72ecfcb911a13b5f4c6d6a36e1790530e610be35
drm/i915: do AUD_FREQ_CNTRL state save on all gen9+ platforms

Replace the TGL/ICL specific platform checks with a more generic check
using INTEL_GEN(). Fixes bug with broken audio after S3 resume on JSL
platforms.

An initial version of state save and restore of AUD_FREQ_CNTRL register
was added for subset of platforms in commit 0641b8109488
("drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend"). The state
save has proven to work well and it is needed in newer platforms, so needs
to be extended. Although the logic is not in practise needed on GEN9/10
systems, follow the hardware specification and apply state and restore on
all gen9+ platforms.

Bspec: 49281
Link: https://github.com/thesofproject/linux/issues/1719
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200330144421.11632-1-kai.vehmanen@linux.intel.com
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/i915/display/intel_audio.c