mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 11:24:07 -05:00
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>
This commit is contained in:
committed by
Chen-Yu Tsai
parent
bb1d2ddee5
commit
345bca734c
@@ -14,6 +14,7 @@
|
||||
#include <drm/drm_print.h>
|
||||
#include <drm/drm_probe_helper.h>
|
||||
|
||||
#include "sun4i_crtc.h"
|
||||
#include "sun8i_csc.h"
|
||||
#include "sun8i_mixer.h"
|
||||
#include "sun8i_vi_layer.h"
|
||||
@@ -63,8 +64,9 @@ static void sun8i_vi_layer_update_coord(struct sun8i_layer *layer,
|
||||
struct drm_plane *plane)
|
||||
{
|
||||
struct drm_plane_state *state = plane->state;
|
||||
struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(state->crtc);
|
||||
struct sun8i_mixer *mixer = engine_to_sun8i_mixer(scrtc->engine);
|
||||
const struct drm_format_info *format = state->fb->format;
|
||||
struct sun8i_mixer *mixer = layer->mixer;
|
||||
u32 src_w, src_h, dst_w, dst_h;
|
||||
u32 outsize, insize;
|
||||
u32 hphase, vphase;
|
||||
|
||||
Reference in New Issue
Block a user