[PATCH 1/2] drm/amdgpu: drop CV/TV bits in atombios_encoders.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Dave Airlie <airlied@xxxxxxxxxx>

Converting to engine id doesn't have these.

Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 42 ++++----------------------
 1 file changed, 6 insertions(+), 36 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
index 9f7f3fc..37c498b 100644
--- a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
+++ b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
@@ -1336,21 +1336,11 @@ amdgpu_atombios_encoder_set_crtc_source(struct drm_encoder *encoder)
 				break;
 			case ENCODER_ID_INTERNAL_DAC1:
 			case ENCODER_ID_INTERNAL_KLDSCP_DAC1:
-				if (amdgpu_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT))
-					args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX;
-				else if (amdgpu_encoder->active_device & (ATOM_DEVICE_CV_SUPPORT))
-					args.v1.ucDevice = ATOM_DEVICE_CV_INDEX;
-				else
-					args.v1.ucDevice = ATOM_DEVICE_CRT1_INDEX;
+				args.v1.ucDevice = ATOM_DEVICE_CRT1_INDEX;
 				break;
 			case ENCODER_ID_INTERNAL_DAC2:
 			case ENCODER_ID_INTERNAL_KLDSCP_DAC2:
-				if (amdgpu_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT))
-					args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX;
-				else if (amdgpu_encoder->active_device & (ATOM_DEVICE_CV_SUPPORT))
-					args.v1.ucDevice = ATOM_DEVICE_CV_INDEX;
-				else
-					args.v1.ucDevice = ATOM_DEVICE_CRT2_INDEX;
+				args.v1.ucDevice = ATOM_DEVICE_CRT2_INDEX;
 				break;
 			default:
 				return;
@@ -1404,20 +1394,10 @@ amdgpu_atombios_encoder_set_crtc_source(struct drm_encoder *encoder)
 				}
 				break;
 			case ENCODER_ID_INTERNAL_KLDSCP_DAC1:
-				if (amdgpu_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT))
-					args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID;
-				else if (amdgpu_encoder->active_device & (ATOM_DEVICE_CV_SUPPORT))
-					args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID;
-				else
-					args.v2.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID;
+				args.v2.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID;
 				break;
 			case ENCODER_ID_INTERNAL_KLDSCP_DAC2:
-				if (amdgpu_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT))
-					args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID;
-				else if (amdgpu_encoder->active_device & (ATOM_DEVICE_CV_SUPPORT))
-					args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID;
-				else
-					args.v2.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID;
+				args.v2.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID;
 				break;
 			default:
 				return;
@@ -1472,20 +1452,10 @@ amdgpu_atombios_encoder_set_crtc_source(struct drm_encoder *encoder)
 				}
 				break;
 			case ENCODER_ID_INTERNAL_KLDSCP_DAC1:
-				if (amdgpu_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT))
-					args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID;
-				else if (amdgpu_encoder->active_device & (ATOM_DEVICE_CV_SUPPORT))
-					args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID;
-				else
-					args.v3.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID;
+				args.v3.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID;
 				break;
 			case ENCODER_ID_INTERNAL_KLDSCP_DAC2:
-				if (amdgpu_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT))
-					args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID;
-				else if (amdgpu_encoder->active_device & (ATOM_DEVICE_CV_SUPPORT))
-					args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID;
-				else
-					args.v3.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID;
+				args.v3.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID;
 				break;
 			default:
 				break;
-- 
2.5.5

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux