On 2023-05-12 14:32:12, Jessica Zhang wrote: > > From: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> > > Add a helper setting config values which are typically constant across > operating modes (table E-4 of the standard) and mux_word_size (which is > a const according to 3.5.2). > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> > Reviewed-by: Marijn Suijten <marijn.suijten@xxxxxxxxxxxxxx> > Signed-off-by: Jessica Zhang <quic_jesszhan@xxxxxxxxxxx> > --- > drivers/gpu/drm/display/drm_dsc_helper.c | 22 ++++++++++++++++++++++ > include/drm/display/drm_dsc_helper.h | 1 + > 2 files changed, 23 insertions(+) > > diff --git a/drivers/gpu/drm/display/drm_dsc_helper.c b/drivers/gpu/drm/display/drm_dsc_helper.c > index 65e810a54257..b9c4e10ced41 100644 > --- a/drivers/gpu/drm/display/drm_dsc_helper.c > +++ b/drivers/gpu/drm/display/drm_dsc_helper.c > @@ -270,6 +270,28 @@ void drm_dsc_pps_payload_pack(struct drm_dsc_picture_parameter_set *pps_payload, > } > EXPORT_SYMBOL(drm_dsc_pps_payload_pack); > > +/** > + * drm_dsc_set_const_params() - Set DSC parameters considered typically > + * constant across operation modes > + * > + * @vdsc_cfg: > + * DSC Configuration data partially filled by driver Nit: could have been on one line in the strange event that this has to be resent. - Marijn > + */ > +void drm_dsc_set_const_params(struct drm_dsc_config *vdsc_cfg) > +{ <snip>