Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/sun4i: vi_scaler: Find mixer from crtc

With "floating" planes in DE33, mixer can't be stored in layer structure
anymore. Find mixer using currently bound crtc.

Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Tested-by: Ryan Walklin <ryan@testtoast.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20251104180942.61538-30-jernej.skrabec@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>

authored by

Jernej Skrabec and committed by
Chen-Yu Tsai
345bca73 bb1d2dde

+3 -1
+3 -1
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
··· 14 14 #include <drm/drm_print.h> 15 15 #include <drm/drm_probe_helper.h> 16 16 17 + #include "sun4i_crtc.h" 17 18 #include "sun8i_csc.h" 18 19 #include "sun8i_mixer.h" 19 20 #include "sun8i_vi_layer.h" ··· 64 63 struct drm_plane *plane) 65 64 { 66 65 struct drm_plane_state *state = plane->state; 66 + struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(state->crtc); 67 + struct sun8i_mixer *mixer = engine_to_sun8i_mixer(scrtc->engine); 67 68 const struct drm_format_info *format = state->fb->format; 68 - struct sun8i_mixer *mixer = layer->mixer; 69 69 u32 src_w, src_h, dst_w, dst_h; 70 70 u32 outsize, insize; 71 71 u32 hphase, vphase;