]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: meson-ge2d: Fix rotation parameter changes detection in 'ge2d_s_ctrl()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 30 Jul 2021 19:35:05 +0000 (21:35 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:20 +0000 (09:48 +0100)
commit6d54b6a2690c3381eabad6b9ba28338b4d6d47a4
tree061f5cf78a968f52ef7a5e7bc150a7ea9f3ff061
parent7dbfae7b931a6dd515a020e23d3934a5e3d04059
media: meson-ge2d: Fix rotation parameter changes detection in 'ge2d_s_ctrl()'

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 4b9e3e8af4b336eefca1f1ee535bc4b6734ed6aa ]

There is likely a typo here. To be consistent, we should compare
'fmt.height' with 'ctx->out.pix_fmt.height', not 'ctx->out.pix_fmt.width'.

Instead of fixing the test, just remove it and copy 'fmt' unconditionally.

Fixes: 59a635327ca7 ("media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/media/platform/meson/ge2d/ge2d.c