drm/amd/display: Expose enc2_set_dynamic_metadata
authorIlya Bakoulin <Ilya.Bakoulin@amd.com>
Wed, 29 May 2019 22:52:17 +0000 (18:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:09 +0000 (14:18 -0500)
[Why]
Need to implement register programming for HDR dynamic
metadata transmission and tests.

Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.h

index f5bcffc426b84c3a8496794783d038a68100ac0f..5c2b7b54b1262a8146a4a1c49929d08eb9bc2f7a 100644 (file)
@@ -373,7 +373,7 @@ static void enc2_read_state(struct stream_encoder *enc, struct enc_state *s)
  *
  *   Ensure the OTG master update lock is set when changing DME configuration.
  */
-static void enc2_set_dynamic_metadata(struct stream_encoder *enc,
+void enc2_set_dynamic_metadata(struct stream_encoder *enc,
                bool enable_dme,
                uint32_t hubp_requestor_id,
                enum dynamic_metadata_mode dmdata_mode)
index 6d40e8c9b78f6604fa2e0c7727b8cdd13618ffa8..3f94a9f13c4a7a91938ee6e1051d55158205882f 100644 (file)
@@ -104,4 +104,9 @@ void enc2_stream_encoder_dp_unblank(
        struct stream_encoder *enc,
        const struct encoder_unblank_param *param);
 
+void enc2_set_dynamic_metadata(struct stream_encoder *enc,
+               bool enable_dme,
+               uint32_t hubp_requestor_id,
+               enum dynamic_metadata_mode dmdata_mode);
+
 #endif /* __DC_STREAM_ENCODER_DCN20_H__ */