]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/audio: fix compressed_bpp check
authorJani Nikula <jani.nikula@intel.com>
Mon, 20 Apr 2020 13:16:32 +0000 (16:16 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 21 Apr 2020 06:38:04 +0000 (09:38 +0300)
commitff8a762ad339456c441c1b24f73b78c4e6a9e5c1
tree8f4715e08bcaeffe3aec4084b045ffad6d6f72b9
parentcef09c39c7f4bb76d9e581bd4e48903ce7c249df
drm/i915/audio: fix compressed_bpp check

The early check for compressed_bpp being zero is too early, as it is hit
also when DSC is not enabled. Move the checks down to where the values
are actually needed. This is a paranoid check for a situation that
should not happen, so we don't really care about handling it gracefully
apart from not oopsing.

Fixes: b6301dd8a6fe ("drm/i915/display: Enable DP Display Audio WA")
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1750
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200420131632.23283-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_audio.c