drm/amdgpu/soc21: Added Video Capabilities for VCN 406
authorVeerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com>
Mon, 12 Feb 2024 07:45:27 +0000 (13:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Feb 2024 15:28:16 +0000 (10:28 -0500)
Updated Query Video codecs for VCN 406

Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Veerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index 2c812701592b4e3368e311f2b82db5c2b6bcbe85..c663cf3a169d92e6b9f8eb5e560a3d93cf1a3e78 100644 (file)
@@ -185,6 +185,12 @@ static int soc21_query_video_codecs(struct amdgpu_device *adev, bool encode,
                        }
                }
                return 0;
+       case IP_VERSION(4, 0, 6):
+               if (encode)
+                       *codecs = &vcn_4_0_0_video_codecs_encode_vcn0;
+               else
+                       *codecs = &vcn_4_0_0_video_codecs_decode_vcn0;
+               return 0;
        default:
                return -EINVAL;
        }