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.

media: rockchip: rga: fix rga offset lookup

The arguments to rga_lookup_draw_pos() are passed in the wrong order,
rotate mode should be before mirror mode.

Fixes: 558c248f930e6 ("media: rockchip: rga: split src and dst buffer setup")
Cc: stable@vger.kernel.org
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

John Keeping and committed by
Hans Verkuil
11de3582 1e7bd962

+1 -1
+1 -1
drivers/media/platform/rockchip/rga/rga-hw.c
··· 376 376 * Configure the dest framebuffer base address with pixel offset. 377 377 */ 378 378 offsets = rga_get_addr_offset(&ctx->out, offset, dst_x, dst_y, dst_w, dst_h); 379 - dst_offset = rga_lookup_draw_pos(&offsets, mir_mode, rot_mode); 379 + dst_offset = rga_lookup_draw_pos(&offsets, rot_mode, mir_mode); 380 380 381 381 dest[(RGA_DST_Y_RGB_BASE_ADDR - RGA_MODE_BASE_REG) >> 2] = 382 382 dst_offset->y_off;