diff options
author | David Francis <David.Francis@amd.com> | 2019-02-21 23:20:01 +0300 |
---|---|---|
committer | Harry Wentland <harry.wentland@amd.com> | 2019-03-05 21:24:34 +0300 |
commit | dbfbe717ccbb5b42815ef4bc35a66e2191b2e98d (patch) | |
tree | 61ba575c6877525968816dfe0cd3951b144a82f2 /include/drm | |
parent | 06d7cecdb61115de3b573682a6615b05ae993932 (diff) | |
download | linux-dbfbe717ccbb5b42815ef4bc35a66e2191b2e98d.tar.xz |
drm/dsc: Split DSC PPS and SDP header initialisations
The DP 1.4 spec defines the SDP header and SDP contents for
a Picture Parameter Set (PPS) that must be sent in advance
of DSC transmission to define the encoding characteristics.
This was done in one struct, drm_dsc_pps_infoframe, which
conatined the SDP header and PPS. Because the PPS is
a property of DSC over any connector, not just DP, and because
drm drivers may have their own SDP structs they wish to use,
make the functions that initialise SDP and PPS headers take
the components they operate on, not drm_dsc_pps_infoframe,
Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190221202001.28430-4-David.Francis@amd.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_dsc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drm_dsc.h b/include/drm/drm_dsc.h index f26a89e1b68a..887954cbfc60 100644 --- a/include/drm/drm_dsc.h +++ b/include/drm/drm_dsc.h @@ -601,8 +601,8 @@ struct drm_dsc_pps_infoframe { struct drm_dsc_picture_parameter_set pps_payload; } __packed; -void drm_dsc_dp_pps_header_init(struct drm_dsc_pps_infoframe *pps_sdp); -void drm_dsc_pps_infoframe_pack(struct drm_dsc_pps_infoframe *pps_sdp, +void drm_dsc_dp_pps_header_init(struct dp_sdp_header *pps_header); +void drm_dsc_pps_payload_pack(struct drm_dsc_picture_parameter_set *pps_sdp, const struct drm_dsc_config *dsc_cfg); int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg); |