Commit 700710e9 authored by Ville Syrjälä's avatar Ville Syrjälä

drm: Do not use bitwise OR to set picure_aspect_ratio

enum hdmi_picture_aspect is not a bitmask, so don't use bitwise OR
to populate it.

Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190620142639.17518-2-ville.syrjala@linux.intel.comReviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 50b0946d
...@@ -1966,16 +1966,16 @@ int drm_mode_convert_umode(struct drm_device *dev, ...@@ -1966,16 +1966,16 @@ int drm_mode_convert_umode(struct drm_device *dev,
switch (in->flags & DRM_MODE_FLAG_PIC_AR_MASK) { switch (in->flags & DRM_MODE_FLAG_PIC_AR_MASK) {
case DRM_MODE_FLAG_PIC_AR_4_3: case DRM_MODE_FLAG_PIC_AR_4_3:
out->picture_aspect_ratio |= HDMI_PICTURE_ASPECT_4_3; out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3;
break; break;
case DRM_MODE_FLAG_PIC_AR_16_9: case DRM_MODE_FLAG_PIC_AR_16_9:
out->picture_aspect_ratio |= HDMI_PICTURE_ASPECT_16_9; out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9;
break; break;
case DRM_MODE_FLAG_PIC_AR_64_27: case DRM_MODE_FLAG_PIC_AR_64_27:
out->picture_aspect_ratio |= HDMI_PICTURE_ASPECT_64_27; out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27;
break; break;
case DRM_MODE_FLAG_PIC_AR_256_135: case DRM_MODE_FLAG_PIC_AR_256_135:
out->picture_aspect_ratio |= HDMI_PICTURE_ASPECT_256_135; out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_256_135;
break; break;
default: default:
out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_NONE; out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_NONE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment