]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/display: Enable DP Display Audio WA
authorUma Shankar <uma.shankar@intel.com>
Thu, 16 Apr 2020 10:54:19 +0000 (16:24 +0530)
committerUma Shankar <uma.shankar@intel.com>
Fri, 17 Apr 2020 12:14:34 +0000 (17:44 +0530)
commit48b8b04c791d1e39883416fd3106cad205007298
treef487bc849102818c6bd80ff8fdc232fb574dc947
parent9efa0c1a500f97f17e959397f368ca252336fde1
drm/i915/display: Enable DP Display Audio WA

For certain DP VDSC bpp settings, hblank asserts before hblank_early,
leading to a bad audio state. Driver need to program "hblank early
enable" and "samples per line" parameters in AUDIO_CONFIG_BE
register.

This is Display Audio WA #1406928334 for 4k+VDSC usecase
applicable on DP encoders. Implemented the same.

v2: Fixed build failures on 32bit machine.

v3: Dropped u64, added helpers for sample room calculation,
    other general comments as per Jani Nikula's feedback.
    Also fixed connector type check (spotted by Anshuman)

v4: Addressed Jani Nikula and Kai's review comments.

v5: Addressed Anshuman's review comment and used crtc_* variable
    to get timings.

v6: Dropped a redundant initialization.

Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200416105419.9664-1-uma.shankar@intel.com
drivers/gpu/drm/i915/display/intel_audio.c
drivers/gpu/drm/i915/i915_reg.h