OSDN Git Service

drm/radeon: Use drm_hdmi_avi_infoframe_quant_range()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 8 Jan 2019 17:28:27 +0000 (19:28 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 10 Jan 2019 17:01:06 +0000 (19:01 +0200)
commit8ee491b4d29b48530ed9220059edd2f666bf2889
treec755062a8e191476abe60f62249154658ba6ec31
parentc3735f5c1f9b01e08d0371fe635762f4a7db5d1c
drm/radeon: Use drm_hdmi_avi_infoframe_quant_range()

Fill out the AVI infoframe quantization range bits using
drm_hdmi_avi_infoframe_quant_range() instead of hand rolling it.

This changes the behaviour slightly as
drm_hdmi_avi_infoframe_quant_range() will set a non-zero Q bit
even when QS==0 iff the Q bit matched the default quantization
range for the given mode. This matches the recommendation in
HDMI 2.0 and is allowed even before that.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190108172828.15184-3-ville.syrjala@linux.intel.com
drivers/gpu/drm/radeon/radeon_audio.c