diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-02-25 19:41:01 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-02-26 19:54:48 +0200 |
commit | fbf08556ed4344282e7e809bbaeebed804f1ab4e (patch) | |
tree | 8aca79231372fa7d2ff0638109dd93f398348f7e /drivers/gpu/drm/i915/intel_lspcon.c | |
parent | e5e70d4a37f65cce3959eb97d2cd74d8af623a40 (diff) | |
download | linux-stable-fbf08556ed4344282e7e809bbaeebed804f1ab4e.tar.gz linux-stable-fbf08556ed4344282e7e809bbaeebed804f1ab4e.tar.bz2 linux-stable-fbf08556ed4344282e7e809bbaeebed804f1ab4e.zip |
drm/i915: Precompute HDMI infoframes
Store the infoframes in the crtc state and precompute them in
.compute_config(). While precomputing we'll also fill out the
inforames.enable bitmask appropriately.
v2: Drop the null packet stuff (Daniel)
Add a FIXME for lspcon
v3: .compute_config() now returns int
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190225174106.2163-5-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lspcon.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lspcon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_lspcon.c b/drivers/gpu/drm/i915/intel_lspcon.c index f087656c9def..ed78b95388d7 100644 --- a/drivers/gpu/drm/i915/intel_lspcon.c +++ b/drivers/gpu/drm/i915/intel_lspcon.c @@ -470,6 +470,8 @@ void lspcon_set_infoframes(struct intel_encoder *encoder, return; } + /* FIXME precompute infoframes */ + ret = drm_hdmi_avi_infoframe_from_display_mode(&frame.avi, conn_state->connector, adjusted_mode); |